specviz_spectrum1d_parser#

jdaviz.configs.specviz.plugins.parsers.specviz_spectrum1d_parser(app, data, data_label=None, format=None, show_in_viewer=True, concat_by_file=False, cache=None, local_path='.', timeout=None, load_as_list=False)[source]#

Loads a data file or Spectrum1D object into Specviz.

Parameters:
datastr, Spectrum1D, or SpectrumList

Spectrum1D, SpectrumList, or path to compatible data file.

data_labelstr

The Glue data label found in the DataCollection.

formatstr

Loader format specification used to indicate data format in read io method.

concat_by_filebool

If True and there is more than one available extension, concatenate the extensions within each spectrum file passed to the parser and add a concatenated spectrum to the data collection.

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).

load_as_listbool, optional

Force the parser to load the input file with the SpectrumList read function instead of Spectrum1D.