basic_nddata_to_fits¶
- astroimtools.nddata_adapters.basic_nddata_to_fits(nddata, filename, overwrite=False)[source]¶
Write a
NDDataobject to a FITS file.The
NDDatadata will be saved in a FITS extension called ‘SCI’. This simple writer will also attempt to save theNDDatauncertainty and mask to an ‘ERROR’ and ‘MASK’ FITS extension, respectively.If present, the
NDDatameta dictionary will be stored as the FITS header.