Calculating GEO Satellite Longitude from its (t; RA, Dec) observations #982
Unanswered
mikolajkarawacki
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Could you share a snippet of code that you would like to get working, along with the exact exception? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi :) I've been - unsuccessfully so far - trying to calculate satellite longitude given its observed location and time. After failing to obtain correct results using this formula https://space.stackexchange.com/questions/22850/computing-geo-satellites-longitude-from-elevation-azimuth-from-a-given-latitude , I realized I could use Astropy + Skyfield. Unfortunatelly, I cannot use
SkyCoord(ra,dec,obstime,distance).transform_to(GCRS).cartesian
(distance is of course converted from AU to km ;) as a geocentric input vector forwgs84.latlon_of()
- as my code crashes with errors on.center
attribute missing.My attempts at solving it in "plain" Skyfield with
position_of_radec(ra,dec,distance)
also crash on the shores of.center
- even with manually definingpos.center=399
. I also tried forcing it withpositionlib.Geocentric(pos)
but all I get for my troubles isValueError: setting an array element with a sequence.
I would really appreciate any and all help or suggestions as to how to solve this problem. The deadline for our department's paper for the AMOS conference is getting uncomfortably close :(
Beta Was this translation helpful? Give feedback.
All reactions