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.4.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

astro_sedpy-0.4.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file astro_sedpy-0.4.0.tar.gz.

File metadata

  • Download URL: astro_sedpy-0.4.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for astro_sedpy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b176b1681ae6c7d2520f418b3379e84ab779cff6755ca2f5a8f9dbc9f2b7c544
MD5 567e62b0bf79f57c02d6fb9214821523
BLAKE2b-256 a9bc5a4c2b744de2bb2319946fced59fd3671101bbfd7227903693d199c580e7

See more details on using hashes here.

File details

Details for the file astro_sedpy-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: astro_sedpy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for astro_sedpy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ddbcddd9a497a489db3bbc0b263d60c99fb1b92438ee49d20bab036842131ea
MD5 27b3bc4fff4d51240723fbb4b81f6571
BLAKE2b-256 062a61c61f9c560058ca067daa23b928bde4761d492b85cd33ee0fa90c5a29c4

See more details on using hashes here.

Supported by

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