27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24.32 <strong>CCfits</strong>::HDU Class Reference 111<br />

• virtual void makeThisCurrent () const<br />

move the fitsfile pointer to this current HDU.<br />

• bool operator!= (const HDU &right) const<br />

inequality operator<br />

• bool operator== (const HDU &right) const<br />

equality operator<br />

• FITSBase ∗ parent () const<br />

return reference to the pointer representing the FITSBase object containing the HDU<br />

• void readAllKeys ()<br />

read all of the keys in the header<br />

• template<br />

void readKey (const String &keyName, T &val)<br />

read a keyword of specified type from the header of a disk FITS file and return its<br />

value.<br />

• template<br />

void readKeys (std::vector< String > &keyNames, std::vector< T > &vals)<br />

read a set of specified keywords of the same data type from the header of a disk FITS<br />

file and return their values<br />

• virtual double scale () const<br />

return the BSCALE keyword value<br />

• virtual void scale (double value)<br />

set the BSCALE keyword value for images (see warning for images of int type)<br />

• void suppressScaling (bool toggle=true)<br />

turn off image scaling regardless of the BSCALE and BZERO keyword values<br />

• void updateChecksum ()<br />

update the CHECKSUM keyword value, assuming DATASUM exists and is correct<br />

• std::pair< int, int > verifyChecksum () const<br />

verify the HDU by computing the checksums and comparing them with the CHECK-<br />

SUM/DATASUM keywords<br />

• void writeChecksum ()<br />

compute and write the DATASUM and CHECKSUM keyword values<br />

• void writeComment (const String &comment="Generic Comment")<br />

write a comment string.<br />

• void writeDate ()<br />

write a date string to ∗this.<br />

• void writeHistory (const String &history="Generic History String")<br />

write a history string.<br />

• virtual double zero () const<br />

return the BZERO keyword value<br />

• virtual void zero (double value)<br />

set the BZERO keyword value for images (see warning for images of int type)<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!