WorldWideTelescope / toasty

Break large images into "tile pyramids", with a focus on the all-sky TOAST format.
https://toasty.readthedocs.io/
MIT License
0 stars 4 forks source link

toasty/collection.py: be more forgiving with FITS shapes #76

Closed pkgw closed 2 years ago

pkgw commented 2 years ago

Fix the behavior when the WCS has more axes than the FITS, under the assumption that these are virtual axes that should be taken to have size 1. Also make it a warning, not a fatal error, to have extra non-celestial axes with sizes other than 1. It means that we're dropping data without (currently) a way to do anything about it, but that's more useful than rejecting the file altogether.

These changes should enable us to load the new MeerKAT FITS mosaic.

codecov[bot] commented 2 years ago

Codecov Report

Merging #76 (385f166) into master (01406b5) will increase coverage by 0.01%. The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   75.36%   75.37%   +0.01%     
==========================================
  Files          23       23              
  Lines        3430     3432       +2     
==========================================
+ Hits         2585     2587       +2     
  Misses        845      845              
Impacted Files Coverage Δ
toasty/collection.py 57.06% <60.00%> (+0.49%) :arrow_up:

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 01406b5...385f166. Read the comment docs.