SpectRes: Simple Spectral Resampling
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.
Metadata
Release files for spectres 2.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spectres-2.2.2.tar.gz | 96.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spectres-2.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 115.7 kB
Release files / spectres-2.2.2.tar.gz
| Download URL | spectres-2.2.2.tar.gz |
|---|---|
| Size | 96.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbd23ac72f7c1b16e0f2151e82f68466890b10d144661dbb397f4c03641fa22e
|
|
BLAKE2b-256 checksum How to use checksums |
92201044c725a7fe408068d3c669de0fa68143a8aa1b772e85d008088690fcbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / spectres-2.2.2-py2.py3-none-any.whl
| Download URL | spectres-2.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
99b1f17639e999c8db06e5dcd7bd017cf45f5057d0aedaefa17df8b929d91d7a
|
|
BLAKE2b-256 checksum How to use checksums |
d34335c153bb880843c9e610e4698e4290dcc7aa86a3c026aa876328799fff92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|