CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
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 116<br />
24.32.2.16 void <strong>CCfits</strong>::HDU::suppressScaling ( bool toggle = true )<br />
turn off image scaling regardless of the BSCALE and BZERO keyword values<br />
For toggle = true, this turns off image scaling for future read/writes by resetting the<br />
scale and zero to 1.0 and 0.0 respectively. It does NOT modify the BSCALE and B-<br />
ZERO keywords. If toggle = false, the scale and zero values will be restored to the<br />
keyword values.<br />
24.32.2.17 void <strong>CCfits</strong>::HDU::updateChecksum ( )<br />
update the CHECKSUM keyword value, assuming DATASUM exists and is correct<br />
Wrapper for the CFITSIO function fits_update_chksum: This recomputes and writes<br />
the CHECKSUM value with the assumption that the DATASUM value is correct. If<br />
the DATASUM keyword doesn’t yet exist or is not up-to-date, use the HDU::write-<br />
Checksum function instead. This will throw a FitsError exception if called when there<br />
is no DATASUM keyword in the header.<br />
24.32.2.18 std::pair< int, int > <strong>CCfits</strong>::HDU::verifyChecksum ( ) const<br />
verify the HDU by computing the checksums and comparing them with the CHECKS-<br />
UM/DATASUM keywords<br />
Wrapper for the CFITSIO function fits_verify_chksum: The data unit is verified correctly<br />
if the computed checksum equals the DATASUM keyword value, and the HDU<br />
is verified if the entire checksum equals zero (see the CFITSIO manual for further<br />
details).<br />
This returns a std::pair where the pair’s first data member = DATAOK and<br />
second = HDUOK. DATAOK and HDUOK values will be = 1 if verified correctly, 0<br />
if the keyword is missing, and -1 if the computed checksum is not correct.<br />
24.32.2.19 void <strong>CCfits</strong>::HDU::writeChecksum ( )<br />
compute and write the DATASUM and CHECKSUM keyword values<br />
Wrapper for the CFITSIO function fits_write_chksum: This performs the datasum and<br />
checksum calculations for this HDU, as described in the CFITSIO manual. If either<br />
the DATASUM or CHECKSUM keywords already exist, their values will be updated.<br />
24.32.2.20 void <strong>CCfits</strong>::HDU::writeComment ( const String & comment =<br />
"Generic Comment" )<br />
write a comment string.<br />
A default value for the string is given ("Generic Comment String") so users can put a<br />
placeholder call to this function in their code.<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen