Simple tools for astronomical spectral energy distributions, particularly filter projections.
Project description
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.
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
Built Distribution
File details
Details for the file astro-sedpy-0.3.2.tar.gz
.
File metadata
- Download URL: astro-sedpy-0.3.2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6f83ea541b059cba7659f7d76024b6b92b118f809cd5ddf91070d545afd13d |
|
MD5 | 416986ea613272161c530d2ee9c530cb |
|
BLAKE2b-256 | c74620397dc5f22192760862f6a575ba3201c6cc183b031fcea59f0118acecb7 |
File details
Details for the file astro_sedpy-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: astro_sedpy-0.3.2-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9ba59bbd51e83216bc56e014a192dd64bd18a9db8e02b529a26ff22cc32ca16 |
|
MD5 | df4762a134f989d397748b8a4a4945d3 |
|
BLAKE2b-256 | ff7e2630e282003036a2d91f1f738140940698fea5942966a93509a7c57e44f4 |