parse_data#
- jdaviz.configs.rampviz.plugins.parsers.parse_data(app, file_obj, data_type=None, data_label=None, ext=None, parent=None, cache=None, local_path=None, timeout=None, integration=0)[source]#
Attempts to parse a data file and auto-populate available viewers in rampviz.
- Parameters:
- app
Application
The application-level object used to reference the viewers.
- file_objstr
The path to a cube-like data file.
- data_typestr, {‘flux’, ‘mask’, ‘uncert’}
The data type used to explicitly differentiate parsed data.
- 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
ortimeout
).- integrationint, optional
JWST Level 1b products bundle multiple integrations in a time-series into the same ramp file. If this keyword is specified and the observations are JWST Level 1b products, this integration in the time series will be selected.
- app