28 #ifndef IMAGES_FITSQUALITYIMAGE_H
29 #define IMAGES_FITSQUALITYIMAGE_H
40 template <
class T>
class Array;
41 template <
class T>
class Lattice;
44 class FITSQualityMask;
A Vector of integers, for indexing into Array<T> objects.
Lattice< Bool > * pPixelMask_p
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(const String &name)
Construct a FITSQualityImage from the FITS file name and extensions specified in the input...
virtual void tempCloseData()
virtual Bool isPersistent() const
The lattice is persistent.
void setup()
Setup the object (used by constructors).
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.
virtual String imageType() const
Get the image type (returns FITSImage).
Class providing native access to FITS Error images.
DataType dataType() const
Return the (internal) data type (TpFloat or TpShort).
virtual IPosition shape() const
Return the shape of the FITSImage.
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
virtual Bool isPaged() const
The lattice is paged to disk.
virtual Bool doGetSlice(Array< Float > &buffer, const Slicer &theSlice)
Do the actual get of the data.
virtual Bool ok() const
Check class invariants.
virtual String name(Bool stripPath=False) const
Returns the name of the disk file.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the FITSQualityImage.
Bool checkInput()
Make sure the input is compatible.
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
void reopenDataIfNeeded()
uInt whichErrorHDU() const
Return the error HDU number.
Define the shape and tile shape.
void getExtInfo()
Get the extension indices from an extension expression.
A base class for astronomical images.
virtual ImageInterface< Float > * cloneII() const
Make a copy of the object with new (reference semantics).
virtual Bool isWritable() const
The FITSImage is not writable.
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 uInt maximumCacheSize() const
Maximum size - not necessarily all used.
void reopenIfNeeded() const
Reopen the image if needed.
virtual void tempCloseError()
FITSErrorImage * fitsError() const
Get the FITS error.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
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 tempClose()
Temporarily close the image.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
FITSImage * fitsData() const
Get the FITS data.
bool Bool
Define the standard types used by Casacore.
virtual Bool hasPixelMask() const
FITSQualityImage always has a pixel mask so returns True.
ErrorType
The enum describes which types of error images exist.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles...
Class providing native access to FITS Quality Images.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
Class providing native access to FITS images.
A hierarchical collection of named fields of various types.
const TableRecord & miscInfo() const
Often we have miscellaneous information we want to attach to an image.
Specify which elements to extract from an n-dimensional array.
FITSErrorImage * fitserror_p
FITSQualityImage & operator=(const FITSQualityImage &other)
Assignment (reference semantics).
virtual void reopen()
Reopen a temporarily closed image.
~FITSQualityImage()
Destructor.
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
FITSErrorImage::ErrorType errType_p
virtual Bool isMasked() const
Has the object really a mask? The FITSQualityImage always has a pixel mask and never has a region mas...
uInt whichDataHDU() const
Return the data HDU number.
void reopenErrorIfNeeded()
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.