Go to the documentation of this file.
28 #ifndef IMAGES_FITSImgParser_H
29 #define IMAGES_FITSImgParser_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/fits/FITS/fits.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/casa/BasicSL/String.h>
221 const Int &extversion,
const Bool &hasdata);
FITSImgParser(const FITSImgParser &other)
Copy constructor (reference semantics).
Bool is_qualityimg(const String &extexpr)
Check whether the extensions named in the extension expression can be loaded as a quality image.
FITSExtInfo(const FITSExtInfo &other)
Copy constructor (reference semantics)
Vector< String > qualimglist_p
FITSImgParser(const String &name)
Construct a parser from the FITS file.
void setup(void)
Setup the object (used by constructors).
const Char * c_str() const
Get char array.
Bool operator==(const FITSExtInfo &extinfo)
Relational operator.
static const int nKwords_p
Bool has_qualityimg(void)
Get the flag indicating at least one quality image.
uInt get_firstdata_index(void)
Get the index of the first extension with data.
Bool index_is_HDUtype(const Int &ext_index, const String &hdutype)
Check whether the extension has a certain HDU type.
String get_extname(void)
Return the extension name.
~FITSImgParser()
Destructor, does not much.
~FITSExtInfo()
Destructor does nothing.
Int find_extension(const String &extname, const Int &extversion=-1)
Find an extension; return -1 if not found.
void process_extension(HeaderDataUnit *h, const uInt &extindex)
Get the information on an extension.
Bool has_data(void)
Return whether there is data.
this file contains all the compiler specific defines
String fitsname(Bool stripPath=False) const
Returns the name of the disk file.
Int get_dataindex(const Vector< Int > &extindex)
Get the first extension with HDU type "data" from the list of indices.
Bool get_extlist(const String &extexpr, Vector< String > &extlist)
Extract the list of extensions from the extension expression.
String get_maskext(const Int &ext_index)
Get the mask extension name for the given data extension.
Bool find_qualimgs(void)
Find and store all set of extensions that can be loaded as a quality image.
Bool confirm_fix_keywords(const Int &ext_index)
Check the keywords with fixed values.
String get_errorext(const Int &ext_index)
Get the error extension name for the given data extension.
Bool get_quality_data(const String &extexpr, Int &data_HDU, Int &error_HDU, String &error_type, Int &mask_HDU, String &mask_type, Int &mask_value)
Find all necessary access information for the extensions to be loaded as a quality image.
Int get_index(const FITSExtInfo &extinfo)
Identify the index of an extension.
Int get_extversion(void)
Return the extension version.
void add_kwlist(FitsKeywordList &kwlist)
Add a list of keywords.
String get_extlist_string(const String &delimiter, const String &qualmarker="", const String &fitsmarker="", const Bool &listall=True)
Get a string representation of the extension list.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
FitsKeyword * get_keyword(const String kname)
Return a keyword.
linked list of FITS keywords
String get_extexpr(void)
All extension information as a string.
FITSExtInfo & operator=(const FITSExtInfo &other)
Assignment (reference semantics).
FITSImgParser & operator=(const FITSImgParser &other)
Assignment (reference semantics).
static const char * storeKwords_p[]
FITSExtInfo(const String &name, const uInt &extindex, const String &extname, const Int &extversion, const Bool &hasdata)
Construct the object.
FITSExtInfo * extensions_p
FITSExtInfo()
Construct the object.
uInt get_numhdu(void)
Get the number of extensions.