Skip to main content

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

spectres-2.2.2.tar.gz (96.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectres-2.2.2-py2.py3-none-any.whl (19.0 kB view details)

Uploaded Python 2Python 3

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

Hashes for spectres-2.2.2.tar.gz
Algorithm Hash digest
SHA256 cbd23ac72f7c1b16e0f2151e82f68466890b10d144661dbb397f4c03641fa22e
MD5 fe948e059bfed443bad20725848d5974
BLAKE2b-256 92201044c725a7fe408068d3c669de0fa68143a8aa1b772e85d008088690fcbf

See more details on using hashes here.

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

Hashes for spectres-2.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 99b1f17639e999c8db06e5dcd7bd017cf45f5057d0aedaefa17df8b929d91d7a
MD5 72edbef310e2ff0d4721cba9bef75130
BLAKE2b-256 d34335c153bb880843c9e610e4698e4290dcc7aa86a3c026aa876328799fff92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page