casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
casa::ImageMetaData< T > Class Template Reference

A class in which to store and allow read-only access to image metadata. More...

#include <ImageMetaData.h>

Inheritance diagram for casa::ImageMetaData< T >:
casa::ImageMetaDataBase< T >

Public Member Functions

 ImageMetaData ()=delete
 
 ImageMetaData (SPCIIT image)
 
 ~ImageMetaData ()
 
casacore::Record toRecord (casacore::Bool verbose) const
 convert the header info to a casacore::Record and list to logger if verbose=true More...
 
casacore::Record summary (const casacore::String &doppler, const casacore::Bool list, const casacore::Bool pixelorder, const casacore::Bool verbose)
 For ia.summary() moved from ImageAnalysis. More...
 
- Public Member Functions inherited from casa::ImageMetaDataBase< T >
 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::IntdirectionShape () 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::RecordgetBoundingBox (const casacore::Record &region) 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...
 

Protected Member Functions

const casacore::ImageInfo_getInfo () const
 
const casacore::CoordinateSystem_getCoords () const
 
casacore::Vector
< casacore::String
_getAxisNames () const
 
casacore::Vector
< casacore::String
_getAxisUnits () const
 
casacore::GaussianBeam _getBeam () const
 
casacore::String _getBrightnessUnit () const
 
casacore::String _getImType () const
 
std::vector< casacore::Quantity_getIncrements () const
 
casacore::Vector
< casacore::String
_getMasks () const
 
casacore::String _getObject () const
 
casacore::String _getEquinox () const
 
casacore::MEpoch _getObsDate () const
 
casacore::String _getObserver () const
 
casacore::String _getProjection () const
 
casacore::String _getRefFreqType () const
 
casacore::Vector
< casacore::Double
_getRefPixel () const
 
casacore::Vector
< casacore::Quantity
_getRefValue () const
 
casacore::Quantity _getRestFrequency () const
 
casacore::Record _getStatistics () const
 
casacore::String _getTelescope () const
 
casacore::Vector
< casacore::String
_getStokes () const
 
- Protected Member Functions inherited from casa::ImageMetaDataBase< T >
 ImageMetaDataBase (SPCIIT)
 
casacore::LogIO_getLog ()
 
casacore::String _getEpochString () const
 
casacore::IPosition _getShape () const
 
casacore::Record _makeHeader () const
 
void _toLog (const casacore::Record &header) const
 
casacore::uInt _getAxisNumber (const casacore::String &key) const
 
casacore::Record _calcStats () const
 
const casacore::TableRecord _miscInfo () const
 
casacore::uInt _ndim () const
 

Private Attributes

SPCIIT _image
 
const casacore::ImageInfo _info
 
const casacore::CoordinateSystem _csys
 
casacore::Record _header
 These are mutable because they are only to be set once and then cached. More...
 
casacore::String _bunit
 
casacore::String _imtype
 
casacore::String _object
 
casacore::String _equinox
 
casacore::String _projection
 
casacore::String _observer
 
casacore::String _telescope
 
casacore::String _reffreqtype
 
casacore::MEpoch _obsdate
 
casacore::Quantity _restFreq
 
casacore::GaussianBeam _beam
 
casacore::Vector
< casacore::String
_masks
 
casacore::Vector
< casacore::String
_stokes
 
casacore::Vector
< casacore::String
_axisNames
 
casacore::Vector
< casacore::String
_axisUnits
 
casacore::Vector
< casacore::Double
_refPixel
 
std::vector< casacore::Quantity_refVal
 
std::vector< casacore::Quantity_increment
 
casacore::Record _stats
 

Detailed Description

template<class T>
class casa::ImageMetaData< T >

A class in which to store and allow read-only access to image metadata.

Intended use:

Public interface

Prerequisite

Etymology

The ImageMetaData class name is derived from its role as holding image metadata.

Synopsis

The ImageMetaData object is meant to allow access to image metadata (eg, shape, coordinate system info such as spectral and polarization axes numbers, etc).

Example

Construct an object of this class by passing the associated image to the constructor.

ImageMetaData<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 79 of file ImageMetaData.h.

Constructor & Destructor Documentation

template<class T >
casa::ImageMetaData< T >::ImageMetaData ( )
delete
template<class T >
casa::ImageMetaData< T >::ImageMetaData ( SPCIIT  image)
template<class T >
casa::ImageMetaData< T >::~ImageMetaData ( )
inline

Definition at line 87 of file ImageMetaData.h.

Member Function Documentation

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_getAxisNames ( ) const
protectedvirtual
template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_getAxisUnits ( ) const
protectedvirtual
template<class T >
casacore::GaussianBeam casa::ImageMetaData< T >::_getBeam ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getBrightnessUnit ( ) const
protectedvirtual
template<class T >
const casacore::CoordinateSystem& casa::ImageMetaData< T >::_getCoords ( ) const
inlineprotectedvirtual

Implements casa::ImageMetaDataBase< T >.

Definition at line 101 of file ImageMetaData.h.

References casa::ImageMetaData< T >::_csys.

template<class T >
casacore::String casa::ImageMetaData< T >::_getEquinox ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getImType ( ) const
protectedvirtual
template<class T >
std::vector<casacore::Quantity> casa::ImageMetaData< T >::_getIncrements ( ) const
protectedvirtual
template<class T >
const casacore::ImageInfo& casa::ImageMetaData< T >::_getInfo ( ) const
inlineprotectedvirtual

Implements casa::ImageMetaDataBase< T >.

Definition at line 99 of file ImageMetaData.h.

References casa::ImageMetaData< T >::_info.

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_getMasks ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getObject ( ) const
protectedvirtual
template<class T >
casacore::MEpoch casa::ImageMetaData< T >::_getObsDate ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getObserver ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getProjection ( ) const
protectedvirtual

Reimplemented from casa::ImageMetaDataBase< T >.

template<class T >
casacore::String casa::ImageMetaData< T >::_getRefFreqType ( ) const
protectedvirtual
template<class T >
casacore::Vector<casacore::Double> casa::ImageMetaData< T >::_getRefPixel ( ) const
protectedvirtual
template<class T >
casacore::Vector<casacore::Quantity> casa::ImageMetaData< T >::_getRefValue ( ) const
protectedvirtual
template<class T >
casacore::Quantity casa::ImageMetaData< T >::_getRestFrequency ( ) const
protectedvirtual
template<class T >
casacore::Record casa::ImageMetaData< T >::_getStatistics ( ) const
protectedvirtual
template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_getStokes ( ) const
protectedvirtual
template<class T >
casacore::String casa::ImageMetaData< T >::_getTelescope ( ) const
protectedvirtual
template<class T >
casacore::Record casa::ImageMetaData< T >::summary ( const casacore::String doppler,
const casacore::Bool  list,
const casacore::Bool  pixelorder,
const casacore::Bool  verbose 
)

For ia.summary() moved from ImageAnalysis.

template<class T >
casacore::Record casa::ImageMetaData< T >::toRecord ( casacore::Bool  verbose) const
virtual

convert the header info to a casacore::Record and list to logger if verbose=true

Implements casa::ImageMetaDataBase< T >.

Member Data Documentation

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_axisNames
mutableprivate

Definition at line 157 of file ImageMetaData.h.

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_axisUnits
mutableprivate

Definition at line 157 of file ImageMetaData.h.

template<class T >
casacore::GaussianBeam casa::ImageMetaData< T >::_beam
mutableprivate

Definition at line 155 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_bunit
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
const casacore::CoordinateSystem casa::ImageMetaData< T >::_csys
private

Definition at line 145 of file ImageMetaData.h.

Referenced by casa::ImageMetaData< T >::_getCoords().

template<class T >
casacore::String casa::ImageMetaData< T >::_equinox
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
casacore::Record casa::ImageMetaData< T >::_header
mutableprivate

These are mutable because they are only to be set once and then cached.

If this contract is broken, and they are set elsewhere defects will likely occur.

Definition at line 150 of file ImageMetaData.h.

template<class T >
SPCIIT casa::ImageMetaData< T >::_image
private

Definition at line 142 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_imtype
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
std::vector<casacore::Quantity> casa::ImageMetaData< T >::_increment
mutableprivate

Definition at line 159 of file ImageMetaData.h.

template<class T >
const casacore::ImageInfo casa::ImageMetaData< T >::_info
private

Definition at line 144 of file ImageMetaData.h.

Referenced by casa::ImageMetaData< T >::_getInfo().

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_masks
mutableprivate

Definition at line 156 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_object
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
casacore::MEpoch casa::ImageMetaData< T >::_obsdate
mutableprivate

Definition at line 153 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_observer
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_projection
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_reffreqtype
mutableprivate

Definition at line 151 of file ImageMetaData.h.

template<class T >
casacore::Vector<casacore::Double> casa::ImageMetaData< T >::_refPixel
mutableprivate

Definition at line 158 of file ImageMetaData.h.

template<class T >
std::vector<casacore::Quantity> casa::ImageMetaData< T >::_refVal
mutableprivate

Definition at line 159 of file ImageMetaData.h.

template<class T >
casacore::Quantity casa::ImageMetaData< T >::_restFreq
mutableprivate

Definition at line 154 of file ImageMetaData.h.

template<class T >
casacore::Record casa::ImageMetaData< T >::_stats
mutableprivate

Definition at line 160 of file ImageMetaData.h.

template<class T >
casacore::Vector<casacore::String> casa::ImageMetaData< T >::_stokes
mutableprivate

Definition at line 156 of file ImageMetaData.h.

template<class T >
casacore::String casa::ImageMetaData< T >::_telescope
mutableprivate

Definition at line 151 of file ImageMetaData.h.


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