- Undefined = 0
- Intensity
- Beam
- ColumnDensity
- DepolarizationRatio
- KineticTemperature
- MagneticField
- OpticalDepth
- RotationMeasure
- RotationalTemperature
- SpectralIndex
- Velocity
- VelocityDispersion
- nTypes
ImageInfo ii; ii.setRestoringBeam(Quantity(30,"arcsec"), Quantity(10,"arcsec"), Quantity(-18,"deg")); ... cout << "The restoring beam is : " << oi.restoringBeam() << endl;
Destructor
Copy constructor (copy semantics)
Assignment (copy semantics)
Set and get the restoring beam. Vector beam in order major axis, minor axis, position angle.
Get the restoring beam from a LoggerHolder (where the history is stored) as AIPS writes the beam in the FITS history rather than the header keywords. If there is no beam, False is returned, and the internal state of the object is unchanged.
Set and get the Image Type.
Functions to interconvert between an ImageInfo and a record. These functions are inherited from class RecordTransformable. As new fields get added to ImageInfo these functions should be augmented. Missing fields should not generate an error to in fromRecord to allow for backwards compatibility - null values should be supplied instead. The record field names are: "restoringbeam".
In some circumstances it might be useful to know what the defaults for the various values are so you can check if they have been set. The default restoring beam is a null vector.
Functions to interconvert between an ImageInfo and FITS keywords (converted to a Record). Failure of fromFITS should probably not be regarded as fatal as the default ImageInfo values are viable. For each item contained in the ImageInfo, an attempt to decode it from FITS is made. If any of them fail, False is returned, but it attempts to decode them all. For those that fail an error message is held in error in the order restoring beam, and image type. error will be returned of length 0 if the return value is True, else it will be length 2.
This function takes an unofficial fitsValue found on the Stokes axis and returns the appropriate ImageType. The idea is that you detect the unofficial value, drop the Stokes axis, and store the value as an ImageType in ImageInfo. Only values pertaining to beam, optical depth and spectral index are handled here. All others give back Undefined. See usage in Image FITS conversion classes.
It might be useful to know what FITS keyword names are used in to/from FITS so we can remove them so they won't be used more than once. The names are in lower case.
Convert the Miriad 'btype' strings to the ImageType. Some Miriad 'btype's are dealt with in aips++ via the Stokes axis (fractional_polarization, polarized_intensity, position_angle) and so these will return Undefined.
Common copy ctor/assignment operator code.