How fjebaker/reltrans works
Reltrans is an X-ray reverberation model for black-hole accretion systems, producing time-averaged spectra and energy-dependent cross spectra. The main user workflow is to supply energies and model parameters through Python or XSPEC, invoke the model, and obtain spectral or timing results. Its documented model capabilities include relativistic spacetime effects, continuum and reflection, and multiple model flavours. The Python-to-native entry is visible in the excerpt; most Fortran internals are unsampled, so their relationships are shown only as unverified dashed links.
Main entry points: reltrans_interface.f90 Model entry points · __init__.py Python API · xspec_interface.f90 XSPEC interface · propercross.f90 Cross spectra
Components 16
User interfaces
- Python API
pyreltrans/__init__.py - XSPEC interface
subroutines/xspec_interface.f90 - Model entry points
subroutines/reltrans_interface.f90
Relativistic physics
- Kerr spacetime
subroutines/kerrz.f90 - Photon ray tracing
subroutines/raytracing.f90 - Disc profiles
subroutines/radial_profiles
Emission model
- Continuum emission
subroutines/continuum - Disc emissivity
subroutines/emissivity.f90 - Reflection spectra
subroutines/rest_frame_reflection
Spectral timing
- Instrument response
subroutines/resproutines.f90 - Spectrum assembly
subroutines/components.f90 - Impulse response
subroutines/impulseresponse.f90 - Cross spectra
subroutines/propercross.f90 - Frequency lags
subroutines/lag_freq.f90 - Spectral folding
subroutines/fold.f90
Other components
- Model user
Connections 16
- Model user → Python API: calls
README.md - Model user → XSPEC interface: loads model
README.md - Python API → Model entry points: calls native
pyreltrans/__init__.py - XSPEC interface → Model entry points: dispatches
- Model entry points → Kerr spacetime: uses
- Model entry points → Photon ray tracing: uses
- Model entry points → Disc profiles: uses
- Model entry points → Continuum emission: uses
- Model entry points → Disc emissivity: uses
- Model entry points → Reflection spectra: uses
- Model entry points → Spectrum assembly: produces
- Model entry points → Impulse response: computes
- Model entry points → Cross spectra: computes
- Cross spectra → Frequency lags: derives lags
- Model entry points → Instrument response: applies
- Model entry points → Spectral folding: folds output