Skip to main content

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 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spectres 3.0.0
File Size Uploaded Provenance Actions
spectres-3.0.0.tar.gz 97.6 kB Without provenance Details for spectres-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spectres 3.0.0
File Interpreter ABI Platform Actions
spectres-3.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for spectres-3.0.0-py2.py3-none-any.whl

Total release size: 116.7 kB

Release files / spectres-3.0.0.tar.gz

Download URL spectres-3.0.0.tar.gz
Size 97.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3d97c71f03ba582dfbbcf7b797f7939cb607c3b9bdeb5fe85290c3f03ce8398b
BLAKE2b-256 checksum
How to use checksums
dc0f1674fcb0971e0dfe234f41b6be60a42cd9d8506ed17819e32097fc70a01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / spectres-3.0.0-py2.py3-none-any.whl

Download URL spectres-3.0.0-py2.py3-none-any.whl
Size 19.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f1e7422e869682d856e6a7bf10fc09f790739142cb7fa6586fdd7f5169cb9604
BLAKE2b-256 checksum
How to use checksums
a2268093d9e8b64ee9162fd9f8fb41b38120ff8e68592681c8682b18e821825e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for spectres 3.0.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page