Detailed Description
This module provides functions to get basic information on FITS files
- Synopsis:
-
Function Documentation
Get the number of extensions contained in a FITS file.
- Parameters:
-
- Returns:
- The number of extensions or -1 in case of error
- Note:
- For a valid fits file without extensions zero is returned
Possible _cpl_error_code_ set in this function:
- CPL_ERROR_NULL_INPUT if the input pointer is NULL
- CPL_ERROR_ILLEGAL_INPUT if the input file is not FITS
Get the place of a given extension in a FITS file.
- Parameters:
-
filename | The file name |
extname | The extension name |
- Returns:
- the extension number, 0 if not found or -1 on error
Possible _cpl_error_code_ set in this function:
- CPL_ERROR_NULL_INPUT if an input pointer is NULL
- CPL_ERROR_FILE_IO if the file is not FITS