casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
casa::FITSErrorImage Class Reference

Class providing native access to FITS Error images. More...

#include <FITSErrorImage.h>

Inheritance diagram for casa::FITSErrorImage:
casa::FITSImage casa::ImageInterface< Float > casa::MaskedLattice< Float > casa::Lattice< Float > casa::LatticeBase

List of all members.

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.
FITSErrorImageoperator= (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< Floatbuffer_p
FITSErrorImage::ErrorType errtype_p

Detailed Description

Class providing native access to FITS Error images.

Intended use:

Public interface

Review Status

Test programs:
tFITSErrorImage

Prerequisite

Etymology

Synopsis

Example

Motivation

This provides native access to FITS error images.

Definition at line 78 of file FITSErrorImage.h.


Member Enumeration Documentation

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.

Enumerator:
MSE 
RMSE 
INVMSE 
INVRMSE 
UNKNOWN 
DEFAULT 

Definition at line 84 of file FITSErrorImage.h.


Constructor & Destructor Documentation

casa::FITSErrorImage::FITSErrorImage ( const String name,
uInt  whichRep = 0,
uInt  whichHDU = 0,
FITSErrorImage::ErrorType  errtype = MSE 
) [explicit]

Construct a FITSImage from the disk FITS file name and extension and apply mask.

casa::FITSErrorImage::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.

Copy constructor (reference semantics)

Destructor.


Member Function Documentation

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]

Return the error type.

Definition at line 125 of file FITSErrorImage.h.

References errtype_p.

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.

Convert an image type to String.


Member Data Documentation

Definition at line 139 of file FITSErrorImage.h.

Definition at line 140 of file FITSErrorImage.h.

Referenced by errorType().


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