lib_SRT.utils package¶
lib_SRT.utils.coordsConversions module¶
- AzAlt2Gal(az, alt)¶
Utilitary method that transforms the input Azimuth (Az) and Elevation (Alt) coordinates to galactic longitude (long) and latitude (b) coordinates. AzAlt is computed taking into account the geolocation of VEGA, stored in global variables OBS_LAT, OBS_LON and OBS_HEIGHT.
- Parameters:
az (float) – Input Az coordinate in decimal degrees
alt (float) – Input Alt coordinate in decimal degrees
- Returns:
Converted galactic coordinates
- Return type:
(float,float)
- AzAlt2RaDec(az, alt)¶
Utilitary method that transforms the input Azimuth (Az) and Elevation (Alt) coordinates to Right Ascension (RA) and Declination (Dec) coordinates. AzAlt is computed taking into account the geolocation of VEGA, stored in global variables OBS_LAT, OBS_LON and OBS_HEIGHT.
- Parameters:
az (float) – Input Az coordinate in decimal degrees
alt (float) – Input Alt coordinate in decimal degrees
- Returns:
Converted RaDec coordinates
- Return type:
(float,float)
- Gal2AzAlt(long, b)¶
Utilitary method that transforms the input galactic longitude (long) and latitude (b) coordinates to Azimuth (Az) and elevation (Alt) coordinates. AzAlt is computed taking into account the geolocation of VEGA, stored in global variables OBS_LAT, OBS_LON and OBS_HEIGHT.
- Parameters:
long (float) – Input long coordinate in decimal hours
b (float) – Input b coordinate in decimal degrees
- Returns:
Converted AzAlt coordinates
- Return type:
(float,float)
- RaDec2AzAlt(ra, dec)¶
Utilitary method that transforms the input Right Ascension (RA) and Declination (Dec) coordinates to Azimuth (Az) and elevation (Alt) coordinates. AzAlt is computed taking into account the geolocation of VEGA, stored in global variables OBS_LAT, OBS_LON and OBS_HEIGHT.
- Parameters:
ra (float) – Input RA coordinate in decimal hours
dec (float) – Input Dec coordinate in decimal degrees
- Returns:
Converted AzAlt coordinates
- Return type:
(float,float)
- TLE2AzAlt(tle, delay=0)¶
Returns az and alt position of sat at current time given TLE
- Parameters:
tle (? TODO: find this) – The target satellite TLE
delay (float) – Delay in seconds to introduce in the TLE propagation in order to cope with the slew duration to the tracking path
- Returns:
The converted AzAlt coordinates
- Return type:
(float, float)