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

incorrect trimmed velocity header of ATCA FITS images #1375

Closed TienHao closed 4 months ago

TienHao commented 4 months ago

Describe the bug This is related to https://github.com/CARTAvis/carta-frontend/issues/2357. The frontend receives incorrect headers of velocity(CTYPE3) from ATCA FITS images. The original value of CTYPE3 in the FITS headers is 'VELO-XXX' (eg. VELO-HEL, VELO-LSR), but the OpenFileAck message shows 'VELO' in that key..

VELO-HEL turns to VELO

截圖 2024-05-02 下午2 38 03 截圖 2024-05-02 下午2 48 59

VELO-LSR turns to VELO

截圖 2024-05-02 下午3 09 36 截圖 2024-05-02 下午2 58 14

To Reproduce

  1. download the test images here: https://drive.google.com/file/d/1MrseMvR3j9YVeLk_4bwCmDjvIaPHUtye/view?usp=sharing (CTYPE3 = 'VELO-HEL') https://drive.google.com/file/d/1ynmyPlgEJolb_1D8m5tWNapXIGMwmUHO/view?usp=sharing (CTYPE3 = 'VELO-LSR')

  2. load it and check the log of OpenFileAck(or File header), and we will see the incorrect header.

Expected behavior The CTYPE3 in the OpenFileAck message should be the same as the one in the FITS header.

Screenshots or videos If applicable, add screenshots/videos to help explain your problem.

Platform info (please complete the following information):

Additional context Add any other context about the problem here.