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 2.2.2

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 2.2.2
File Size Uploaded
spectres-2.2.2.tar.gz 96.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spectres 2.2.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.2.2 This release

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

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