fits#
Methods for reading and writing FITS files.
- hsr4hci.fits.read_fits(file_path: Union[Path, str], return_header: Literal[True]) Tuple[ndarray, dict][source]#
- hsr4hci.fits.read_fits(file_path: Union[Path, str], return_header: Literal[False]) ndarray
Open a FITS file and return its contents as a numpy array.
- Parameters:
file_path โ Path of the FITS file to be read in.
return_header โ Whether to return the FITS header.
- Returns:
A numpy array containing the contents of the given FITS file. Optionally also a dictionary containing the FITS header.