Transform one Geocentric to multiple earth-locations
See original GitHub issueHi,
First thanks for your work, your library is really amazing.
But for a specific application, i try to generate astrometric table and graph in alt/az for earth observers. I know the dates in advance, but not the locations. To gain some time and I/O reads from the Kernel file i try to find a way to pre-compute Geocentric position and use them on demand to transform from Geocentric to a Apparent with the observer coordinate.
I try adding/substrating different positions object with no success. I think i have to Positions class directly, but it’s not clear in my head, and the documentation is not talking about this approach.
How can we use an existing Geocentric Position (Apparent or not) and transform it into multiple Earth locations ? I guess it’s just a Vector transformation, but don’t know how to handle it.
Sorry i don’t have a lot of code to show.
from skyfield.api import load, wgs84
def astrometric_to_apparent_with_topo(astrometric, t, location):
#don't know how to take this function ...
pass
return
if __name__ == "__main__":
planets = load('data/de440.bsp')
timescale = load.timescale()
t0 = timescale.now()
astrometric_mars = planets["EARTH"].at(t0).observe(planets["MARS BARYCENTER"])
geographic_toulouse = wgs84.latlon(43.6167, 5.7667)
print(astrometric_to_apparent_with_topo(astrometric_mars, t0, `geographic_toulouse))
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (4 by maintainers)
Top GitHub Comments
You are too reactive for me.
I had my response since the third post, the discussion after it’s just bonuses and some curiosity.
I get everything i need now, thanks a lot, i learn everything :
I close the issue, i as i have my response. I will share tests results later here. But as it’s a side project it may take some days. Thanks again.
As shown just above, I’ve committed a fix for vector subtraction that will use more specific vector classes like
Geocentric
if subtraction indeed results in a vector whose origin is the geocenter. To try the new feature out:As for your original question, is this an accurate summary of the discussion so far?