casa
5.7.0-16
|
#include <ImageMetaDataBase.h>
Public Member Functions | |
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... | |
virtual casacore::Record | toRecord (casacore::Bool verbose) const =0 |
convert the header info to a casacore::Record and list to logger if verbose=true 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... | |
Private Member Functions | |
void | _fieldToLog (const casacore::Record &header, const casacore::String &field, casacore::Int precision=-1) const |
precision < 0 => use default precision when printing numbers More... | |
casacore::String | _doStandardFormat (casacore::Double value, const casacore::String &unit) const |
casacore::Record | _calcStatsT (std::shared_ptr< const casacore::ImageInterface< T > > image) const |
Static Private Member Functions | |
static casacore::Record | _worldVectorToRecord (const casacore::CoordinateSystem &csys, const casacore::Vector< casacore::Double > &world, casacore::Int c, const casacore::String &format, casacore::Bool isAbsolute, casacore::Bool showAsAbsolute, casacore::Bool doVelocity, casacore::MDirection::Types dirFrame, casacore::MFrequency::Types freqFrame) |
static casacore::Record | _worldVectorToMeasures (const casacore::CoordinateSystem &csys, const casacore::Vector< casacore::Double > &world, casacore::Int c, casacore::Bool abs, casacore::Bool doVelocity, casacore::MDirection::Types dirFrame, casacore::MFrequency::Types freqFrame) |
Private Attributes | |
SPCIIT | _image |
casacore::LogIO | _log |
casacore::IPosition | _shape |
Definition at line 74 of file ImageMetaDataBase.h.
|
delete |
|
inlinevirtual |
Definition at line 81 of file ImageMetaDataBase.h.
|
protected |
|
protected |
|
private |
|
private |
|
private |
precision < 0 => use default precision when printing numbers
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protected |
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protected |
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
inlineprotected |
Definition at line 149 of file ImageMetaDataBase.h.
References casa::ImageMetaDataBase< T >::_log.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedvirtual |
Reimplemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protected |
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protectedpure virtual |
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprivate |
|
staticprivate |
casacore::Bool casa::ImageMetaDataBase< T >::areChannelAndStokesValid | ( | casacore::String & | message, |
const casacore::uInt | chan, | ||
const casacore::String & | stokesString | ||
) | const |
if the specified stokes parameter is valid.
A message suitable for error notification is returned in the form of an in-out parameter if one or both of these is invalid.
casacore::CoordinateSystem casa::ImageMetaDataBase< T >::coordsys | ( | const std::vector< casacore::Int > & | axes | ) | const |
casacore::DataType casa::ImageMetaDataBase< T >::dataType | ( | ) | const |
casacore::Vector<casacore::Int> casa::ImageMetaDataBase< T >::directionShape | ( | ) | const |
Get the shape of the direction axes.
Returns a two element casacore::Vector if there is a direction coordinate, if not returns a zero element vector.
casacore::Record* casa::ImageMetaDataBase< T >::getBoundingBox | ( | const casacore::Record & | region | ) | const |
get the bounding box in the image for the specified region.
casacore::ValueHolder casa::ImageMetaDataBase< T >::getFITSValue | ( | const casacore::String & | key | ) | const |
get the value of the datum corresponding to the given casacore::FITS keyword.
casacore::Bool casa::ImageMetaDataBase< T >::isChannelNumberValid | ( | const casacore::uInt | chan | ) | const |
Is the specified channel number valid for this image?
casacore::Bool casa::ImageMetaDataBase< T >::isStokesValid | ( | const casacore::String & | stokesString | ) | const |
is the specified stokes parameter present in the image?
casacore::uInt casa::ImageMetaDataBase< T >::nChannels | ( | ) | const |
casacore::uInt casa::ImageMetaDataBase< T >::nStokes | ( | ) | const |
Get the number of stokes parameters in this image.
casacore::String casa::ImageMetaDataBase< T >::stokesAtPixel | ( | const casacore::uInt | pixel | ) | const |
get the stokes parameter at the specified pixel value on the polarization axis.
returns "" if the specified pixel is out of range or if no polarization axis.
casacore::Int casa::ImageMetaDataBase< T >::stokesPixelNumber | ( | const casacore::String & | stokesString | ) | const |
Get the pixel number on the polarization axis of the specified stokes parameter.
If the specified stokes parameter does not exist in the image, the value returned is not gauranteed to be anything other than outside the range of 0 to nStokes-1 inclusive. Return -1 if the specified stokes parameter is not present or if this image does not have a polarization axis.
|
pure virtual |
convert the header info to a casacore::Record and list to logger if verbose=true
Implemented in casa::ImageMetaDataRW< T >, and casa::ImageMetaData< T >.
casacore::Record casa::ImageMetaDataBase< T >::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.
dirFrame
and freqFrame
are the codes for the frames for which it is desired that the returned measures should be specified. In both cases, one can specify "native" for the native coordinate frame, "cl" for the conversion layer frame, or any valid frame string from casacore::MDirection::showType() or casacore::MFrequency::showType().
|
private |
Definition at line 210 of file ImageMetaDataBase.h.
|
mutableprivate |
Definition at line 211 of file ImageMetaDataBase.h.
Referenced by casa::ImageMetaDataBase< T >::_getLog().
|
mutableprivate |
Definition at line 212 of file ImageMetaDataBase.h.