Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update ephemeris calculations#111

Merged
samaloney merged 1 commit into
TCDSolar:mainfrom
samaloney:feat-pointing-improvments
May 8, 2024
Merged

Update ephemeris calculations#111
samaloney merged 1 commit into
TCDSolar:mainfrom
samaloney:feat-pointing-improvments

Conversation

@samaloney

@samaloney samaloney commented May 3, 2024

Copy link
Copy Markdown
Member
  • Updates for V02 aux-ephemeris files
  • Mean over time range where possible
  • Use average values when no SAS solution
  • Interpolate when only match one time bin

@codecov

codecov Bot commented May 3, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 94.66667% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 69.52%. Comparing base (a694ede) to head (baa1454).

Files Patch % Lines
stixpy/coordinates/transforms.py 94.66% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@samaloney samaloney force-pushed the feat-pointing-improvments branch 2 times, most recently from 5f221d7 to 29a3d77 Compare May 6, 2024 16:11
@samaloney samaloney marked this pull request as ready for review May 6, 2024 20:11

@FredSchuller FredSchuller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@samaloney

samaloney commented May 8, 2024

Copy link
Copy Markdown
Member Author

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

https://github.com/i4Ds/STIX-GSW/blob/bb8acc8accc2ec59a9cbd6e277d4098856c34a2d/stix/idl/processing/aux_data/stx_create_auxiliary_data.pro#L179-L180

@FredSchuller

Copy link
Copy Markdown

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.

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.
A cleaner way would be to write the values of these parameters in the primary header of the L2 aux file (they do not change with time, but may change from one version to the next of the aspect data processing)
But that's a different topic...

* If time range incompases many time use mean
* If only one time bin interpolate betweeen two nearest bins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants