-
Hello, I'd like to know if it's possible to derive the latitude and longitude based on altitude, azimuth and distance towards a geostationary satellite. My current attempt is way off; # fetch TLE
stations_url = 'https://celestrak.org/NORAD/elements/gp.php?GROUP=geo&FORMAT=tle'
satellites = load.tle_file(stations_url)
by_name = {sat.name: sat for sat in satellites}
# specify geostationary sat.
sat_tle = by_name['ALPHASAT']
ts = load.timescale()
t_now = ts.now()
# compute alt and az between earth station and sat
original_lon, original_lat = +48.8566, +2.3522
earth_station = wgs84.latlon(original_lat, original_lon)
difference = sat_tle - earth_station
topocentric = difference.at(t_now)
alt, az, distance = topocentric.altaz()
# Use computed alt, az and distance to derive lat and lon
# Taken from: https://rhodesmill.org/skyfield/coordinates.html#turning-coordinates-into-a-position
b = earth_station.at(t_now)
apparent = b.from_altaz(alt=alt, az=az, distance=distance)
ra, dec, d = apparent.radec()
position = Apparent.from_radec(ra_hours=ra.hours, dec_degrees=dec.degrees)
lat, lon, distance = position.frame_latlon(galactic_frame)
print('original:', original_lon, original_lat)
print('new:', lon, lat) Any help or suggested different approach would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Are you trying to determine the latitude and longitude of the ground station performing the observation? Or the latitude and longitude sitting below the satellite? |
Beta Was this translation helpful? Give feedback.
-
produces
However, I wasn't actually expecting it to work, so I'm not sure why it does. I just tried it while "thinking out loud". My intention was to subtract the altaz vector from the satellite's position, then figure out where that new position was. I was expecting to have to do some sort of rotation to the altaz vector so that it would be in the correct reference frame. But apparently not... The latitude is a little off, so I'm probably still missing something. |
Beta Was this translation helpful? Give feedback.
produces
However, I wasn't actually expecting it to work, so I'm not sure why it does. I just tried it while "thinking out loud". My intention was to subtract the altaz vector from the satellite's position, then figure out where that new position was.
I was expecting to have to do some sort of rotation to the altaz vector so that it would be in the correct reference frame. But apparently not... The latitude is a little off, so I'm probably still m…