Update ephemeris calculations#111
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #111 +/- ##
==========================================
+ Coverage 68.92% 69.52% +0.60%
==========================================
Files 31 31
Lines 1847 1887 +40
==========================================
+ Hits 1273 1312 +39
- Misses 574 575 +1 ☔ View full report in Codecov by Sentry. |
5f221d7 to
29a3d77
Compare
FredSchuller
left a comment
There was a problem hiding this comment.
It looks at least similar to what we do in IDL, though I'm not 100% sure with the signs of roll, yaw, pitch, x_sas, y_sas... I'd be happy to do some tests using real L2 files.
Another comment (which also applies to the IDL version): we should find a cleaner way to store constants such as STIX_X_SHIFT and STIX_X_OFFSET in a config. file, rather than hard-coding them in the python/IDL code.
|
Thanks @FredSchuller I think in the IDL code already pulls them from a config file see below, I will update the python code to match once the file is include in STIX-CONF repo. I'm not 100% on the signs myself but the final results match IDL 🤷 Myself and @paolomassa were chatting last week we should try to formalise the transformations can add that is the python docs a and IDL docs somewhere. There are at lest three native SAS detector coordinates which are rotated (~45 deg) + possible shifted compared the the STIX frame and this is again rotated and shifted compared to the SO HPC frame etc |
Yes I know, but still there is room for improvement in the way it's implemented, because this file (Mapcenter_correction_factors.csv) is supposed to be under $STIX_SAS which is defined somewhere else. |
* If time range incompases many time use mean * If only one time bin interpolate betweeen two nearest bins
29a3d77 to
baa1454
Compare
Uh oh!
There was an error while loading. Please reload this page.