28 #ifndef IMAGES_MIRIADIMAGE_H
29 #define IMAGES_MIRIADIMAGE_H
46 template <
class T>
class Array;
47 template <
class T>
class Lattice;
52 class CoordinateSystem;
void setup()
Setup the object (used by constructors).
virtual Bool setUnits(const Unit &newUnits)
Function which get and set the units associated with the image pixels (i.e.
A Vector of integers, for indexing into Array<T> objects.
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Class providing native access to MIRIAD images.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual Bool setMiscInfo(const RecordInterface &newInfo)
virtual const Unit & units() const
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
virtual Bool isMasked() const
Has the object really a mask? The MIRIADImage always has a pixel mask and never has a region mask so ...
virtual Bool isWritable() const
The MIRIADImage is not writable.
TiledShape shape_p
Float scale_p; Float offset_p; Short magic_p;.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the MIRIADImage.
void crackHeader(CoordinateSystem &cSys, IPosition &shape, ImageInfo &imageInfo, Unit &brightnessUnit, Record &miscInfo, LogIO &os)
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
A non-templated, abstract base class for array-like objects.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
ostream-like interface to creating log messages.
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
virtual Bool doGetSlice(Array< Float > &buffer, const Slicer &theSlice)
Do the actual get of the data.
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 Bool hasPixelMask() const
MIRIADimage always has a pixel mask so should return True.
static void registerOpenFunction()
Register the open function.
MIRIADImage & operator=(const MIRIADImage &other)
Assignment (reference semantics)
virtual Bool isPersistent() const
The lattice is persistent.
void open()
Open the image (used by setup and reopen).
void getImageAttributes(CoordinateSystem &cSys, IPosition &shape, ImageInfo &info, Unit &brightnessUnit, Record &miscInfo, Bool &hasBlanks, const String &name)
Fish things out of the MIRIAD file.
Define the shape and tile shape.
static LatticeBase * openMIRIADImage(const String &name, const MaskSpecifier &)
Function to open a MIRIAD image.
virtual void doPutSlice(const Array< Float > &sourceBuffer, const IPosition &where, const IPosition &stride)
The MIRIADImage is not writable, so this throws an exception.
Referenced counted pointer for constant data.
A base class for astronomical images.
Class to specify which mask to use in an image.
virtual IPosition shape() const
return the shape of the MIRIADImage
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
void reopenIfNeeded() const
Reopen the image if needed.
virtual String name(Bool stripPath=False) const
Returns the name of the disk file.
virtual void tempClose()
Temporarily close the image.
MIRIADImage(const String &name)
Construct a MIRIADImage from the disk MIRIAD dataset name and apply mask.
virtual ImageInterface< Float > * cloneII() const
Make a copy of the object with new (reference semantics).
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
DataType dataType() const
Return the (internal) data type (TpFloat or TpShort).
~MIRIADImage()
Destructor does nothing.
const ImageInfo & imageInfo() const
The ImageInfo object contains some miscellaneous information about the image which unlike that stored...
virtual const RecordInterface & miscInfo() const
Functions which get and set the units associated with the image pixels (i.e.
Specify which elements to extract from an n-dimensional array.
virtual String imageType() const
Get the image type (returns MIRIADImage).
CountedPtr< TiledFileAccess > pTiledFile_p
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.
String: the storage and methods of handling collections of characters.
virtual void reopen()
Reopen a temporarily closed image.
An optionally strided region in a Lattice.
Abstract base class for Record classes.
virtual Bool isPaged() const
The lattice is paged to disk.
Miscellaneous information related to an image.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles...
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
Interconvert pixel and world coordinates.
Lattice< Bool > * pPixelMask_p
virtual Bool ok() const
Check class invariants.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.