Simple spectral resampling
Project description
SpectRes is a Python function which efficiently resamples spectra and their associated uncertainties onto an arbitrary wavelength grid. The function works with any grid of wavelength values, including non-uniform sampling, and preserves the integrated flux. This may be of use for binning data to increase the signal to noise ratio, obtaining synthetic photometry, or resampling model spectra to match the sampling of observational data.
Installation
SpectRes can be installed using pip
pip install spectres
Documentation
The code’s documentation is available at spectres.readthedocs.io. Take a look in the examples folder of this repository for some more guidance.
For an explanation of how the code works take a look at ArXiv:1705.05165. Please consider citing this publication if you use SpectRes in your research.
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 spectres-2.2.2.tar.gz
.
File metadata
- Download URL: spectres-2.2.2.tar.gz
- Upload date:
- Size: 96.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd23ac72f7c1b16e0f2151e82f68466890b10d144661dbb397f4c03641fa22e |
|
MD5 | fe948e059bfed443bad20725848d5974 |
|
BLAKE2b-256 | 92201044c725a7fe408068d3c669de0fa68143a8aa1b772e85d008088690fcbf |
File details
Details for the file spectres-2.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: spectres-2.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b1f17639e999c8db06e5dcd7bd017cf45f5057d0aedaefa17df8b929d91d7a |
|
MD5 | 72edbef310e2ff0d4721cba9bef75130 |
|
BLAKE2b-256 | d34335c153bb880843c9e610e4698e4290dcc7aa86a3c026aa876328799fff92 |