Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute ITRF coordinates from Topos #354

Closed
bobbyfrasier opened this issue Apr 10, 2020 · 1 comment
Closed

Compute ITRF coordinates from Topos #354

bobbyfrasier opened this issue Apr 10, 2020 · 1 comment

Comments

@bobbyfrasier
Copy link

Hi,

Would it be possible to add a method to compute ITRF coordinates directly from Topos ?

In the current version, the only way I found to do this was to first compute the ICRF at a random date and then extract the ITRF from the ICRF :

Date

date = ts.utc(2020, 4, 10, 10, 54, 0.0)

Topos coordinates

topos_coords = Topos(latitude_degrees=48.8534100, longitude_degrees=2.3488000, elevation_m=52.0)

ICRF coordinates

ICRF_coord = topos_coords.at(date)

ITRF coordinates

ITRF_coord = ICRF_coord.itrf_xyz()

Since the conversion between ITRF and Topos is independent from the date, it would be nice to have for example a method "itrf_xyz()" directly in the Topos class !

Have a good day

@brandon-rhodes
Copy link
Member

Great idea! I've just added that features, and it should appear in the next release of Skyfield. In the meantime you could test it out by installing master:

pip install https://github.com/skyfielders/python-skyfield/archive/master.zip

Thanks for the idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants