parse_data#

jdaviz.configs.imviz.plugins.parsers.parse_data(app, file_obj, ext=None, data_label=None, parent=None, cache=None, local_path=None, timeout=None, gwcs_to_fits_sip=False)[source]#

Parse a data file into Imviz.

Parameters:
appApplication

The application-level object used to reference the viewers.

file_objstr or obj

The path to an image data file or FITS HDUList or image object.

extstr, tuple, or None, optional

FITS extension, if given. Examples: 'SCI' or ('SCI', 1)

data_labelstr, optional

The label to be applied to the Glue data component.

parentstr, optional

Data label for “parent” data to associate with the loaded data as “child”.

cacheNone, bool, or str

Cache the downloaded file if the data are retrieved by a query to a URL or URI.

local_pathstr, optional

Cache remote files to this path. This is only used if data is requested from astroquery.mast.

timeoutfloat, optional

If downloading from a remote URI, set the timeout limit for remote requests in seconds (passed to download_file or timeout).

gwcs_to_fits_sipbool, optional

Try to convert GWCS coordinates into an approximate FITS SIP solution. Typical precision loss due to this approximation is of order 0.1 pixels. This may improve image rendering performance for images with expensive GWCS transformations.