This guide provides an overview of the rbvfit graphical user interface (GUI) for analyzing absorption line spectra. The GUI simplifies the process of setting up instrument configurations, loading data, defining ion systems, performing MCMC fitting, and analyzing results.
Launch the GUI from the command line:
# Start with empty session rbvfit_gui # Or load an existing project rbvfit_gui project.rbv
# Show all options rbvfit_gui --help
The interface follows a 4-tab workflow: Data → Model → Fitting → Results
- Click "Add Configuration" to create a new instrument setup
- Enter configuration name (e.g., "COS_G130M", "UVES")
- Set the instrumental FWHM in km/s
- Add optional description
- Click "Load Files" to select spectrum files
- Assign loaded files to configurations using dropdown menus
- Use wavelength trimming to focus on absorption features
- Validate data before proceeding to model setup
Tip: Start with a single spectrum covering one absorption system for your first analysis.
- Select a configuration from the dropdown
- Click "Add System" to create new absorption systems
- Enter system redshift and add ion species (CIV, HI, MgII, etc.)
- Set velocity components for each ion
- Add all systems to the same configuration to share across instruments
Tip: Configure absorbers once - automatically applied to all instruments.
- If there are multiple systems, first select the system from the parameter estimation dropdown menu.
- Use the interactive estimation tools to set initial parameter guesses
- Adjust column densities (N), Doppler parameters (b), and velocities (v)
- Repeat for each system as needed
- Click "Compile Models" when ready to proceed
Tip: Use single components initially, then add complexity as needed.
- Review compiled models and parameter bounds
- Adjust initial parameters and bounds as needed
- Choose sampler (emcee or zeus) and set number of walkers/steps
- Click "Start Fitting" to begin MCMC analysis
- Monitor convergence diagnostics during the run
- View parameter tables with uncertainties
- Examine corner plots for parameter correlations
- Compare model fits to data with residuals
- Export results in CSV, JSON, or LaTeX formats
- Export resuts and fitting details as hdf5 files for further analysis. Use it with Unified_results.py
Tip: Check that parameter chains have converged before interpreting results.
- Save Project (Ctrl+S): Preserves configurations, ion systems, and parameters
- Load Project (Ctrl+O): Restores complete analysis session
- Projects are saved as .rbv files containing metadata only (not raw data)
Note: When loading projects, you may need to reassign data files if paths have changed.
Getting Started:
- Begin with simple single-line fits to learn the interface
- Use the parameter estimation tools before running MCMC fits
- Start with fewer MCMC steps for initial testing
Best Practices:
- Always check convergence diagnostics in the fitting tab
- Use realistic parameter bounds based on physical expectations
- Save projects frequently to preserve your work
Multi-instrument Analysis:
- Create separate configurations for each instrument with appropriate FWHM values
- Ion systems are automatically shared across all configurations
- Joint fitting improves parameter constraints significantly
Troubleshooting:
- If fitting fails to converge, try adjusting initial parameter guesses
- For large datasets, consider using fewer walkers or the zeus sampler
- Check that spectrum files are properly formatted with wavelength, flux, and error columns




