PyIRD is a Python-based pipeline for reducing spectroscopic data obtained with IRD and REACH on the Subaru Telescope.
It is designed to process raw images into one-dimensional spectra in a semi-automatic manner.
Unlike traditional methods, it does not rely on IRAF (Tody et al. 1986, 1993), a software traditionally used for astronomical data reduction. This approach simplifies the workflow while maintaining efficiency and accuracy.
Additionally, the pipeline includes an updated method for removing readout noise patterns from raw images, enabling efficient extraction of spectra even for faint targets such as brown dwarfs.
Read the docs or deepwiki for PyIRD.
pip install pyird
or
git clone https://github.com/prvjapan/pyird.git
cd pyird
pip install .
PyIRD is designed to perform data reduction semi-automatically by following a general workflow for high-dispersion spectroscopic data reduction (e.g., readout noise subtraction, flat fielding, aperture extraction, wavelength calibration, and normalization).
See the following examples how to create 1D spectra from raw data.
- pyird/examples/python/IRD_stream.py -- for IRD data; read the docs for the detailed explanation.
- pyird/examples/python/REACH_stream.py -- for REACH data; basically the same as
IRD_stream.py, but with the variableinstset toREACHinstead.
The raw data for IRD_stream.py can be downloaded from the Zenodo repository.
PyIRD is publicly available under the MIT license. For developers, please read CONTRIBUTING.md.
