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.0.0.tar.gz (15.5 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.0.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spectres-2.0.0.tar.gz.

File metadata

  • Download URL: spectres-2.0.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spectres-2.0.0.tar.gz
Algorithm Hash digest
SHA256 13f17322593c61e9047288591acdf11168c1f90480e495d0085d8a1a2abe3bdd
MD5 3f216639c114af6d9899aa6b0ff16978
BLAKE2b-256 62e5ac2d5ebc6b4b1d7cdef54c31d1c606ee741193fcc7d0d911725d6de5b320

See more details on using hashes here.

File details

Details for the file spectres-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for spectres-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dfef73d24e838196d0da67abeb58400e800935fd276944ac66b01262ef81fbc3
MD5 dcb7d175d63fdf1d3e32d6a39dd6602b
BLAKE2b-256 c6c7526efdc582b9f2749241f92d062a786518bffb1982d7fb7d9478db27c71b

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