Example scripts for preparing telescope observations for modeling with PyAutoLens and PyAutoGalaxy. Start with an introduction to data reduction, then explore the examples for your instrument.
- Start with the introduction — follow an HST imaging reduction, from archival exposures to a dataset ready for modeling.
- Explore PyAutoReduce — find the library and installation information.
- Read the guides — learn about target settings, noise maps and the files a reduction produces.
See Find Your Examples below to choose where to start.
You can read the examples without running them. Running a reduction requires the instrument’s software, network access and space for downloaded exposures; the first run can take minutes to hours.
Examples live in scripts/, grouped by instrument.
| I want to… | Start here |
|---|---|
| Reduce Hubble ACS imaging | HST ACS |
| Reduce Hubble WFC3 ultraviolet or visible imaging | HST WFC3 UVIS |
| Reduce Hubble WFC3 infrared imaging | HST WFC3 IR |
| Reduce James Webb NIRCam imaging | JWST NIRCam |
| Reduce Keck adaptive-optics imaging | Keck NIRC2 |
| Prepare ALMA interferometer data | ALMA |
| Download survey images for visual context | Survey cutouts |
Each instrument folder has a README explaining its examples. Reduced datasets are written to output/; downloaded exposures and reference files are stored in cache/.
Survey cutouts provide visual context around a target; they are not prepared for scientific model fitting.
For imaging reductions, the main outputs are a science image, a noise map and a point spread function (PSF), which describes how the telescope blurs the image. A reduction record stores the settings and processing details.
The output guide explains these files, the different outputs for individual exposures and interferometer data, and how to load them for modeling.
Ask questions, suggest improvements and share your work in PyAutoLabs Discussions, or chat with us on Slack.
See the PyAutoReduce license.