LM-SAL / aiapy

Python library for AIA data analysis
https://aiapy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Fix off-by-1 error in pointing key update - [merged] #256

Closed nabobalis closed 11 months ago

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Nov 2, 2021, 06:48

Merges pointing-table-bugs -> master

This fixes a fairly egregious error in how the pointing update works. The pointing table values are the CCD pixel coordinates and are 0-based while FITS WCS is 1-based. Thus, we need to add 1 when updating the CRPIX values with the X0,Y0 keys. See section 2.2 of the JSOC keywords doc: http://jsoc.stanford.edu/~jsoc/keywords/AIA/AIA02840_K_AIA-SDO_FITS_Keyword_Document.pdf

This also fixes an issue where the pointing values in the table were being assigned a unit of arcsec instead of pixel. This had no impact on the pointing update though since the units were stripped in the end anyway.

nabobalis commented 2 years ago

In GitLab by @codecov on Nov 2, 2021, 06:49

Codecov Report

Merging #132 (6f9e463) into master (fdfb681) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #132   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files          16       16           
  Lines         551      551           
=======================================
  Hits          537      537           
  Misses         14       14           
Impacted Files Coverage Δ
aiapy/calibrate/meta.py 100.00% <100.00%> (ø)
aiapy/calibrate/util.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fdfb681...6f9e463. Read the comment docs.

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Nov 2, 2021, 06:55

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

approved this merge request

nabobalis commented 2 years ago

mentioned in commit 2f6f053f4303ef6ed167cea6f5d0f6b36d1372e9

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Nov 2, 2021, 10:27

picked the changes into the branch cherry-pick-2f6f053f with commit 46a5020ed6fe22858e1de0b90d385ac31d391e70

nabobalis commented 2 years ago

mentioned in commit 46a5020ed6fe22858e1de0b90d385ac31d391e70

nabobalis commented 2 years ago

mentioned in commit 8124f002e3ce70aa8259800b2d09b1c157e77968