EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ verifyChecksums()

void verifyChecksums ( ) const

Compute the HDU and data checksums and compare them to the values in the header.

Exceptions
ChecksumErrorif checksums values in header are missing or incorrect

In case of error, a ChecksumError is thrown. The checksum records CHECKSUM and DATASUM can be missing or invalid. To get details on the error, ask the ChecksumError object itself:

try {
hdu.verifyChecksums();
} catch (ChecksumError& e) {
if (e.data == ChecksumError::Status::Missing) {
// ...
}
}
See also
updateChecksums()