An extensible spectroscopic analysis toolkit for astronomy.
If you’re just getting started, see the examples page.
To cite pyspeckit, use https://ui.adsabs.harvard.edu/abs/2022AJ….163..291G/abstract and http://adsabs.harvard.edu/abs/2011ascl.soft09001G.
latest commit from github (same as above, or also Install pyspeckit via GitHub)
latest commit from bitbucket (see Installation and Requirements)
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
splotinteractive 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
spectrum can read a variety of individual spectra types
SpectrumThe Spectrum class, which is the core of pyspeckit. The
__init__procedure opens a spectrum file.
SpectraA group of
Spectrums. 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)
ObsBlockAn 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.
CubeA 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.
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
SpectroscopicAxisclass that is used to deal with coordinate transformations
Registration describes the extensible qualities of pyspeckit