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