diff --git a/src/FileList/FileExtInfoLoader.cc b/src/FileList/FileExtInfoLoader.cc index 19d0c24a8..fe947dd33 100644 --- a/src/FileList/FileExtInfoLoader.cc +++ b/src/FileList/FileExtInfoLoader.cc @@ -713,8 +713,6 @@ void FileExtInfoLoader::AddInitialComputedEntries(const std::string& hdu, CARTA: if (compressed_fits) { compressed_fits->SetShape(shape); - compressed_fits->SetSpectralAxis(axes.spectral); // TODO: this was set to depth axis previously -- which is correct??? - compressed_fits->SetStokesAxis(axes.stokes); } } @@ -1202,6 +1200,8 @@ void FileExtInfoLoader::AddComputedEntriesFromHeaders( entry->set_entry_type(CARTA::EntryType::STRING); } + std::cout << "+++++ Before if (compressed_fits); projection is " << projection << std::endl; + if (compressed_fits) { casacore::CoordinateSystem coordsys; auto shape = compressed_fits->GetShape(); diff --git a/src/ImageData/CompressedFits.cc b/src/ImageData/CompressedFits.cc index 7e9c9dda5..71bd179ca 100644 --- a/src/ImageData/CompressedFits.cc +++ b/src/ImageData/CompressedFits.cc @@ -22,7 +22,7 @@ using namespace carta; CompressedFits::CompressedFits(const std::string& filename, bool support_aips_beam) - : _filename(filename), _support_aips_beam(support_aips_beam), _is_history_beam(false), _spectral_axis(-1), _stokes_axis(-1) { + : _filename(filename), _support_aips_beam(support_aips_beam), _is_history_beam(false) { // Initialize linear transformation matrix for the direction coordinate SetDefaultTransformMatrix(); } diff --git a/src/ImageData/CompressedFits.h b/src/ImageData/CompressedFits.h index 4ecd99d4e..83fb7dc6f 100644 --- a/src/ImageData/CompressedFits.h +++ b/src/ImageData/CompressedFits.h @@ -106,18 +106,6 @@ class CompressedFits { casacore::IPosition& GetShape() { return _shape; } - void SetSpectralAxis(int spectral_axis) { - _spectral_axis = spectral_axis; - } - void SetStokesAxis(int stokes_axis) { - _stokes_axis = stokes_axis; - } - int GetSpectralAxis() { - return _spectral_axis; - } - int GetStokesAxis() { - return _stokes_axis; - } // File decompression unsigned long long GetDecompressSize(); @@ -153,8 +141,6 @@ class CompressedFits { casacore::Matrix _xform; // Linear transform matrix for the direction coordinate casacore::IPosition _shape; // Image shape - int _spectral_axis; // Spectral axis from the header - int _stokes_axis; // Stokes axis from the header }; } // namespace carta