fits_ccddata_writer¶
-
astropy.nddata.fits_ccddata_writer(ccd_data, filename, hdu_mask='MASK', hdu_uncertainty='UNCERT', hdu_flags=None, **kwd)[source] [edit on github]¶ 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
ImageHDUwith the string as extension name. Flags are not supported at this time. IfNonethis attribute is not appended. Default is'MASK'for mask,'UNCERT'for uncertainty andNonefor flags.kwd :
All additional keywords are passed to
astropy.io.fitsRaises: ValueError
- If
self.maskis set but not anumpy.ndarray. - If
self.uncertaintyis set but not aStdDevUncertainty. - If
self.uncertaintyis set but has another unit thenself.data.
NotImplementedError
Saving flags is not supported.
- If