Specreduce 1.8
This release focuses on uncertainty propagation throughout the spectral reduction pipeline, ensuring that extracted spectra carry proper error estimates.
New Features
- Uncertainty propagation in background estimation — Background.bkg_image(), bkg_spectrum(), sub_image(), and sub_spectrum() now return results with proper uncertainties. When the input image has uncertainty, it is propagated using variance
formulas appropriate for the chosen statistic. When no uncertainty is provided, it is estimated from the flux values in the background region. (#297) - Uncertainty propagation in spectrum extraction — BoxcarExtract and HorneExtract now produce extracted spectra with proper uncertainties. (#295, #296)
- Sigma clipping in background estimation — New optional sigma parameter on Background for outlier rejection (default: 5.0; set to None to disable). (#297)
API Changes
- Migrated to specutils 2.0 — Removed the specreduce.compat module; all internal code now uses specutils.Spectrum directly. Users must update to specutils >= 2.0. (#299)
- Bumped minimum dependencies — specutils >= 2.0, astropy >= 6.0, scipy >= 1.14, photutils >= 1.11. (#299)
Other Changes
- Switched to sphinx_astropy.conf.v2 and revised documentation. (#275)
Installation
pip install specreduce==1.8.0