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
Hashes for spectres-2.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd02cffea4495de18864b8da5480dcb1afebe38f39d9028f5b2d2709fa88712 |
|
MD5 | fecb97f644089675451ad0d635bda2cd |
|
BLAKE2b-256 | ac75965a94bcc4d2c7f9275a4a35f7999c042584d13aafe2d5f2c2b3a8c15a71 |