Skip to main content

A data reduction package for echelle spectrographs

Project description

CI Documentation Status Python 3.13+

What's new?

Version 0.8.1 fixes create_custom_instrument and adds a student-friendly example for reducing data from unsupported spectrographs. See CHANGELOG.md for all changes since 0.8.

PyReduce

A data reduction pipeline for echelle spectrographs (HARPS, UVES, XSHOOTER, CRIRES+, JWST/NIRISS, ANDES, MOSAIC, NEID, and more).

Based on the REDUCE package. See the papers:

Installation

# Using uv (recommended)
uv add pyreduce-astro

# Or pip
pip install pyreduce-astro

For development:

git clone https://github.com/ivh/PyReduce
cd PyReduce
uv sync
uv run reduce-build

Quick Start

# Download sample data
uv run reduce download UVES

# Run reduction
uv run reduce run UVES -t HD132205 --steps bias,flat,trace,science

# Or run individual steps
uv run reduce bias UVES -t HD132205
uv run reduce flat UVES -t HD132205

Or use the Python API:

from pyreduce.pipeline import Pipeline

Pipeline.from_instrument(
    instrument="UVES",
    target="HD132205",
    night="2010-04-01",
    channel="middle",
    steps=("bias", "flat", "trace", "science"),
).run()

Plotting

Control plotting with environment variables:

# Save plots to files (headless/CI)
PYREDUCE_PLOT=1 PYREDUCE_PLOT_DIR=/tmp/plots PYREDUCE_PLOT_SHOW=off uv run reduce run ...

# Show all plots at end (browser via webagg)
MPLBACKEND=webagg PYREDUCE_PLOT=1 PYREDUCE_PLOT_SHOW=defer uv run reduce run ...

See How To for details.

Documentation

Full documentation at ReadTheDocs.

Output

PyReduce creates .fits files (standard FITS with binary table extension). Headers include original keywords plus PyReduce-specific ones prefixed with e_.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyreduce_astro-0.9b2.tar.gz (4.4 MB view details)

Uploaded Source

Built Distributions

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

pyreduce_astro-0.9b2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyreduce_astro-0.9b2-cp314-cp314-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyreduce_astro-0.9b2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyreduce_astro-0.9b2-cp313-cp313-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyreduce_astro-0.9b2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyreduce_astro-0.9b2-cp312-cp312-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file pyreduce_astro-0.9b2.tar.gz.

File metadata

  • Download URL: pyreduce_astro-0.9b2.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyreduce_astro-0.9b2.tar.gz
Algorithm Hash digest
SHA256 47a7191469ea9dd902a48beba737b6d7fe5d6d057ac1ebcdeb71e785da4e644f
MD5 414c6a5da4a726a820148d10d033904e
BLAKE2b-256 128289407a9db32e9873a1087a186b130df809e422b2b234b26cfe0915255701

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2.tar.gz:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed6aa7ec5c19ee60cf05af7a82dea5409d13ea8094fede4e4b595a32e7c7e61e
MD5 d852c42ec9ed2696603f77ce920b8856
BLAKE2b-256 bf5b151d84dfb5ab134fb2e97c5f3ddf006a36b8d2ba5c8afe20d74731ef612a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06d0e84e5d872ad676b32a99059826227b1180635aff87dcf7d830ce76d015a6
MD5 a9b0975b2b11319c4ee47128ed5998b0
BLAKE2b-256 1f9b0f0ada7c17ed4cb0dafc14ce22fc5f08d32a499928dea32d7338eaaa897f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74859923c98ebaf8884123fba7651a867d0c8c0071488d32e81bc4a31a9bdf16
MD5 41437f6fba2a26f3480181d3541a5bc9
BLAKE2b-256 cae4fd4dd440d37292363646820aed5dfe9541420dc6151954fce2148716ccdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f336448f8c18de6cd7e4b2145eab7c3887ce5879d005c4ade135cb376226a6e
MD5 75acee6041b5bf4824f3b21560517ca4
BLAKE2b-256 9764d13f6177d061c271d260e4ceecf31662541a0588e889d3000d6ed7cdebc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 105a1be6f3fcd9de53cccb619298717e4e6c18137d98e77e0af0f0d5316b88c3
MD5 585560935bddfb8c179be50550ddf64e
BLAKE2b-256 60dd2f76512de69207c7f2e8ec90c938d52458a9a00e248b2dcdd1fd473d47be

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyreduce_astro-0.9b2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3969a78d4f9aee709bdc2f368af1b553aad68df5258c7c94664af5367432e692
MD5 637e106d628d0c78e419dbca744aba18
BLAKE2b-256 b56a0c8daebe4b8e18bfe7336468ab8d4ad5f9bdd8731b1f9e9bc65ab9427796

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on ivh/PyReduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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