ska_tmc_dishleafnode.az_el_converter module
Link to the TMC User documentation is here <https://confluence.skatelescope.org/display/UD/TMC+User+Documentation>_.
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:
objectClass 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]]
Convert Az/El (deg) to RA/Dec (HMS/DMS), reversing refraction.
- create_antenna_obj() None
Create antenna object from array layout and set observer.
- point(right_ascension: str | float, declination: str | float, timestamp: str) list[float]
Convert RA/Dec to Az/El and apply refraction.
- Parameters:
right_ascension – RA value (H:M:S string or float degrees )
declination – Dec value (D:M:S string or float degrees per )
timestamp – UTC timestamp string
- Returns:
[Az deg, El deg]
- point_to_body(target_name: str, timestamp: str) List[float]
Get Az/El for a non-sidereal object and apply refraction correction.
- Parameters:
target_name – Name of the non-sidereal body
timestamp – Timestamp for observation
- radec_to_azel(right_ascension: str | float, declination: str | float, timestamp: str) List[float]
Forward transform RA/Dec to Az/El and apply refraction.
- Parameters:
right_ascension – RA value (H:M:S string or float degrees)
declination – Dec value (D:M:S string or float degrees)
timestamp – UTC timestamp string
- Returns:
[Az deg, El deg]
- class ska_tmc_dishleafnode.az_el_converter.AzElConverter_v2(component_manager)
Bases:
AzElConverterClass to convert ICRS, special, TLE, altaz, etc reference frame values into Azimuth(Az) and Elevation(El). This class addressed the missing projection and trajectory functionality in older class.
- get_offset_in_rad(x: float, y: float) tuple
Get the offset in radian
- Parameters:
x – Offset in arcseconds along x-axis.
y – Offset in arcseconds along y-axis.
- Returns:
Offset values in radians.
- Return type:
tuple[float, float]
- point(right_ascension: Optional[Union[str, float]] = None, declination: Optional[Union[str, float]] = None, timestamp: Optional[str] = None) List[float]
Get Az, El and apply refraction correction.
- Parameters:
timestamp – Timestamp for observation.
- Returns:
Azimuth and Elevation in degrees after refraction correction.
- Return type:
List[float]