ska_tmc_dishleafnode.az_el_converter module

AzElConverter: This module defines the AzElConverter class, which is used to convert given Ra and Dec values into AzEl.

class ska_tmc_dishleafnode.az_el_converter.AzElConverter(component_manager)

Bases: object

Class to convert Right ascension(Ra) and Declination(Dec) values into Azimuth(Az) and Elevation(El)

azel_to_radec(az_value: str, el_value: str, timestamp: str, weather_data: dict[str, float]) List[str]

This method converts given Azimuth/Elevation to RA/Dec after reversing the refraction correction and performing the topocentric and geocentric conversions.

Parameters:
  • az_value – The Azimuth value of Actual Pointing.

  • el_value – The Elevation value of Actual Pointing.

Dtype:

Degrees.

Dtype:

Degrees.

Returns:

List of RA and Dec values in Hours Minutes Seconds and Degree Minutes Seconds respectively.

create_antenna_obj() None

This method identifies the KATPoint. Antenna object to be used from the Dish Number.

point(right_ascension: str, declination: str, timestamp: str) list[float]

This method converts Target RaDec coordinates to the AzEl coordinates.It is called continuously from Track command (in a thread) at interval of 50ms till the StopTrack command is invoked. :param ra_value: RA value in hours:minutes:sec :type ra_value: str :param dec_value: Dec Value in degree:arc_minutes:arc_sec :type dec_value: str :param timestamp: utc timestamp in string format :type timestamp: str

Returns:

az_el_coordinates (list)

radec_to_azel(right_ascension: str, declination: str, timestamp: str, weather_data: dict[str, float]) List[str]

This method invokes the katpoint commands to do the forward transform required for pointing a celestial object. Forward Transform ie: Geocentric conversion then topocentric and then refraction correction.

Parameters:
  • right_ascension – Right Ascension value

  • declination – Declination value.

Dtype:

string in hours:minutes:seconds form

Dtype:

string in the form of “degree:minutes:seconds” dec_value (str): Dec Value in degree:arc_minutes:arc_sec

Returns:

az_el_coordinates (list[degrees])