write

stdatamodels.asdf_in_fits.write(filename, tree, hdulist=None, **kwargs)

Write ASDF data inside a fits file

Parameters:
filenamestr or path

Filename where the resulting fits file containing the ASDF data will be saved. This is passed on to astropy.io.fits.HDUList.writeto()

treeASDF tree or dict

ASDF data to save in the fits file

kwargsvariable keyword arguments

Passed on to astropy.io.fits.HDUList.writeto()