Go to the documentation of this file.
28 #ifndef IMAGES_FITSQUALITYIMAGE_H
29 #define IMAGES_FITSQUALITYIMAGE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/images/Images/FITSErrorImage.h>
35 #include <casacore/images/Images/ImageInterface.h>
40 template <
class T>
class Array;
41 template <
class T>
class Lattice;
44 class FITSQualityMask;
FITSQualityImage & operator=(const FITSQualityImage &other)
Assignment (reference semantics).
Bool checkInput()
Make sure the input is compatible.
void reopenDataIfNeeded()
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
virtual Bool isWritable() const
The FITSImage is not writable.
FITSErrorImage::ErrorType errType_p
const TableRecord & miscInfo() const
Often we have miscellaneous information we want to attach to an image.
virtual String imageType() const
Get the image type (returns FITSImage).
virtual void tempClose()
Temporarily close the image.
void getExtInfo()
Get the extension indices from an extension expression.
ErrorType
The enum describes which types of error images exist.
virtual IPosition shape() const
Return the shape of the FITSImage.
virtual Bool isPaged() const
The lattice is paged to disk.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles.
FITSQualityImage(const String &name)
Construct a FITSQualityImage from the FITS file name and extensions specified in the input.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual String name(Bool stripPath=False) const
Returns the name of the disk file.
virtual Bool isMasked() const
Has the object really a mask? The FITSQualityImage always has a pixel mask and never has a region mas...
static Bool qualFITSInfo(String &error, TableRecord &dataExtMiscInfo, TableRecord &errorExtMiscInfo, const TableRecord &miscInfo)
Given the misc-info of a CASA image (with quality-axis) the misc-info of the data sub-image and the e...
virtual void tempCloseData()
virtual void reopen()
Reopen a temporarily closed image.
virtual void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath)
Set the cache size as to "fit" the indicated path.
FITSImage * fitsData() const
Get the FITS data.
uInt whichDataHDU() const
Return the data HDU number.
virtual ImageInterface< Float > * cloneII() const
Make a copy of the object with new (reference semantics).
~FITSQualityImage()
Destructor.
virtual Bool isPersistent() const
The lattice is persistent.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the FITSQualityImage.
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
virtual Bool doGetSlice(Array< Float > &buffer, const Slicer &theSlice)
Do the actual get of the data.
this file contains all the compiler specific defines
void reopenErrorIfNeeded()
virtual Bool ok() const
Check class invariants.
DataType dataType() const
Return the (internal) data type (TpFloat or TpShort).
virtual Bool hasPixelMask() const
FITSQualityImage always has a pixel mask so returns True.
FITSQualityImage(const FITSQualityImage &other)
Copy constructor (reference semantics)
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
void reopenIfNeeded() const
Reopen the image if needed.
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
FITSQualityImage(const String &name, uInt whichDataHDU, uInt whichErrorHDU)
Construct a FITSQualityImage from the disk FITS file name and extensions.
Lattice< Bool > * pPixelMask_p
virtual void tempCloseError()
void setup()
Setup the object (used by constructors).
virtual void doPutSlice(const Array< Float > &sourceBuffer, const IPosition &where, const IPosition &stride)
The FITSQualityImage is not writable, so this throws an exception.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
String: the storage and methods of handling collections of characters.
virtual Lattice< Bool > & pixelMask()
bool Bool
Define the standard types used by Casacore.
FITSErrorImage * fitsError() const
Get the FITS error.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access if they only want pixel values and don't care a...
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
uInt whichErrorHDU() const
Return the error HDU number.
FITSErrorImage * fitserror_p