Skip to main content

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.

Release files for astro-sedpy 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astro-sedpy 0.4.1
File Size Uploaded
astro_sedpy-0.4.1.tar.gz 3.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for astro-sedpy 0.4.1
File Interpreter ABI Platform
astro_sedpy-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 MB

Release files / astro_sedpy-0.4.1.tar.gz

Download URL astro_sedpy-0.4.1.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
4326963296dd5c7952b4e36056f333d97922870350fd1ad7472844ce1a43911a
BLAKE2b-256 checksum
How to use checksums
505f12768bfbe3bb5d779b48739e426d5ff41651dcfb8922810b8e4ef2948900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / astro_sedpy-0.4.1-py3-none-any.whl

Download URL astro_sedpy-0.4.1-py3-none-any.whl
Size 3.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
162e9d5604cc324597be7c5a7c586fbd57ae9fdd55d22957e2c8bce908cd72d1
BLAKE2b-256 checksum
How to use checksums
fd50eb818a9e185fcb2e158513a5f7e99f56ec40d0c9761a6ed0f07ffce71dbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page