Skip to main content

Simple tools for astronomical spectral energy distributions, particularly filter projections.

Project description

Modules for storing and operating on astronomical source spectral energy distributions.

Installation & setup:

git clone
cd sedpy
pip install .

Then in python, e.g.,

from sedpy import observate
# get magnitude from a spectrum:
filt = observate.Filter("sdss_r0")
mag = filt.ab_mag(angstroms, f_lambda_cgs)
# or get several magnitudes at once
filterlist = observate.load_filters(["galex_NUV", "sdss_r0"])
mags = observate.getSED(angstroms, f_lambda_cgs, filterlist=filters)

see the FAQ


  • observate has methods for generating synthetic photometry through any filters, and classes for dealing with filters generally. There is some functionality for spectra (vaccum to air conversions). With a huge debt to Mike Blanton’s kcorrect code .
  • attenuation contains simple dust attenuation methods.
  • extinction (Deprecated) classes for a detailed modeling of extinction curves, following the Fitzpatrick & Massa parameterizations. See dust_extinction instead.
  • photometer (Deprecated) has some basic aperture photometry algorithms. See photutils instead.
  • ds9region (Deprecated) has some simple ds9 region classes.
  • modelgrid (Deprecated) is a module with classes for the storage and interpolation of model SEDs. Largely superceded by scipy.interpolate algorithms.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for astro-sedpy, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size astro_sedpy-0.2.0-py3-none-any.whl (1.8 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size astro-sedpy-0.2.0.tar.gz (1.8 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page