CCfits
2.4
|
Public Member Functions | |
virtual | ~ImageExt () |
destructor | |
virtual ImageExt< T > * | clone (FITSBase *p) const |
virtual copy constructor | |
const std::valarray< T > & | image () const |
return the image data | |
virtual void | readData (bool readFlag=false, const std::vector< String > &keys=std::vector< String >()) |
read Image extension HDU data | |
virtual void | scale (double value) |
set the BSCALE keyword value for images (see warning for images of int type) | |
virtual double | scale () const |
return the BSCALE keyword value | |
virtual void | zero (double value) |
set the BZERO keyword value for images (see warning for images of int type) | |
virtual double | zero () const |
return the BZERO keyword value |
ImageExt<T> is a subclass of ExtHDU that contains image data of type T.
void CCfits::ImageExt< T >::readData | ( | bool | readFlag = false , |
const std::vector< String > & | keys = std::vector<String>() |
||
) | [virtual] |
read Image extension HDU data
Called by FITS ctor, not intended for general use. parameters control how much gets read on initialization.
readFlag | read the image data if true |
key | a vector of strings of keyword names to be read from the HDU |
Implements CCfits::ExtHDU.
void CCfits::ImageExt< T >::scale | ( | double | value | ) | [virtual] |
set the BSCALE keyword value for images (see warning for images of int type)
For primary HDUs and image extensions, this will add (or update) the BSCALE keyword in the header. The new setting will affect future image array read/writes as described in section 4.7 Data Scaling of the CFITSIO manual. For table extensions this function does nothing.
WARNING: If the image contains integer-type data (as indicated by the bitpix() return value), the new scale and zero value combination must not be such that the scaled data would require a floating-point type (this uses the CFITSIO function fits_get_img_equivtype to make the determination). If this situation occurs, the function will throw a FitsException.
Reimplemented from CCfits::HDU.
void CCfits::ImageExt< T >::zero | ( | double | value | ) | [virtual] |
set the BZERO keyword value for images (see warning for images of int type)
For primary HDUs and image extensions, this will add (or update) the BZERO keyword in the header. The new setting will affect future image array read/writes as described in section 4.7 Data Scaling of the CFITSIO manual. For table extensions this function does nothing.
WARNING: If the image contains integer-type data (as indicated by the bitpix() return value), the new scale and zero value combination must not be such that the scaled data would require a floating-point type (this uses the CFITSIO function fits_get_img_equivtype to make the determination). If this situation occurs, the function will throw a FitsException.
Reimplemented from CCfits::HDU.