fitsmgmt.io.write2fits
fitsmgmt.io.write2fits(data, header, output, return_ccd=False, **kwargs)Write data and a header to a FITS file via ~astropy.nddata.CCDData.
Parameters
data :~numpy.ndarray-
The data
header :~astropy.io.fits.Header-
The header
output : path - like-
The output file path
return_ccd :bool, optional. = False-
Whether to return the generated
~astropy.nddata.CCDData. ****kwargs** : = {}-
Keyword arguments passed to
~astropy.nddata.CCDData.write, such asoutput_verify="fix"oroverwrite=True.