How arielmission-space/exosim2-public works
ExoSim 2 simulates spectro-photometric observations of transiting exoplanets. Users invoke CLI commands to run recipes; the radiometric recipe prepares sources and channel focal planes, computes signal/noise tables, and stores results for plotting. Separate recipes produce focal planes, sub-exposures, and NDRs. The graph includes shared signal/task infrastructure and HDF5 output. Some recipe stages are represented from the repository tree and README rather than sampled implementations; their links are dashed where control flow is unverified.
Main entry points: radiometric_model.py Radiometric model · exosim.py CLI · radiometric Radiometric tasks · signal.py Signal model
Components 26
Entry and orchestration
- CLI
src/exosim/exosim.py - Radiometric model
src/exosim/recipes/radiometric_model.py - Focal-plane recipe
src/exosim/recipes/create_focal_plane.py - Sub-exposure recipe
src/exosim/recipes/create_sub_exposures.py - NDR recipe
src/exosim/recipes/create_ndrs.py - Observation recipe
src/exosim/recipes/simulate_observation.py
Observation science
- Source and SED tasks
src/exosim/tasks/sed - Astronomical signals
src/exosim/tasks/astrosignal - Foreground estimation
src/exosim/tasks/foregrounds - Instrument propagation
src/exosim/tasks/instrument - Radiometric tasks
src/exosim/tasks/radiometric
Detector products
- Readout preparation
src/exosim/tasks/subexposures - Detector effects
src/exosim/tasks/detector
Data and visualization
- Output interface
src/exosim/output/output.py - HDF5 output
src/exosim/output/hdf5/hdf5.py - Radiometric plots
src/exosim/plots/radiometric_plotter.py - Other plotters
src/exosim/plots
Shared runtime
- Channel model
src/exosim/models/channel.py - Signal model
src/exosim/models/signal.py - Task framework
src/exosim/tasks/task.py - Run configuration
src/exosim/utils/run_config.py - Structured logging
src/exosim/log/structlog_config.py - Unit checks
src/exosim/utils/checks.py - Spectral binning
src/exosim/utils/binning.py - Task selection
src/exosim/utils/klass_factory.py
Other components
- User
Connections 30
- User → CLI: invokes
src/exosim/exosim.py - CLI → Radiometric model: runs
src/exosim/exosim.py - CLI → Focal-plane recipe: runs
src/exosim/exosim.py - CLI → Sub-exposure recipe: runs
src/exosim/exosim.py - CLI → NDR recipe: runs
src/exosim/exosim.py - CLI → Radiometric plots: plots results
src/exosim/exosim.py - CLI → Other plotters: plots products
src/exosim/exosim.py - Radiometric model → Source and SED tasks: loads sources
src/exosim/recipes/radiometric_model.py - Radiometric model → Focal-plane recipe: uses focal-plane recipe
src/exosim/recipes/radiometric_model.py - Radiometric model → Channel model: uses channels
src/exosim/recipes/radiometric_model.py - Radiometric model → Radiometric tasks: computes signals
src/exosim/recipes/radiometric_model.py - Radiometric model → Output interface: writes tables
src/exosim/recipes/radiometric_model.py - Radiometric model → Run configuration: uses configuration
src/exosim/recipes/radiometric_model.py - Focal-plane recipe → Instrument propagation: propagates optics
- Instrument propagation → Foreground estimation: adds foregrounds
- Astronomical signals → Instrument propagation: supplies signals
- Sub-exposure recipe → Readout preparation: prepares readouts
- Readout preparation → Detector effects: applies detector effects
- NDR recipe → Detector effects: produces NDRs
- Observation recipe → Radiometric model: simulates observation
- Task framework → Structured logging: inherits timing and logging
- Radiometric tasks → Task framework: uses task framework
src/exosim/tasks/radiometric/compute_custom_noise.py - Radiometric tasks → Signal model: processes signals
src/exosim/tasks/radiometric/compute_custom_noise.py - Signal model → Output interface: caches data
src/exosim/models/signal.py - Output interface → HDF5 output: implemented by
src/exosim/output/hdf5/hdf5.py - Radiometric plots → HDF5 output: reads stored tables
src/exosim/plots/radiometric_plotter.py - Radiometric tasks → Task selection: selects custom tasks
src/exosim/tasks/radiometric/compute_custom_noise.py - Astronomical signals → Spectral binning: bins spectra
src/exosim/tasks/astrosignal/estimate_planetary_signal.py - Signal model → Spectral binning: uses binning
src/exosim/models/signal.py - Signal model → Unit checks: checks units
src/exosim/models/signal.py