Skip to content

Commit

Permalink
Fix calculation of STIX pointing in HPC to imaging demo (#112)
Browse files Browse the repository at this point in the history
* Add correct calculation of STIX pointing in HPC to imaging demo.
* Add changelog for PR 112.
  • Loading branch information
DanRyanIrish authored May 9, 2024
1 parent 9036a75 commit c606ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/112.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct calculation of the HPC coordinate of the center of the STIX pointing in the imaging demo.
2 changes: 1 addition & 1 deletion examples/imaging_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
hpc_ref = coord.transform_to(Helioprojective(observer=solo, obstime=fd_bp_map.date)) # Center of STIX pointing in HPC
header_hp = make_fitswcs_header(bp_image, hpc_ref, scale=[10, 10]*u.arcsec/u.pix, rotation_angle=90*u.deg+roll)
hp_map = Map((bp_image, header_hp))
hp_map_rotated = hp_map.rotate()
Expand Down

0 comments on commit c606ef4

Please sign in to comment.