CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::CompressedFits Class Reference

#include <CompressedFits.h>

Collaboration diagram for carta::CompressedFits:
[legend]

Public Member Functions

 CompressedFits (const std::string &filename, bool support_aips_beam=false)
 
bool GetFitsHeaderInfo (std::map< std::string, CARTA::FileInfoExtended > &hdu_info_map)
 
bool GetFirstImageHdu (string &hduname)
 
const casacore::ImageBeamSet & GetBeamSet (bool &is_history_beam)
 
casacore::Matrix< casacore::Double > GetTransformMatrix ()
 
void SetShape (casacore::IPosition shape)
 
casacore::IPosition & GetShape ()
 
unsigned long long GetDecompressSize ()
 
bool DecompressGzFile (std::string &unzip_file, std::string &error)
 

Private Member Functions

gzFile OpenGzFile ()
 
bool DecompressedFileExists ()
 
void SetDecompressFilename ()
 
bool IsImageHdu (const std::string &fits_block, CARTA::FileInfoExtended &file_info_ext, long long &data_size)
 
void ParseFitsCard (casacore::String &fits_card, casacore::String &keyword, casacore::String &value, casacore::String &comment)
 
void AddHeaderEntry (casacore::String &keyword, casacore::String &value, casacore::String &comment, CARTA::FileInfoExtended &file_info_ext)
 
bool IsBeamTable (const std::string &fits_block, BeamTableInfo &beam_table_info)
 
void SetHistoryBeam (BeamInfo &beam_info)
 
void SetBeam (const BeamInfo &beam_info)
 
void ReadBeamsTable (gzFile zip_file, BeamTableInfo &beam_table_info)
 
void SetDefaultTransformMatrix ()
 

Private Attributes

std::string _filename
 
std::string _unzip_filename
 
casacore::ImageBeamSet _beam_set
 
bool _support_aips_beam
 
bool _is_history_beam
 
std::vector< casacore::String > _history_beam_headers
 
casacore::Matrix< casacore::Double > _xform
 
casacore::IPosition _shape
 

Constructor & Destructor Documentation

◆ CompressedFits()

CompressedFits::CompressedFits ( const std::string &  filename,
bool  support_aips_beam = false 
)
Here is the call graph for this function:

Member Function Documentation

◆ AddHeaderEntry()

void CompressedFits::AddHeaderEntry ( casacore::String &  keyword,
casacore::String &  value,
casacore::String &  comment,
CARTA::FileInfoExtended &  file_info_ext 
)
private
Here is the caller graph for this function:

◆ DecompressedFileExists()

bool CompressedFits::DecompressedFileExists ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecompressGzFile()

bool CompressedFits::DecompressGzFile ( std::string &  unzip_file,
std::string &  error 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBeamSet()

const casacore::ImageBeamSet & CompressedFits::GetBeamSet ( bool &  is_history_beam)
Here is the caller graph for this function:

◆ GetDecompressSize()

unsigned long long CompressedFits::GetDecompressSize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFirstImageHdu()

bool CompressedFits::GetFirstImageHdu ( string &  hduname)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFitsHeaderInfo()

bool CompressedFits::GetFitsHeaderInfo ( std::map< std::string, CARTA::FileInfoExtended > &  hdu_info_map)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetShape()

casacore::IPosition & carta::CompressedFits::GetShape ( )
inline
Here is the caller graph for this function:

◆ GetTransformMatrix()

casacore::Matrix< casacore::Double > CompressedFits::GetTransformMatrix ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsBeamTable()

bool CompressedFits::IsBeamTable ( const std::string &  fits_block,
BeamTableInfo beam_table_info 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsImageHdu()

bool CompressedFits::IsImageHdu ( const std::string &  fits_block,
CARTA::FileInfoExtended &  file_info_ext,
long long &  data_size 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenGzFile()

gzFile CompressedFits::OpenGzFile ( )
private
Here is the caller graph for this function:

◆ ParseFitsCard()

void CompressedFits::ParseFitsCard ( casacore::String &  fits_card,
casacore::String &  keyword,
casacore::String &  value,
casacore::String &  comment 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadBeamsTable()

void CompressedFits::ReadBeamsTable ( gzFile  zip_file,
BeamTableInfo beam_table_info 
)
private
Here is the caller graph for this function:

◆ SetBeam()

void CompressedFits::SetBeam ( const BeamInfo beam_info)
private
Here is the caller graph for this function:

◆ SetDecompressFilename()

void CompressedFits::SetDecompressFilename ( )
private
Here is the caller graph for this function:

◆ SetDefaultTransformMatrix()

void CompressedFits::SetDefaultTransformMatrix ( )
private
Here is the caller graph for this function:

◆ SetHistoryBeam()

void CompressedFits::SetHistoryBeam ( BeamInfo beam_info)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetShape()

void carta::CompressedFits::SetShape ( casacore::IPosition  shape)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _beam_set

casacore::ImageBeamSet carta::CompressedFits::_beam_set
private

◆ _filename

std::string carta::CompressedFits::_filename
private

◆ _history_beam_headers

std::vector<casacore::String> carta::CompressedFits::_history_beam_headers
private

◆ _is_history_beam

bool carta::CompressedFits::_is_history_beam
private

◆ _shape

casacore::IPosition carta::CompressedFits::_shape
private

◆ _support_aips_beam

bool carta::CompressedFits::_support_aips_beam
private

◆ _unzip_filename

std::string carta::CompressedFits::_unzip_filename
private

◆ _xform

casacore::Matrix<casacore::Double> carta::CompressedFits::_xform
private

The documentation for this class was generated from the following files: