casa
$Rev:20696$
|
Class providing native access to FITS Error images. More...
#include <FITSErrorImage.h>
Public Types | |
enum | ErrorType { MSE, RMSE, INVMSE, INVRMSE, UNKNOWN, DEFAULT } |
The enum describes which types of error images exist. More... | |
Public Member Functions | |
FITSErrorImage (const String &name, uInt whichRep=0, uInt whichHDU=0, FITSErrorImage::ErrorType errtype=MSE) | |
Construct a FITSImage from the disk FITS file name and extension and apply mask. | |
FITSErrorImage (const String &name, const MaskSpecifier &mask, uInt whichRep=0, uInt whichHDU=0, FITSErrorImage::ErrorType errtype=MSE) | |
Construct a FITSImage from the disk FITS file name and extension and apply mask or not. | |
FITSErrorImage (const FITSErrorImage &other) | |
Copy constructor (reference semantics) | |
virtual | ~FITSErrorImage () |
Destructor. | |
FITSErrorImage & | operator= (const FITSErrorImage &other) |
Assignment (reference semantics) | |
virtual ImageInterface< Float > * | cloneII () const |
Make a copy of the object with new (reference semantics). | |
virtual String | imageType () const |
Get the image type (returns "FITSErrorImage"). | |
virtual Bool | doGetSlice (Array< Float > &buffer, const Slicer &theSlice) |
Do the actual get of the data. | |
virtual void | doPutSlice (const Array< Float > &sourceBuffer, const IPosition &where, const IPosition &stride) |
The FITSImage is not writable, so this throws an exception. | |
virtual FITSErrorImage::ErrorType | errorType () const |
Return the error type. | |
Static Public Member Functions | |
static FITSErrorImage::ErrorType | stringToErrorType (String errorTypeStr) |
Convert an image type to String. | |
static String | errorTypeToString (FITSErrorImage::ErrorType errType) |
Convert a String to an image type. | |
Private Member Functions | |
void | setupMask () |
Set the correct masking. | |
Private Attributes | |
Array< Float > | buffer_p |
FITSErrorImage::ErrorType | errtype_p |
Class providing native access to FITS Error images.
Public interface
This provides native access to FITS error images.
Definition at line 78 of file FITSErrorImage.h.
The enum describes which types of error images exist.
The type is fixed during object creation and can not be changed at a later time.
Definition at line 84 of file FITSErrorImage.h.
casa::FITSErrorImage::FITSErrorImage | ( | const String & | name, |
uInt | whichRep = 0 , |
||
uInt | whichHDU = 0 , |
||
FITSErrorImage::ErrorType | errtype = MSE |
||
) | [explicit] |
casa::FITSErrorImage::FITSErrorImage | ( | const String & | name, |
const MaskSpecifier & | mask, | ||
uInt | whichRep = 0 , |
||
uInt | whichHDU = 0 , |
||
FITSErrorImage::ErrorType | errtype = MSE |
||
) |
casa::FITSErrorImage::FITSErrorImage | ( | const FITSErrorImage & | other | ) |
Copy constructor (reference semantics)
virtual casa::FITSErrorImage::~FITSErrorImage | ( | ) | [virtual] |
Destructor.
virtual ImageInterface<Float>* casa::FITSErrorImage::cloneII | ( | ) | const [virtual] |
Make a copy of the object with new (reference semantics).
Reimplemented from casa::FITSImage.
virtual Bool casa::FITSErrorImage::doGetSlice | ( | Array< Float > & | buffer, |
const Slicer & | theSlice | ||
) | [virtual] |
Do the actual get of the data.
Returns False as the data do not reference another Array
Reimplemented from casa::FITSImage.
virtual void casa::FITSErrorImage::doPutSlice | ( | const Array< Float > & | sourceBuffer, |
const IPosition & | where, | ||
const IPosition & | stride | ||
) | [virtual] |
The FITSImage is not writable, so this throws an exception.
Reimplemented from casa::FITSImage.
virtual FITSErrorImage::ErrorType casa::FITSErrorImage::errorType | ( | ) | const [inline, virtual] |
static String casa::FITSErrorImage::errorTypeToString | ( | FITSErrorImage::ErrorType | errType | ) | [static] |
Convert a String to an image type.
virtual String casa::FITSErrorImage::imageType | ( | ) | const [virtual] |
Get the image type (returns "FITSErrorImage").
Reimplemented from casa::FITSImage.
FITSErrorImage& casa::FITSErrorImage::operator= | ( | const FITSErrorImage & | other | ) |
Assignment (reference semantics)
void casa::FITSErrorImage::setupMask | ( | ) | [private] |
Set the correct masking.
static FITSErrorImage::ErrorType casa::FITSErrorImage::stringToErrorType | ( | String | errorTypeStr | ) | [static] |
Convert an image type to String.
Array<Float> casa::FITSErrorImage::buffer_p [private] |
Definition at line 139 of file FITSErrorImage.h.
Definition at line 140 of file FITSErrorImage.h.
Referenced by errorType().