Quicklook at spectra and demographics for Hubble/COS data
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Quick look at spectra and demographics for Hubble/COS data.


After cloning the repository, install via

$ python setup.py install

Alternatively, you may install directly from GitHub using pip

$ pip install git+https://github.com/peeples/Spectator.git

Required packages:


Command line

Once installed, the package is callable directly from the command line

$ spectator targets

where targets is a file to be read in with first column denoting if target is to be used (boolean 0/1 flag) and the second column describing the target/directory name.

In code

Spectator can be imported into your code as follows

import spectator

Known issues

Currently this only works with data taken with the Cosmic Origins Spectrograph (COS) aboard the Hubble Space Telescope, and many of the peculiarities, both in plotting and scraping the headers for information, are particular to COS. That said, it does work for all COS data, both in the FUV and NUV, publicly available as of February 2016.