Parse and store regions and annotations from an ascii region file <author>Dave Mehringer</author>
More...
|
| RegionTextParser ()=delete |
|
| RegionTextParser (const casacore::String &filename, const casacore::CoordinateSystem &csys, const casacore::IPosition &imShape, const casacore::Int requireAtLeastThisVersion, const casacore::String &prependRegion="", const casacore::String &globalOverrideChans="", const casacore::String &globalOverrrideStokes="", casacore::Bool verbose=true, casacore::Bool requireImageRegion=true) |
| differentiating between the filename and simple text constructors globalOverrideChans override all spectral selections in the file or text by using this channel selection <src>globalOverrideStokes override all correlation selections in the file or text by using this polarization selection <src>prependRegion allows one to specify region(s) that will be prepended to any text in filename or text requireImageRegion is passed to the AnnRegion constructors to indicate whether to rethrow ToLCRegionConversionError exception when the region is outside the image lattice, or create the object even if the ImageRegion has no lattice region. More...
|
|
| RegionTextParser (const casacore::CoordinateSystem &csys, const casacore::IPosition &imShape, const casacore::String &text, const casacore::String &prependRegion="", const casacore::String &globalOverrideChans="", const casacore::String &globalOverrrideStokes="", casacore::Bool verbose=true, casacore::Bool requireImageRegion=true) |
|
| ~RegionTextParser () |
|
RegionTextParser & | operator= (const RegionTextParser &)=delete |
|
casacore::Int | getFileVersion () const |
|
std::vector
< AsciiAnnotationFileLine > | getLines () const |
|
|
void | _parse (const casacore::String &contents, const casacore::String &fileDesc, casacore::Bool requireImageRegion) |
|
casacore::Array< casacore::String > | _extractTwoPairs (casacore::uInt &end, const casacore::String &string) const |
|
void | _addLine (const AsciiAnnotationFileLine &line) |
|
AnnotationBase::Type | _getAnnotationType (casacore::Vector< casacore::Quantity > &qDirs, std::vector< casacore::Quantity > &quantities, casacore::String &textString, casacore::String &consumeMe, const casacore::String &preamble) const |
|
ParamSet | _getCurrentParamSet (casacore::Bool &spectralParmsUpdated, ParamSet &newParams, casacore::String &consumeMe, const casacore::String &preamble) const |
|
void | _createAnnotation (const AnnotationBase::Type annType, const casacore::Vector< casacore::Quantity > &qDirs, const std::pair< casacore::Quantity, casacore::Quantity > &qFreqs, const std::vector< casacore::Quantity > &quantities, const casacore::String &textString, const ParamSet ¤tParamSet, const casacore::Bool annOnly, const casacore::Bool isDifference, const casacore::String &preamble, casacore::Bool requireImageRegion) |
|
std::pair< casacore::Quantity,
casacore::Quantity > | _quantitiesFromFrequencyString (const casacore::String &freqString, const casacore::String &preamble) const |
|
casacore::Vector
< casacore::Quantity > | _extractQuantityPairAndSingleQuantity (casacore::String &consumeMe, const casacore::String &preamble) const |
|
casacore::Vector
< casacore::Quantity > | _extractNQuantityPairs (casacore::String &consumeMe, const casacore::String &preamble) const |
|
casacore::Vector
< casacore::Quantity > | _extractTwoQuantityPairs (casacore::String &consumeMe, const casacore::String &preamble) const |
|
std::pair< casacore::Quantity,
casacore::Quantity > | _extractSingleQuantityPair (const casacore::String &pair, const casacore::String &preamble) const |
|
void | _setInitialGlobals () |
|
casacore::Vector
< casacore::Quantity > | _extractTwoQuantityPairsAndSingleQuantity (casacore::String &consumeMe, const casacore::String &preamble) const |
|
void | _extractQuantityPairAndString (std::pair< casacore::Quantity, casacore::Quantity > &quantities, casacore::String &string, casacore::String &consumeMe, const casacore::String &preamble, const casacore::Bool requireQuotesAroundString) const |
|
casacore::Vector
< casacore::Quantity > | _extractQuantitiesFromPair (const casacore::String &pair, const casacore::String &preamble) const |
|
void | _determineVersion (const casacore::String &chunk, const casacore::String &filename, const casacore::Int requireAtLeastThisVersion) |
|
void | _setOverridingCorrelations (const casacore::String &globalOverrideStokes) |
| set the casacore::Stokes/polarizations/correlations that will override all global and per line correlation specifications. More...
|
|
void | _setOverridingChannelRange (const casacore::String &globalOverrideChans) |
| set the (single) channel range that will override all global and per line frequency specifications. More...
|
|
Parse and store regions and annotations from an ascii region file <author>Dave Mehringer</author>
Intended use:
Public interface
Review Status
- Date Reviewed:
- yyyy/mm/dd
Etymology
This is a class designed to parse and store regions and annotations from an ascii region file
Synopsis
This class is for parsing and storing regions and annotations from an ascii region (CRTF) file. The format spec can be found at https://casa.nrao.edu/casadocs-devel/stable/imaging/image-analysis/region-file-format
Definition at line 56 of file RegionTextParser.h.