Skip to content

mahollands/spectra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fd9aaaf · Feb 28, 2025
Aug 20, 2024
Feb 17, 2021
Jan 20, 2025
Feb 21, 2025
Oct 1, 2024
Oct 1, 2024
Oct 1, 2024
Oct 17, 2024
Feb 28, 2025
Feb 21, 2025
Oct 17, 2024
Oct 17, 2024

Repository files navigation

Spectra

This is a python module designed for working with astronomical spectra. In particular it includes a "Spectrum" class to store wavelengths, fluxes, errors, and features many routines for performing common tasks for spectroscopy.

Features:

  • Spectra arithmetic (e.g. subtracting two spectra)
  • Synthetic AB magnitudes (filter curves included)
  • Unit conversion (e.g. "erg/(cm2 s AA)" --> "mJy")
  • Apply redshifts, and conversion between air/vac wavelengths
  • Wavelength Interpolation (including sinc/Lanczos)
  • Interstellar reddening
  • Gaussian convolution
  • I/O Routines for reading/writing to various file types.
  • Sky line fitting

Dependencies:

  • Python >= 3.6
  • numpy
  • matplotlib
  • scipy
  • astropy
  • dustmaps
  • trm-molly

About

python module for working with spectra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages