How lsstdesc/photozdc1 works
This is a Python toolkit for generating galaxy photometry/catalogs from mock-galaxy properties and studying photo-z performance under configurable systematic effects. The intended workflow is to read a mock catalog, assign or generate SEDs, model perturbations, compute observed magnitudes, and assess resulting photo-z statistics. The README describes some stages as planned rather than implemented; links for those capabilities are documented or left unverified. Source excerpts and the index establish only a subset of runtime wiring.
Main entry points: sedMapper.py SED mapping · interface.py Catalog interface · photometry.py Magnitude calculation · sedFilter.py SED and filters
Components 22
Catalog and Templates
- Mock catalog
- Catalog interface
src/interface.py - SED library
sed_data - Filter curves
filter_data
Galaxy and SED Models
- SED and filters
src/sedFilter.py - SED mapping
src/sedMapper.py - Galaxy properties
src/galaxy.py - SED generation
src/sedGenerator.py - Continuum fitting
src/continuum_pc_emlines.py - Emission lines
src/emLineGenerator.py - Dust reddening
src/reddening.py - IGM absorption
src/igmModel.py - Atomic calculations
src/genAstro.py
Photometry Simulation
- Magnitude calculation
src/photometry.py - Cosmology
src/cosmo.py - Photometric errors
src/photErrorModel.py - Physical constants
src/const.py - Observed catalog
Photo-z Analysis
- Photo-z formatting
src/convert_file_to_pzformat.py - Photo-z metrics
validation/photo_z.py - Color distributions
validation/plot_color.py
Other components
- Simulation user
Connections 25
- Simulation user → Catalog interface: loads inputs
README.md - Mock catalog → Catalog interface: provides data
README.md - Catalog interface → SED mapping: maps properties
src/interface.py - SED library → SED mapping: provides templates
README.md - Filter curves → SED and filters: provides curves
- SED mapping → SED and filters: uses SEDs
src/sedMapper.py - Catalog interface → SED mapping: uses mapper
src/interface.py - SED mapping → Magnitude calculation: uses calculations
src/sedMapper.py - SED mapping → SED and filters: uses filters
src/sedMapper.py - Galaxy properties → SED mapping: supplies properties
- SED generation → SED mapping: supplies SEDs
README.md - Continuum fitting → SED mapping: parameterizes SEDs
README.md - Emission lines → SED mapping: perturbs SEDs
README.md - Dust reddening → SED mapping: perturbs SEDs
- IGM absorption → SED mapping: absorbs light
README.md - IGM absorption → Atomic calculations: uses atomic calculations
src/igmModel.py - Magnitude calculation → Cosmology: uses distances
- Magnitude calculation → Photometric errors: applies noise
src/photErrorModel.py - Cosmology → Physical constants: uses constants
src/cosmo.py - Atomic calculations → Physical constants: uses constants
src/genAstro.py - Magnitude calculation → Observed catalog: computes magnitudes
README.md - Observed catalog → Photo-z formatting: formats catalog
src/convert_file_to_pzformat.py - Photo-z formatting → Catalog interface: reads catalog
src/convert_file_to_pzformat.py - Observed catalog → Photo-z metrics: evaluates estimates
README.md - Photo-z metrics → Color distributions: uses plotting
validation/photo_z.py