load_from_asdf

ginga.util.io.io_asdf.load_from_asdf(asdf_obj, data_key='data', wcs_key='wcs', header_key='meta')[source]

Load from an ASDF object. This method is primarily used internally to extract the correct parts of an ASDF file to reconstruct an image with WCS and metadata.

Parameters
asdf_objobj

ASDF or ASDF-in-FITS object.

data_key, wcs_key, header_keystr

Key values to specify where to find data, WCS, and header in ASDF.

Returns
datandarray or None

Image data, if found.

wcsobj or None

GWCS object or models, if found.

ahdrdict

Header containing metadata.