CARTAvis / carta-backend

Source code repository for the backend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
22 stars 11 forks source link

[regression] FITS cannot be opened due to Extended file info exception: Unit::check Illegal unit string 'degrees' #1265

Closed kswang1029 closed 1 year ago

kswang1029 commented 1 year ago

Describe the bug The attached FITS image is from Herschel space telescope. The image can be loaded successfully in v3-stable but not in v4-beta nor dev.

2023-05-16 03:20:11 INFO FITSCoordinateUtil::fromFITSHeader passing empty or nonexistant spectral Coordinate axis [2023-05-16 03:20:11.140] [CARTA] [debug] Extended file info exception: Unit::check Illegal unit string 'degrees' 2023-05-16 03:20:11 INFO FITSCoordinateUtil::fromFITSHeader passing empty or nonexistant spectral Coordinate axis [2023-05-16 03:20:11.144] [CARTA] [debug] Extended file info exception: Unit::check Illegal unit string 'degrees' [2023-05-16 03:20:11.144] [CARTA] [error] Header error or no image HDUs found.

https://drive.google.com/file/d/1mxo4YO6H7zLq9T1eZnHBnGpfe1ITKoEl/view?usp=sharing

To Reproduce Steps to reproduce the behavior:

  1. download the test image and try to load it in carta
  2. when we click on the image file in the file browser, we will see error in the file info pane.

Expected behavior The image can be loaded successfully

Platform info (please complete the following information):

pford commented 1 year ago

Closed via #1255