|
| ImageMetaDataRW ()=delete |
|
| ImageMetaDataRW (SPIIT image) |
|
casacore::Bool | remove (const casacore::String &key) |
| remove, if possible, the specified parameter. More...
|
|
casacore::Bool | removeMask (const casacore::String &maskName) |
| remove the specified mask. More...
|
|
casacore::Record | toRecord (casacore::Bool verbose) const |
| convert the header info to a casacore::Record and list to logger if verbose=true More...
|
|
casacore::Bool | add (const casacore::String &key, const casacore::ValueHolder &value) |
| add a key-value pair More...
|
|
casacore::Bool | set (const casacore::String &key, const casacore::ValueHolder &value) |
| set (update) the value associated with the key. More...
|
|
void | setCsys (const casacore::Record &coordinates) |
| set the coordinate system from a Record. More...
|
|
| ImageMetaDataBase ()=delete |
|
virtual | ~ImageMetaDataBase () |
|
casacore::CoordinateSystem | coordsys (const std::vector< casacore::Int > &axes) const |
|
casacore::DataType | dataType () const |
|
casacore::uInt | nChannels () const |
|
casacore::Bool | isChannelNumberValid (const casacore::uInt chan) const |
| Is the specified channel number valid for this image? More...
|
|
casacore::Int | stokesPixelNumber (const casacore::String &stokesString) const |
| Get the pixel number on the polarization axis of the specified stokes parameter. More...
|
|
casacore::String | stokesAtPixel (const casacore::uInt pixel) const |
| get the stokes parameter at the specified pixel value on the polarization axis. More...
|
|
casacore::uInt | nStokes () const |
| Get the number of stokes parameters in this image. More...
|
|
casacore::Bool | isStokesValid (const casacore::String &stokesString) const |
| is the specified stokes parameter present in the image? More...
|
|
casacore::Vector< casacore::Int > | directionShape () const |
| Get the shape of the direction axes. More...
|
|
casacore::Bool | areChannelAndStokesValid (casacore::String &message, const casacore::uInt chan, const casacore::String &stokesString) const |
| if the specified stokes parameter is valid. More...
|
|
casacore::Record * | getBoundingBox (const casacore::Record ®ion) const |
| get the bounding box in the image for the specified region. More...
|
|
casacore::ValueHolder | getFITSValue (const casacore::String &key) const |
| get the value of the datum corresponding to the given casacore::FITS keyword. More...
|
|
casacore::Record | toWorld (const casacore::Vector< double > &value, const casacore::String &format="n", casacore::Bool doVelocity=true, const casacore::String &dirFrame="cl", const casacore::String &freqFrame="cl") const |
| if doVelocity=true, compute spectral velocities as well as frequencies, if false, only compute frequencies. More...
|
|
|
std::unique_ptr
< casacore::CoordinateSystem > | _makeCoordinateSystem (const casacore::Record &coordinates, const casacore::IPosition &shape) |
|
void | _setCoordinateValue (const casacore::String &key, const casacore::ValueHolder &value) |
|
casacore::String | _getString (const casacore::String &key, const casacore::ValueHolder &value) const |
|
void | _setUserDefined (const casacore::String &key, const casacore::ValueHolder &v) |
|
casacore::Bool | _setUnit (const casacore::String &unit) |
|
casacore::Bool | _setCsys (const casacore::CoordinateSystem &csys) |
|
casacore::Bool | _setImageInfo (const casacore::ImageInfo &info) |
|
const casacore::TableRecord | _miscInfo () const |
|
void | _setMiscInfo (const casacore::TableRecord &rec) |
|
casacore::Bool | _hasRegion (const casacore::String &maskName) const |
|
casacore::Bool | _isWritable () const |
|
template<class U , class V > |
void | _modHistory (const casacore::String &func, const casacore::String &keyword, const U &oldVal, const V &newVal) |
|
template<class U > |
void | _addHistory (const casacore::String &func, const casacore::String &keyword, const U &newVal) |
|
void | _toHistory (const casacore::String &origin, const casacore::String &record) |
|
template<class T>
class casa::ImageMetaDataRW< T >
A class in which to store and allow read-write access to image metadata.
Intended use:
Public interface
Prerequisite
Etymology
The ImageMetaDataRW class name is derived from its role as holding image metadata and providing read-write access.
Synopsis
The ImageMetaDataRW object is meant to allow access to image metadata (eg, shape, coordinate system info such as spectral and polarization axes numbers, etc). It allows write access to some values. This class contains the writable methods and extends ImageMetaData which contains the read-only methods.
Example
Construct an object of this class by passing the associated image to the constructor.
ImageMetaDataRW<casacore::Float> myImageMetaData(myImage);
Motivation
This class is meant to provide an object-oriented interface for accessing image metadata without polluting the casacore::ImageInterface and CoordinateSystem classes with these methods.
Definition at line 76 of file ImageMetaDataRW.h.