clean_beam

Module for functionality relating to a clean beam

ska_sdp_distributed_self_cal_prototype.processing_tasks.clean_beam.gaussian_2d(sigma_x: float, sigma_y: float, position_angle: float, x_pixels: int, y_pixels: int) numpy.ndarray[source]

Generates a 2D Gaussian based on parameters and pixel dimensions.

The function computes a 2D Gaussian using the specified major and minor axes, position angle, and pixel size. It accounts for the rotation by applying a position angle transformation and returns a normalized Gaussian with a peak value of 1.

Parameters:
  • sigma_x – Standard deviation of the Gaussian in the x direction.

  • sigma_y – Standard deviation of the Gaussian in the y direction.

  • position_angle – Position angle of the Gaussian in degrees.

  • x_pixels – Number of pixels in the x direction (image width).

  • y_pixels – Number of pixels in the y direction (image height).

Returns:

A 2D array representing the normalized Gaussian.

Return type:

gaussian_values