Modules for storing and operating on astronomical source spectral energy distributions.
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:
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.
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| astro_sedpy-0.4.1.tar.gz | 3.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for astro-sedpy 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.