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

#include <FileExtInfoLoader.h>

Collaboration diagram for carta::FileExtInfoLoader:
[legend]

Public Member Functions

 FileExtInfoLoader (std::shared_ptr< FileLoader > loader)
 
bool FillFitsFileInfoMap (std::map< std::string, CARTA::FileInfoExtended > &hdu_info_map, const std::string &filename, std::string &message)
 
bool FillFileExtInfo (CARTA::FileInfoExtended &extended_info, const std::string &filename, const std::string &hdu, std::string &message)
 

Private Member Functions

bool FillFileInfoFromImage (CARTA::FileInfoExtended &ext_info, const std::string &hdu, std::string &message)
 
void StripHduName (std::string &hdu)
 
casacore::Vector< casacore::String > FitsHeaderStrings (casacore::String &name, unsigned int hdu)
 
bool GetFITSHeader (std::shared_ptr< casacore::ImageInterface< float > > image, const std::string &hdu, casacore::ImageFITSHeaderInfo &fhi, casacore::String &error_string)
 
void AddEntriesFromHeaderStrings (const casacore::Vector< casacore::String > &headers, const std::string &hdu, CARTA::FileInfoExtended &extended_info)
 
void ConvertHeaderValueToNumeric (const casacore::String &name, casacore::String &value, CARTA::HeaderEntry *entry)
 
void FitsHeaderInfoToHeaderEntries (casacore::ImageFITSHeaderInfo &fhi, CARTA::FileInfoExtended &extended_info)
 
void AddDataTypeEntry (CARTA::FileInfoExtended &extended_info, casacore::DataType data_type, casacore::DataType equivalent_type)
 
void AddShapeEntries (CARTA::FileInfoExtended &extended_info, const casacore::IPosition &shape, const AxesInfo &axes, casacore::Vector< casacore::String > &axes_names)
 
void AddInitialComputedEntries (const std::string &hdu, CARTA::FileInfoExtended &extended_info, const std::string &filename, AxesInfo &axes, CompressedFits *compressed_fits=nullptr)
 
void AddComputedEntries (CARTA::FileInfoExtended &extended_info, casacore::ImageInterface< float > *image, const AxesInfo &axes, bool use_image_for_entries, bool is_history_beam)
 
void AddComputedEntriesFromHeaders (CARTA::FileInfoExtended &extended_info, const AxesInfo &axes, CompressedFits *compressed_fits=nullptr)
 
void AddBeamEntry (CARTA::FileInfoExtended &extended_info, const casacore::ImageBeamSet &beam_set, bool is_history_beam)
 
void AddCoordRanges (CARTA::FileInfoExtended &extended_info, const casacore::CoordinateSystem &coord_system, const casacore::IPosition &image_shape)
 
std::string MakeAngleString (const std::string &type, double val, const std::string &unit)
 
std::string ConvertCoordsToDeg (const std::string &type, const casacore::Quantity &coord)
 
std::string ConvertIncrementToArcsec (const casacore::Quantity &inc0, const casacore::Quantity &inc1)
 
void GetCoordNames (std::string &ctype1, std::string &ctype2, std::string &radesys, std::string &projection)
 
void SplitCtypeDescriptor (std::string &ctype, std::string &descriptor)
 

Private Attributes

std::shared_ptr< FileLoader_loader
 
CARTA::FileType _type
 

Constructor & Destructor Documentation

◆ FileExtInfoLoader()

FileExtInfoLoader::FileExtInfoLoader ( std::shared_ptr< FileLoader loader)

Member Function Documentation

◆ AddBeamEntry()

void FileExtInfoLoader::AddBeamEntry ( CARTA::FileInfoExtended &  extended_info,
const casacore::ImageBeamSet &  beam_set,
bool  is_history_beam 
)
private
Here is the caller graph for this function:

◆ AddComputedEntries()

void FileExtInfoLoader::AddComputedEntries ( CARTA::FileInfoExtended &  extended_info,
casacore::ImageInterface< float > *  image,
const AxesInfo axes,
bool  use_image_for_entries,
bool  is_history_beam 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddComputedEntriesFromHeaders()

void FileExtInfoLoader::AddComputedEntriesFromHeaders ( CARTA::FileInfoExtended &  extended_info,
const AxesInfo axes,
CompressedFits compressed_fits = nullptr 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddCoordRanges()

void FileExtInfoLoader::AddCoordRanges ( CARTA::FileInfoExtended &  extended_info,
const casacore::CoordinateSystem &  coord_system,
const casacore::IPosition &  image_shape 
)
private
Here is the caller graph for this function:

◆ AddDataTypeEntry()

void FileExtInfoLoader::AddDataTypeEntry ( CARTA::FileInfoExtended &  extended_info,
casacore::DataType  data_type,
casacore::DataType  equivalent_type 
)
private
Here is the caller graph for this function:

◆ AddEntriesFromHeaderStrings()

void FileExtInfoLoader::AddEntriesFromHeaderStrings ( const casacore::Vector< casacore::String > &  headers,
const std::string &  hdu,
CARTA::FileInfoExtended &  extended_info 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddInitialComputedEntries()

void FileExtInfoLoader::AddInitialComputedEntries ( const std::string &  hdu,
CARTA::FileInfoExtended &  extended_info,
const std::string &  filename,
AxesInfo axes,
CompressedFits compressed_fits = nullptr 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddShapeEntries()

void FileExtInfoLoader::AddShapeEntries ( CARTA::FileInfoExtended &  extended_info,
const casacore::IPosition &  shape,
const AxesInfo axes,
casacore::Vector< casacore::String > &  axes_names 
)
private
Here is the caller graph for this function:

◆ ConvertCoordsToDeg()

std::string FileExtInfoLoader::ConvertCoordsToDeg ( const std::string &  type,
const casacore::Quantity &  coord 
)
private
Here is the caller graph for this function:

◆ ConvertHeaderValueToNumeric()

void FileExtInfoLoader::ConvertHeaderValueToNumeric ( const casacore::String &  name,
casacore::String &  value,
CARTA::HeaderEntry *  entry 
)
private
Here is the caller graph for this function:

◆ ConvertIncrementToArcsec()

std::string FileExtInfoLoader::ConvertIncrementToArcsec ( const casacore::Quantity &  inc0,
const casacore::Quantity &  inc1 
)
private
Here is the caller graph for this function:

◆ FillFileExtInfo()

bool FileExtInfoLoader::FillFileExtInfo ( CARTA::FileInfoExtended &  extended_info,
const std::string &  filename,
const std::string &  hdu,
std::string &  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillFileInfoFromImage()

bool FileExtInfoLoader::FillFileInfoFromImage ( CARTA::FileInfoExtended &  ext_info,
const std::string &  hdu,
std::string &  message 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillFitsFileInfoMap()

bool FileExtInfoLoader::FillFitsFileInfoMap ( std::map< std::string, CARTA::FileInfoExtended > &  hdu_info_map,
const std::string &  filename,
std::string &  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FitsHeaderInfoToHeaderEntries()

void FileExtInfoLoader::FitsHeaderInfoToHeaderEntries ( casacore::ImageFITSHeaderInfo &  fhi,
CARTA::FileInfoExtended &  extended_info 
)
private
Here is the caller graph for this function:

◆ FitsHeaderStrings()

casacore::Vector< casacore::String > FileExtInfoLoader::FitsHeaderStrings ( casacore::String &  name,
unsigned int  hdu 
)
private
Here is the caller graph for this function:

◆ GetCoordNames()

void FileExtInfoLoader::GetCoordNames ( std::string &  ctype1,
std::string &  ctype2,
std::string &  radesys,
std::string &  projection 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFITSHeader()

bool FileExtInfoLoader::GetFITSHeader ( std::shared_ptr< casacore::ImageInterface< float > >  image,
const std::string &  hdu,
casacore::ImageFITSHeaderInfo &  fhi,
casacore::String &  error_string 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeAngleString()

std::string FileExtInfoLoader::MakeAngleString ( const std::string &  type,
double  val,
const std::string &  unit 
)
private
Here is the caller graph for this function:

◆ SplitCtypeDescriptor()

void FileExtInfoLoader::SplitCtypeDescriptor ( std::string &  ctype,
std::string &  descriptor 
)
private
Here is the caller graph for this function:

◆ StripHduName()

void FileExtInfoLoader::StripHduName ( std::string &  hdu)
private
Here is the caller graph for this function:

Member Data Documentation

◆ _loader

std::shared_ptr<FileLoader> carta::FileExtInfoLoader::_loader
private

◆ _type

CARTA::FileType carta::FileExtInfoLoader::_type
private

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