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)
- apply_refraction_correction(azel: astropy.coordinates.AltAz) List[float]
Apply refraction correction on given AzEl.
- azel_to_radec(az_value: float, el_value: float, timestamp: str) List[Union[str, Any]]
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 | float, 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)
- point_to_body(target_name: str, timestamp: str) List[float]
This method calls the Katpoint API to get the Azimuth and Elevation for a non sidereal object and applies the refraction correction to it.
- Parameters:
target_name (str) – Name of the non-sidereal body
timestamp (str) – Timestamp for observation
- radec_to_azel(right_ascension: str | float, declination: str | float, timestamp: str) List[float]
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])