fits_ccddata_writer¶
-
ccdproc.
fits_ccddata_writer
(ccd_data, filename, hdu_mask=u'MASK', hdu_uncertainty=u'UNCERT', hdu_flags=None, **kwd)[source]¶ Write CCDData object to FITS file.
Parameters: filename : str
Name of file.
hdu_mask, hdu_uncertainty, hdu_flags : str or None, optional
If it is a string append this attribute to the HDUList as
ImageHDU
with the string as extension name. Flags are not supported at this time. IfNone
this attribute is not appended. Default is'MASK'
for mask,'UNCERT'
for uncertainty andNone
for flags.kwd :
All additional keywords are passed to
astropy.io.fits
Raises: ValueError
- If
self.mask
is set but not anumpy.ndarray
. - If
self.uncertainty
is set but not aStdDevUncertainty
. - If
self.uncertainty
is set but has another unit thenself.data
.
NotImplementedError
Saving flags is not supported.
- If