ska_sdp_instrumental_calibration.data_managers.beams module

ska_sdp_instrumental_calibration.data_managers.beams.convert_time_to_solution_time(time)[source]

Convert float time to Astropy time.

Parameters:

time (float) -- Input time in float

Return type:

Time

Returns:

Time object containing an array of time values

ska_sdp_instrumental_calibration.data_managers.beams.radec_to_xyz(direction, time)[source]

Convert RA and Dec ICRS coordinates to ITRS cartesian coordinates.

Parameters:
  • direction (SkyCoord) -- astropy pointing direction

  • time (astropy.time.Timne) -- Observation time

Return type:

NumPy array containing the ITRS X, Y and Z coordinates

exception ska_sdp_instrumental_calibration.data_managers.beams.PointingBelowHorizon[source]

Bases: Exception

Pointing below exception raised when a sky component with its RA-DEC at a given time is below horizon

class ska_sdp_instrumental_calibration.data_managers.beams.BeamsLow(nstations, array_location, direction, frequency, ms_path, soln_time, element_response_model)[source]

Bases: object

A beam class specific to handling low beams.

validate_direction_above_horizon(direction)[source]

Calculate Altitude-Azimuth for a direction, and ensure that the direction is valid for the given solution interval of the beam

Parameters:

direction (SkyCoord) -- direction of the source

Raises:

PointingBelowHorizon exception if direction is below horizon --

Return type:

Altaz[list] if direction is valid

array_response(direction)[source]

Return the response of each antenna or station in a given direction

Parameters:

direction (SkyCoord) -- Direction of desired response

Return type:

np.complex128 array of beam matrices [nant, nfreq, 2, 2]

class ska_sdp_instrumental_calibration.data_managers.beams.BeamsFactory(nstations, array_location, direction, ms_path, element_response_model)[source]

Bases: object

Dataclass to denote a beam.

nstations: int
array_location: EarthLocation
direction: SkyCoord
ms_path: str
element_response_model: str
get_beams_low(frequency, soln_time)[source]

Initializes and returns a BeamsLow object.

Parameters:
  • frequency (np.ndarray) -- Array of frequencies

  • soln_time (float) -- Solution time for the given solution interval

Return type:

BeamsLow

Returns:

A BeamsLow Object for the given frequency range and solution time.