Closed ion1 closed 2 years ago
Thanks for reporting this, I think it suggests that this error could be made clearer. But, first: could you explain what value you would like to be returned for the hour angle here? If you could share the number, then it might help me suggest the correct Skyfield code to get the value you need.
could you explain what value you would like to be returned for the hour angle here? If you could share the number, then it might help me suggest the correct Skyfield code to get the value you need.
I'm just getting to know Skyfield and I was looking into the differences between radec, hadec and geographic_position_of when I encountered the crash. I think geographic_position_of will suit my current needs.
I think geographic_position_of will suit my current needs.
Great, I'm glad you've found a way to move forward! In the next few days I'll see about getting that error message made more specific.
There — I've landed a fix which should print a more interesting error message in the future:
to compute a body’s hour angle, you must observe it from a specific latitude and longitude on Earth
Hopefully that will help make the error clearer for the next person to run into it!
The following code crashes with the following output: