29 #ifndef IMAGES_IMAGEINFO_H
30 #define IMAGES_IMAGEINFO_H
280 const String& imageName)
const;
A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
Bool fromFITS(Vector< String > &error, const RecordInterface &inRecord)
uInt nstokes() const
Get the number of stokes in the beam array.
void setBeams(const ImageBeamSet &beams)
Set the per plane beams array directly.
Bool hasMultipleBeams() const
does this object contain multiple beams?
void concatFreqBeams(ImageBeamSet &beamsOut, const ImageInfo &infoThat, Int nchanThis, Int nchanThat, Bool relax, LogIO &os) const
Concatenate the beam sets along the frequency axis.
Bool toFITS(String &error, RecordInterface &outRecord) const
Functions to interconvert between an ImageInfo and FITS keywords (converted to a Record).
ImageInfo & setObjectName(const String &object)
void setRestoringBeam(const GaussianBeam &beam)
Set the single global restoring beam.
static String defaultObjectName()
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
ostream-like interface to creating log messages.
Record beamToRecord(Int channel, Int stokes) const
Convert the given beam to a Record.
Bool getRestoringBeam(LoggerHolder &logger)
This method is not meant for common use.
Represents a Gaussian restoring beam associated with an image.
Bool empty() const
Is the beam set empty?
const ImageBeamSet & getBeamSet() const
Get the beam set associated with this object.
void checkBeamSet(const CoordinateSystem &coords, const IPosition &shape, const String &imageName) const
Check if the beam set matches the coordinate axes sizes.
void setBeam(Int channel, Int stokes, const Quantity &major, const Quantity &minor, const Quantity &pa)
Set the beam for a specific plane.
Bool hasSingleBeam() const
Bool hasBeam() const
Does this object contain one or more beams?
void removeRestoringBeam()
Remove all beams (global or per plane) associated with this object.
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
String objectName() const
Set and get the Image object name.
Interconvert pixel positions and directions (e.g. RA/DEC).
static Vector< String > keywordNamesFITS()
It might be useful to know what FITS keyword names are used in to/from FITS so we can remove them so ...
void setAllBeams(const uInt nChannels, const uInt nStokes, const GaussianBeam &beam)
Initialize all per-plane beams to the same value.
Represents a set of restoring beams associated with an image.
ImageInfo & setImageType(ImageTypes type)
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void setRestoringBeam(const Quantum< Double > &major, const Quantum< Double > &minor, const Quantum< Double > &pa)
static ImageInfo::ImageTypes imageTypeFromFITS(Int fitsValue)
This function takes an unofficial fitsValue found on the Stokes axis and returns the appropriate Imag...
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
void appendBeams(ImageInfo &infoThat, Int axis, Bool relax, LogIO &os, const CoordinateSystem &csysThis, const CoordinateSystem &csysThat, const IPosition &shapeThis, const IPosition &shapeThat)
Append the other beamset to this one.
void concatPolBeams(ImageBeamSet &beamsOut, const ImageInfo &infoThat, Int npolThis, Int npolThat, Bool relax, LogIO &os) const
Concatenate the beam sets along the stokes axis.
static ImageTypes defaultImageType()
In some circumstances it might be useful to know what the defaults for the various values are so you ...
static void logMessage(Bool &warn, LogIO &os, Bool relax, const String &msg1, const String msg2=String())
If relax=True, give a warning message if warn=True and set to False.
static GaussianBeam defaultRestoringBeam()
ImageTypes
This enum defines the actual quantity being held in an image It's really only used for descriptive in...
ImageInfo()
Default constructor.
void _checkBeamShape(uInt &nchan, uInt &npol, const IPosition &shape, const CoordinateSystem &csys) const
Check if the beam shape matches the coordinates.
Bool hasMultiBeam() const
Does this beam set contain multiple beams?
virtual Bool toRecord(String &error, RecordInterface &outRecord) const
Functions to interconvert between an ImageInfo and a record.
void mergeBeams(ImageBeamSet &beamsOut, const ImageInfo &infoThat, Bool relax, LogIO &os) const
Merge the beam sets and check if they match.
String: the storage and methods of handling collections of characters.
static ImageInfo::ImageTypes MiriadImageType(const String &type)
Convert the Miriad 'btype' strings to the ImageType.
void copy_other(const ImageInfo &other)
Common copy ctor/assignment operator code.
ImageInfo::ImageTypes imageType() const
Set and get the Image Type.
Double getBeamAreaInPixels(Int channel, Int stokes, const DirectionCoordinate &) const
Get the beam area in terms of pixel size of the specified DirectionCoordinate.
GaussianBeam restoringBeam(Int channel=-1, Int stokes=-1) const
Set and get the beam.
void _setRestoringBeam(const Record &inRecord)
Set the restoring beam from the record.
Abstract base class for Record classes.
uInt setInfoSplitBeamSet(uInt ndone, const ImageInfo &concatInfo, const IPosition &shape, const CoordinateSystem &csys, Int concatAxis)
Reset the info and beamset of this image with the appropriate part of the beam set of the concat imag...
Class holding a hierarchy of loggers.
void combineBeams(const ImageInfo &infoThat, const IPosition &shapeThis, const IPosition &shapeThat, const CoordinateSystem &csysThis, const CoordinateSystem &csysThat, Int axis, Bool relax, LogIO &os)
Combine beam sets for the concatenation of images and replace the beamset in this object by the resul...
ImageInfo & operator=(const ImageInfo &other)
Assignment (copy semantics)
Miscellaneous information related to an image.
uInt nChannels() const
Number of channels and stokes in per hyper-plane beam array.
virtual Bool fromRecord(String &error, const RecordInterface &inRecord)
Initialise the class from a Record representation.
Interconvert pixel and world coordinates.
Bool hasSingleBeam() const
does this object contain a single beam
uInt nchan() const
Get the number of channels in the beam array.