-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Issues when building frames using DE440 #960
Comments
@AntoineRichard — I suspect that these ephemeris files, instead of having one segment per target, have multiple segments for the same target. Here's an open issue that might provide background: The ability to automatically handle these new cases is on my to-do list! |
Thanks for clarifying that, I may stick with DE421 for the time being then! |
It's not DE440, but the multi-segmented BPC file moon_pa_de440_200625.bpc contains 2 segments for the moon:
Sadly Consequently this will raise the ValueError No Problem with this one (supposing your DExxx covers that date) ugly workaround Force the moon's segment to be the one you want. With DE440 being the planetary ephemeris this will do: pc = PlanetaryConstants()
pc.read_text(load('pck00011.tpc'))
pc.read_text(load('moon_de440_200625.tf')) # der zugehörige NAIF lunar frame kernel
pc.read_binary(load('moon_pa_de440_200625.bpc'))
# ugly workaround
pc._segment_map[31008] = pc._segment_list[0]
frame = pc.build_frame_named('MOON_ME_DE440_ME421')
aristarchus = moon + pc.build_latlon_degrees(frame, 26.3, -46.8)
t = ts.utc(2019, 12, 20, 11, 5)
apparent = aristarchus.at(t).observe(earth).apparent()
ra, dec, distance = apparent.radec(epoch='date') |
BTW: See #952 |
Hi there,
I'm running into issues using the ephemeris DE440 and observing planets from the moon.
I think there is a fair chance that I'm just mentally challenged and missed something, but on the account I didn't here is how to reproduce the issue:
The files you will need:
The code (it's the same as the demo code for that):
The output:
I double-checked the time range for
moon_pa_de440_200625.bpc
and it should be fine. I'm not sure what's happening.I also tried with
moon_de440_200625.tf
which resulted in the same outcome.Thanks for all your work on this lib!
Best,
Antoine
The text was updated successfully, but these errors were encountered: