Replies: 10 comments
-
I went back to the MatLab code and used one of their examples to check the eci2aer function... from: https://www.mathworks.com/help/aerotbx/ug/eci2aer.html
The values are also significantly off... |
Beta Was this translation helpful? Give feedback.
-
Thanks for this report, apparently I haven't checked the ECI correctly. |
Beta Was this translation helpful? Give feedback.
-
Does the latest master commit a08dd0f work for you? I didn't try your test cases, but had better than 1% accuracy vs. Matlab Aero toolbox. I believe the prior computations used had too large error due to too few factors considered. |
Beta Was this translation helpful? Give feedback.
-
This should be fixed in PyMap3d v2.4.0. Please let us know if any further issues or this issue persists. |
Beta Was this translation helpful? Give feedback.
-
That didn't do anything to resolve this issue and avoiding astropy's complex class structure is most of the motivation for trying to use this package. |
Beta Was this translation helpful? Give feedback.
-
OK I didn't expose any of Astropy's internals, just plain numbers or ndarray in/out. Another point of comparison is Julia: https://juliaspace.github.io/SatelliteToolbox.jl/stable/man/transformations/ecef_eci/index.html just for reference: https://earth-info.nga.mil/GandG/publications/tr8350.2/tr8350.2-a/Appendix.pdf Although I don't have the time right today, I will leave this here for when I get a moment to compare a simple non-Astropy transform with AstroPy and Julia so that we don't give transformations with unreasonably large error--which the non-Astropy transform I had before seemed to have too much error. |
Beta Was this translation helpful? Give feedback.
-
v2.4.1 of PyMap3d restores the Numpy-only, rotation-only ECI conversion option by setting option "use_astropy=False" to the eci2* or *2eci functions. The non-AstroPy conversions have several percent error since they're rotation only. The default is to use AstroPy if available for ECI. |
Beta Was this translation helpful? Give feedback.
-
Please feel free to reopen if there's any remaining issues. Thanks for your helpful feedback. |
Beta Was this translation helpful? Give feedback.
-
Thanks Michael; I ended up writing some functions that use the ERFA implementation of SOFA and IAU's EOPS to perform GCRS // ITRS transformations as well as Az El computation using the ITRS frame. If they might be any help to you, you can find a draft here - https://github.com/AshHarvey/astro-trans. |
Beta Was this translation helpful? Give feedback.
-
Okay that's interesting, I'll keep that in mind for comparison with what I do currently. I was aiming for the least lines of code but that impacts numerical accuracy as well as computation time. |
Beta Was this translation helpful? Give feedback.
-
Thanks for porting over these MatLab codes! I was cross checking the eci2aer function with AstroPy before incorperating it into another project I am working on, but I must be missing something or these numbers are very far off...
Is ECI ~ GCRS ? Any feedback is appreciated. If this is my error vice the projects, I will gladly delete this.
Beta Was this translation helpful? Give feedback.
All reactions