This ipython Notebook is intended to provide documentation for the xastropy GUI named XSpecGUI.
Enjoy and feel free to suggest edits/additions, etc.
Here are a list of Python dependencies that I am aware of:
gzipped files are perfectly fine
In [4]:
import imp
xa_path = imp.find_module('xastropy')[1]
spec_fil = xa_path+'/../docs/data/UM669_nF.fits.gz'
I recommend the command line approach, but you can launch from ipython too.
from xastropy.xguis import spec_guis as xxsg
reload(xxsg)
xxsg.run_xspec(spec_fil)
I recommend you generate an alias like this:
alias xspec 'python ~/xastropy/xastropy/xguis/spec_guis.py 1'
Then it is as simple as:
> xspec filename
Here are the current command-line options:
> xspec -h
usage: spec_guis.py [-h] [-zsys ZSYS] [--un_norm] flag file
Parse for XSpec
positional arguments:
flag GUI flag (ignored)
file Spectral file
optional arguments:
-h, --help show this help message and exit
-zsys ZSYS System Redshift
--un_norm Spectrum is NOT normalized
You can overlay a series of vertical lines at standard spectral lines at any given redshift.
You must choose a line-list by clicking one.
You can measure the rest EW of a spectral feature as follows:
You can measure the apparent column via AODM as follows:
In [ ]: