GUIBRUSHR.Retrieval.ModelCalculation.LikelihoodLR module

Low-resolution likelihood calculations for atmospheric retrieval.

Manages spectral binning (emission and transmission), continuum estimation, and the full low-resolution likelihood evaluation. Extracted from ModelData.

class GUIBRUSHR.Retrieval.ModelCalculation.LikelihoodLR.LikelihoodLR(atmosphere, bestpars_data, model_type, clight)[source]

Bases: object

Low-resolution likelihood evaluator for atmospheric retrieval.

Handles spectral binning to instrument resolution, emission/transmission mode handling, offset corrections, and chi-square likelihood evaluation.

Variables:
  • atmosphere – Atmosphere object with species, resolution, stellar data.

  • bestpars_data – Bestpars object with nfit.

  • model_type – Model type string (“Retrieval”, “Model”, etc.).

  • clight – Speed of light constant.

__init__(atmosphere, bestpars_data, model_type, clight)[source]
low_resolution_lhood(temperature, mass_fraction, vmr, MMW, dict_calc_model, rp)[source]

Compute likelihood for low-resolution observations.

This method calculates the likelihood by comparing the binned theoretical spectrum with low-resolution observational data. It handles spectral binning, offset corrections, and chi-square calculation for each instrument.

Parameters:
  • temperature – Temperature profile

  • mass_fraction – Mass fraction profiles for species

  • vmr – Volume mixing ratios

  • MMW – Mean molecular weight profile

  • dict_calc_model – Dictionary containing model calculation parameters

  • rp – Planet radius in cm

Returns:

  • lhood: Log-likelihood value

  • wl_full_resolution_LR: Full resolution wavelength array

  • depth_full_resolution_LR: Full resolution spectrum

  • wl_binned_LR_complete: Binned wavelength arrays for all instruments

  • spectrum_binned_LR_complete: Binned spectra for all instruments

  • opacity_contribution_LR: Opacity contributions (if model plotting)

  • lh_low_resolution: Dictionary of per-instrument likelihood details

Return type:

Tuple containing