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

attached CASA image cannot be loaded in CARTA #1239

Closed kswang1029 closed 1 year ago

kswang1029 commented 1 year ago

Describe the bug Reported by @jott3077

The attached CASA image cannot be loaded in CARTA. It can be loaded, however, with CASA-viewer and CASA-imhead.

oussid.s19_0._0137+331_3C48__bp.K_band.cont.I.iter1.psf.tt0.tar.gz

To Reproduce Steps to reproduce the behavior:

  1. download the attached CASA image (unzip it first) and load it with CARTA
  2. see error in the file info tab

Expected behavior The attached image should be loaded in CARTA as well

Platform info (please complete the following information):

kswang1029 commented 1 year ago

when using CASA-exportfits to convert the image to FITS, CASA shows errors

2023-02-14 06:06:05 SEVERE exportfits::FITSKeywordUtil::addKeywords (file casacore/fits/FITS/FITSKeywordUtil.cc, line 150) Value of keyword SPW will be truncated at 68 characters. 2023-02-14 06:06:05 SEVERE exportfits::FITSKeywordUtil::addKeywords (file casacore/fits/FITS/FITSKeywordUtil.cc, line 150) Value of keyword VIRTSPW will be truncated at 68 characters. 2023-02-14 06:06:05 SEVERE exportfits::image::tofits (file src/tools/image/image_cmpt.cc, line 6129) Exception Reported: Exception: Error creating initial FITS header. 2023-02-14 06:06:05 SEVERE exportfits::image::tofits (file src/tools/image/image_cmpt.cc, line 6129)+ ... thrown by static void casa::ImageFactory::toFITS(casa::SPCIIF, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Int, casa6core::Double, casa6core::Double, const casa6core::Record &, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, const casa6core::String &, casa6core::Bool, casa6core::Bool) at File: src/code/imageanalysis/ImageAnalysis/ImageFactory2.cc, line: 546 2023-02-14 06:06:05 SEVERE exportfits::::casa Task exportfits raised an exception of class RuntimeError with the following message: Exception: Error creating initial FITS header. 2023-02-14 06:06:05 SEVERE exportfits::::casa+ ... thrown by static void casa::ImageFactory::toFITS(casa::SPCIIF, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Int, casa6core::Double, casa6core::Double, const casa6core::Record &, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, const casa6core::String &, casa6core::Bool, casa6core::Bool) at File: src/code/imageanalysis/ImageAnalysis/ImageFactory2.cc, line: 546 2023-02-14 06:06:05 SEVERE exportfits::::casa Exception Reported: Error in exportfits: Exception: Error creating initial FITS header. 2023-02-14 06:06:05 SEVERE exportfits::::casa+ ... thrown by static void casa::ImageFactory::toFITS(casa::SPCIIF, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Int, casa6core::Double, casa6core::Double, const casa6core::Record &, const casa6core::String &, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, casa6core::Bool, const casa6core::String &, casa6core::Bool, casa6core::Bool) at File: src/code/imageanalysis/ImageAnalysis/ImageFactory2.cc, line: 546