How idadixen/peak-bagging works
This repository is research software for extracting oscillation-mode parameters from power spectra of six solar-like subgiants. The documented user workflow is a whole-spectrum Bayesian background fit, followed by a local oscillation-envelope fit that models modes with Lorentzian profiles; MCMC sampling produces parameter estimates and plots. The graph includes the shared data, mode tables, and priors as well as the plotting/analysis layer. Some implementation details are unsampled, so only documented or source-index-supported relationships are connected.
Main entry points: run_bg.py Background run · run_peakbagging.py Peak-bagging run · results_plotting.py Fit visualization · MCMC_modes.py Mode MCMC
Components 14
Fit workflows
- Background run
run_bg.py - Peak-bagging run
run_peakbagging.py
Bayesian models
- Background MCMC
MyFunctions/MCMC_bg.py - Mode MCMC
MyFunctions/MCMC_modes.py - Prior functions
MyFunctions/priors.py
Scientific inputs
- Power spectra
MyFunctions/Data - Mode tables
MyFunctions/Modes - Fit initial values
MyFunctions/theta_init - Parameter uncertainties
MyFunctions/uncertainties
Results and analysis
- Spectral utilities
MyFunctions/functions.py - Fit visualization
MyFunctions/results_plotting.py - Background results
peak-bagging results - Fit outputs
peak-bagging results
Other components
- Researcher
Connections 21
- Researcher → Background run: starts fit
README.md - Researcher → Peak-bagging run: starts fit
README.md - Background run → Power spectra: loads spectrum
run_bg.py - Background run → Fit initial values: loads guesses
run_bg.py - Background run → Parameter uncertainties: loads uncertainty
run_bg.py - Background run → Spectral utilities: gets target data
run_bg.py - Background run → Background MCMC: runs sampler
run_bg.py - Background MCMC → Prior functions: uses priors
MyFunctions/MCMC_bg.py - Background MCMC → Fit outputs: writes estimates
- Peak-bagging run → Power spectra: loads spectrum
run_peakbagging.py - Peak-bagging run → Mode tables: loads modes
run_peakbagging.py - Peak-bagging run → Spectral utilities: reads mode data
run_peakbagging.py - Peak-bagging run → Background results: uses background fit
README.md - Peak-bagging run → Mode MCMC: runs sampler
run_peakbagging.py - Mode MCMC → Prior functions: uses priors
MyFunctions/MCMC_modes.py - Mode MCMC → Background MCMC: evaluates background
MyFunctions/MCMC_modes.py - Mode MCMC → Fit visualization: plots fit
MyFunctions/MCMC_modes.py - Fit visualization → Mode MCMC: evaluates mode model
MyFunctions/results_plotting.py - Fit visualization → Background MCMC: evaluates background
MyFunctions/results_plotting.py - Fit visualization → Spectral utilities: uses plot helpers
MyFunctions/results_plotting.py - Fit visualization → Fit outputs: saves estimates
MyFunctions/results_plotting.py