EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ verify_checksums()

void verify_checksums ( ) 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.verify_checksums();
} catch (ChecksumError& e) {
// ...
}
}
@ Missing
Missing checksum record.
Definition: FitsError.h:80
Exception thrown if a checksum is missing or incorrect.
Definition: FitsError.h:73
Status data
The checksum of the data unit.
Definition: FitsError.h:132
See also
update_checksums()