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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astro_sedpy-0.4.1-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astro_sedpy-0.4.1.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for astro_sedpy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 4326963296dd5c7952b4e36056f333d97922870350fd1ad7472844ce1a43911a
MD5 1d4ea3db357e31a658a0fa908b015d4f
BLAKE2b-256 505f12768bfbe3bb5d779b48739e426d5ff41651dcfb8922810b8e4ef2948900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astro_sedpy-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for astro_sedpy-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 162e9d5604cc324597be7c5a7c586fbd57ae9fdd55d22957e2c8bce908cd72d1
MD5 48d26f939108dd941058dd94ea639d77
BLAKE2b-256 fd50eb818a9e185fcb2e158513a5f7e99f56ec40d0c9761a6ed0f07ffce71dbb

See more details on using hashes here.

Supported by

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