Repository navigation
Add get_moon function to astropy.coordinates using the erfa.plan94 - #4736
sharadmirani wants to merge 2 commits into
Conversation
|
This needs test and change log. |
Float conversion can be applied to unitless quantities only
|
@eteq I am trying to run the following test. The function is working fine for an array of times. But, since we are using the data for the EMB, the error gets magnified by a factor of (Mearth / Mmoon + 1) = 82.25. Due to this, the position given by this Output: Thus, I am trying to find a better alternative in the |
|
@sharadmirani - I think for the moon there is a better approach using |
|
@mhvk @sharadmirani Actually, I think this is currently a better approach than #4724 beause #4724 is not correct, at least as it is currently implemented. That said, the way this particular function is implemented also seems problematic for the moon itself: this relies on the difference between fits to the Earth-Moon barycenter and the location of the earth. I'm pretty sure this is going to yield substantial errors due to machine-level errors in the subtraction, and I think that's exactly what you're running into, @sharadmirani. So I agree with @mhvk that this implementation is better for something like A better way to do cc @bmorris3, as he has a partial (or maybe complete?) version of |
|
@eteq The However, I'm soon going to make a PR that uses |
|
This can be closed since #4890 is merged. |
|
Indeed, will close this. But thanks @sharadmirani for the trial; we'll also still get a version using |
Trying to replicate the
get_sunfunction to add theget_moonfunction usingerfa.plan94to get the position and velocity of the Earth-Moon Barycenter.