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)[source]#
Parse a data file into Imviz.
- Parameters:
- app
Application 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_fileortimeout).
- app