It can be run as part of a python script or interactively in ipython by generating astropysics.gui.spylot.Spylot objects or calling the astropysics.gui.spylot.spylot_specs() function as detailed below. A command-line script ‘spylot’ is also installed when you install astropysics. The command-line tool takes the name of the spectrum file to display and the following options:
|-h, --help||show help message and exit|
|-t TYPE, --type=TYPE|
|file format of spectra: “wcs”, “deimos”, or “astropysics”(default)|
|-e EXT, --extension=EXT|
|Fits extension number|
|-c CONFIGFILE, --config=CONFIGFILE|
|File to save Spylot configuration to|
Write a Tutorial/examples for both code and command-line script
This class represents the spylot application state.
|Parameters:||specs (astropysics.spec.Spectrum) – The spectra/um to be analyzed as a sequence or a single object.|
kwargs are passed in as additional traits.
This class attribute sets the default line lists to use - ‘galaxy’ or ‘stellar’
Generates a Spylot instance containing the supplied sequence of spectra and displays it.
the astropysics.gui.spylot.Spylot instance