PySpecKit¶
An extensible spectroscopic analysis toolkit for astronomy.
If you’re just getting started, see the examples page.
To cite pyspeckit, use http://adsabs.harvard.edu/abs/2011ascl.soft09001G.
Downloads¶
- April 2017 version
- latest commit from github (same as above, or also Install pyspeckit via GitHub)
- latest commit from bitbucket (see Installation and Requirements)
- pypi entry.
Supported file types and their formats:
Guides / Getting Started¶
If you’re already a python user, go straight to the examples page to get a quick start. For simple gaussian fitting, this example is a good starting point.
- Guide for GILDAS-CLASS users
- A simple getting started guide aimed at Gildas-CLASS users
- Guide for IRAF users
- Intended for users of IRAF’s
splot
interactive fitting routine.
Classes and API¶
At the core, PySpecKit runs on a ‘Spectroscopic Object’ class called
Spectrum
. Therefore everything
interesting about PySpecKit can be learned by digging into the properties of
this class.
- spectrum can read a variety of individual spectra types
Spectrum
The Spectrum class, which is the core of pyspeckit. The__init__
procedure opens a spectrum file.Spectra
A group ofSpectrum
s. Generally for when you have multiple wavelength observations you want to stitch together (e.g., two filterbanks on a heterodyne system, or the red/blue spectra from a multi-band spectrometer like the Double Imaging Spectrograph)ObsBlock
An Observation Block - multiple spectra of different objects or different times covering the same wavelength range
- Cubes is used to deal with data cubes and has functionality similar to
GAIA and ds9.
Cube
A Cube of Spectra. Has features to collapse the cube along the spectral axis and fit spectra to each element of the cube. Is meant to replicate Starlink’s GAIA in some ways, but with less emphasis on speed and much greater emphasis on spectral line fitting.
Features¶
- Baseline Fitting describes baseline & continuum fitting.
- Model Fitting describes the general process of model fitting.
- Measurements is a toolkit for performing EQW, column, and other measurements…
- Units contains the all-important
SpectroscopicAxis
class that is used to deal with coordinate transformations- Registration describes the extensible qualities of pyspeckit