open
- stdatamodels.asdf_in_fits.open(filename_or_hdu, **kwargs)
Read ASDF data embedded in a fits file
- Parameters:
- filename_or_hdustr, path, astropy.io.fits.HDUList
Filename of the fits file or an open astropy.io.fits.HDUList containing the ASDF data. If a filename is provided it will be opened with
astropy.io.fits.open()
.- kwargsvariable keyword arguments
Passed on to
asdf.open()
- Returns:
- af
asdf.AsdfFile
asdf.AsdfFile
created from ASDF data embeded in the opened fits file.
- af