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.9b1.tar.gz (6.2 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.9b1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (6.2 MB view details)

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

pyreduce_astro-0.9b1-cp314-cp314-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyreduce_astro-0.9b1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (6.1 MB view details)

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

pyreduce_astro-0.9b1-cp313-cp313-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyreduce_astro-0.9b1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (6.1 MB view details)

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

pyreduce_astro-0.9b1-cp312-cp312-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pyreduce_astro-0.9b1.tar.gz
  • Upload date:
  • Size: 6.2 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.9b1.tar.gz
Algorithm Hash digest
SHA256 8f795d474b886de71aba84ba40de5ae61da23531b179444574d2a2c5db3a559e
MD5 1e0882a399ec195dd4afae99060f83a8
BLAKE2b-256 024aa90da92e9ae62401a0431bf1c3096b9cec69a1ca110f0f66f1ef0e53af49

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1.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.9b1-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.9b1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 781e6088f19fa7b2a1048eafd9ee29cdbb95b53346beaba6ba8328424d582674
MD5 e0a4f736b1242e57918c4da9f588b20d
BLAKE2b-256 42bacd5a57e65473bffc7aaabfd2fa543ab8f250e053c9a9cb6d25c1a21b51b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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.9b1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b227533b6561ef13203bb2bed6ff871973f1119f565d237f79a9b25f93b58fc3
MD5 f73e40bc63e4fc521149cf6f1cce3c40
BLAKE2b-256 191ad3ff6e3ffd4caa2ba0fdbbaf9dcbd60a4fa5698258b520f7783d725a7a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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.9b1-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.9b1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 656ea72cffa50d729ba07bea4e99551c188421000a42eded4205e8f8d931778f
MD5 1437c4f3756f40018e1d8473501f8317
BLAKE2b-256 829151a60e4a595c3c043475f4066475edb12375e8eba407109999723af2917f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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.9b1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec25b335118e646253cf283191eb5c807bce12077df63764ab58a0c837e0f0bc
MD5 460b91b84639dfdcb230b3eeb464ba41
BLAKE2b-256 7887097a92471762653d486ea0aa95d0359e8b0fb177ae611393dc72a6d19224

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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.9b1-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.9b1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3547c3183eb3d3148594467e1dfc4c6987d7e215210900ed6bc7080d93d4b2a1
MD5 53cd5ff0c5ee3e69fec8f73f490a3c78
BLAKE2b-256 991aff32a28a38530b36208f7f9364fd4d82dd582af85d423c2a8788a193e5e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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.9b1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreduce_astro-0.9b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22f32c8405785cd0842d8493ebf7e062d456659d1f1c661040ec592e88b33aae
MD5 4eb8c0fee37906b370b4102804b302de
BLAKE2b-256 147dcd92290474491a89dcc2f40068b97b04651bf5dba1edea42fc31dc0ccf88

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyreduce_astro-0.9b1-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