You can also save the model fit parameters into a
SpectralLineList, but only when fitting on the command-line. This is a Product containing a
Dataset which holds the type of line-like model(s) such as, Gaussian,
Lorentzian, Sinc, etc. applied to the spectrum and their position, widths
and amplitudes along with their standard deviations.
You can use the LineList to record your model information, as a type of line identification annotation in a plot, or you can use it to help identify lines in other spectra.
To retrieve a LineList in the SpectrumFitter use:
sf.getLineList() # or for a subset of models models = ['name1', 'name2', ...] sf.getLineList(models)
Example 7.44. Saving the model fit parameters as a SpectralLineList for use with other spectra.
You can overlay the LineList on your spectrum by dragging the LineList product into an already open plot in Spectrum Explorer.
To save the LineList to disk, right click on the Product name in the Variables pane and select the Send To option. You can save a LineList as a FITS file, a text file or to local pool.
For more information see SpectralLineLists.