Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calculation of STIX pointing in HPC to imaging demo #112

Merged
merged 2 commits into from
May 9, 2024

Conversation

DanRyanIrish
Copy link
Contributor

This PR corrects how the HPC coordinate of the centre of the STIX pointing is calculated in the imaging demo. While the pre-existing calculation is approximately valid in the demo's case, it is not valid for substanital roll angle. The approach given in the PR should be valid for all roll angles.

Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.52%. Comparing base (a694ede) to head (fc8a436).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
+ 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 self-requested a review May 9, 2024 12:41
@@ -129,7 +129,7 @@
header = make_fitswcs_header(bp_image, coord, telescope='STIX', observatory='Solar Orbiter', scale=[10,10]*u.arcsec/u.pix)
fd_bp_map = Map((bp_image, header))

hpc_ref = Helioprojective(pointing[0], pointing[1], observer=solo, obstime=fd_bp_map.date)
Copy link
Member

Choose a reason for hiding this comment

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

Good catch - I think this was done but must have been lost at some point.

@samaloney samaloney merged commit c606ef4 into TCDSolar:main May 9, 2024
13 checks passed
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.

2 participants