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