Macro mwalib::get_optional_fits_key_long_string

source ·
macro_rules! get_optional_fits_key_long_string {
    ($fptr:expr, $hdu:expr, $keyword:expr) => { ... };
}
Expand description

Given a FITS file pointer, and a keyword to a long string keyword that may or may not exist, pull out the long string of the keyword. This deals with FITSs CONTINUE mechanism by calling a low level fits function.

§Arguments

  • fits_fptr - A reference to the FITSFile object.

  • hdu - A reference to the HDU you want to find keyword in the header of.

  • keyword - String containing the keyword to read.

§Returns

  • A Result containing an Option containing the value read or None if the key did not exist, or an error.