If no EXTEND keyword is found, or if it is not set to T(rue) then 0 is returned. Otherwise the value of the NEXTEND keyword is returned. Use this to test for a mutli-extension FITS file.
This returns the expected unpadded image size in bytes. It should be called only after valid BITPIX and NAXIS* values have been set or read from a file. Here is the formula used to obtain the image size in bytes:
Where is 1 for BITPIX=8, 2 for BITPIX=16, 4 for BITPIX=+/-32, and 8 for BITPIX=-64.
This returns the following:
This returns the number of 2880-byte blocks fh_write() or fh_rewrite() will need for the header.
Use this only if you are making a program which loops through all extensions (see the example fhextname.c). In all other cases, refer to extensions by IMAGEID or EXTNAME using one of the following two functions.
Do not fh_destroy() the HeaderUnit returned by the fh_ehu() functions. It is destroyed automatically when the corresponding primary header is destroyed.
Returns a HeaderUnit which contains a matching IMAGEID keyword and seeks the file to the start of the data for that extension.
If no matching IMAGEID is found, 0 is returned.
Do not fh_destroy() the HeaderUnit returned by the fh_ehu() functions. It is destroyed automatically when the corresponding primary header is destroyed.
Returns a HeaderUnit which contains a matching EXTNAME keyword and seeks the file to the start of the data for that extension.
If no matching EXTNAME is found, 0 is returned.
Do not fh_destroy() the HeaderUnit returned by the fh_ehu() functions. It is destroyed automatically when the corresponding primary header is destroyed.