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.

https://github.com/bd-j/sedpy/workflows/Tests/badge.svg Documentation Status

Installation & setup:

sedpy is pip installable:

python -m pip install astro-sedpy

Or you can install the latest version from github:

git clone https://github.com/bd-j/sedpy
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)

For the filters available by default see the filter_list. For adding transmission curves, see these docs.

This code can be referenced as:

https://zenodo.org/badge/DOI/10.5281/zenodo.4582723.svg

Description:

  • 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.

  • smoothing methods for smoothing well-sampled spectra.

  • extinction (Deprecated) classes for a detailed modeling of extinction curves, following the Fitzpatrick & Massa parameterizations. See dust_extinction instead.

Project details


Download files

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

Source Distribution

astro-sedpy-0.3.2.tar.gz (2.1 MB view hashes)

Uploaded Source

Built Distribution

astro_sedpy-0.3.2-py3-none-any.whl (2.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page