Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.12 KB

export_data.rst

File metadata and controls

47 lines (28 loc) · 1.12 KB

Exporting Data From Specviz2D

2D Spectra

Images in the 2D spectrum viewer can be exported as specutils.Spectrum1D objects into the notebook (replace "2D data" with the label of the desired data):

specviz2d.get_data(data_label="2D data")

1D Spectra

Similarly, the 1D spectrum data objects can be exported into the notebook:

specviz2d.get_data(data_label='1D data')

An instance of Specviz can also be accessed, which exposes some helper methods from Specviz:

specviz2d.specviz.get_spectra()
Specviz: Export Data <specviz-export-data>

Specviz documentation on exporting spectra.

Markers Table

All mouseover information in the markers plugin <markers-plugin> can be exported to an astropy table <astropy:astropy-table> by calling ~jdaviz.core.template_mixin.TableMixin.export_table (see plugin-apis).