GUIBRUSHR.Retrieval.ModelCalculation.Classes.NotRetrieval module¶
NotRetrieval class module for handling atmospheric retrieval calculations.
This module contains the NotRetrieval class which processes atmospheric data including volume mixing ratios (VMR), spectra, and opacity contributions for both high resolution (HR) and low resolution (LR) data.
- class GUIBRUSHR.Retrieval.ModelCalculation.Classes.NotRetrieval.NotRetrieval(mass_fraction_names_hr, mass_fraction_names_lr, MMW, vmr, mean_VMR_and_MF_string, mean_VMR_and_MF_dict, wl_full_resolution_HR, depth_full_resolution_HR, wlen_mu_contribution_HR, contribution_HR, wl_full_resolution_LR, depth_full_resolution_LR, wl_binned_LR, spectrum_binned_LR, offsetLRarr, wlen_mu_contribution_LR, contribution_LR, chemistry, params_only_molec, species, opacity_contribution_HR, opacity_contribution_LR, instruments_LR, rp, rad_mode, stellar_radius, stellar_spectrum, lh_HR, lh_LR, HR_res_present, LR_res_present, use_hr_linelists_for_lr)[source]¶
Bases:
objectA class for handling atmospheric retrieval calculations and data processing.
This class manages atmospheric data including volume mixing ratios (VMR), spectral data at different resolutions, and opacity contributions. It processes molecular species data and creates dictionaries for easy access to VMR values.
- __init__(mass_fraction_names_hr, mass_fraction_names_lr, MMW, vmr, mean_VMR_and_MF_string, mean_VMR_and_MF_dict, wl_full_resolution_HR, depth_full_resolution_HR, wlen_mu_contribution_HR, contribution_HR, wl_full_resolution_LR, depth_full_resolution_LR, wl_binned_LR, spectrum_binned_LR, offsetLRarr, wlen_mu_contribution_LR, contribution_LR, chemistry, params_only_molec, species, opacity_contribution_HR, opacity_contribution_LR, instruments_LR, rp, rad_mode, stellar_radius, stellar_spectrum, lh_HR, lh_LR, HR_res_present, LR_res_present, use_hr_linelists_for_lr)[source]¶
Initialize the NotRetrieval class with atmospheric and spectral data.
- Parameters:
mass_fraction_names_hr – High resolution mass fraction names
mass_fraction_names_lr – Low resolution mass fraction names
MMW – Mean molecular weight data
vmr – Volume mixing ratio data
mean_VMR_and_MF_string – Mean VMR and Molecular Fraction string
mean_VMR_and_MF_dict – Mean VMR and Molecular Fraction dictionary
wl_full_resolution_HR – Full resolution wavelength data
depth_full_resolution_HR – Full resolution spectrum data
wlen_mu_contribution_HR – High resolution wavelength contribution
contribution_HR – High resolution contribution data
wl_full_resolution_LR – Low resolution full wavelength data
depth_full_resolution_LR – Low resolution full spectrum data
wl_binned_LR – Low resolution binned wavelength data
spectrum_binned_LR – Low resolution binned spectrum data
offsetLRarr – Low resolution offset array
wlen_mu_contribution_LR – Low resolution wavelength contribution
contribution_LR – Low resolution contribution data
chemistry – Chemistry table selection
params_only_molec – Molecular parameters
species – List of chemical species
opacity_contribution_HR – High resolution opacity contribution
opacity_contribution_LR – Low resolution opacity contribution
instruments_LR – List of instruments for low resolution data
rp – Planet radius parameter
rad_mode – Radiative transfer mode selection
stellar_radius – Stellar radius parameter
stellar_spectrum – Stellar spectrum for resolution data
lh_HR – Likelihood dictionary for high resolution data
lh_LR – Likelihood dictionary for low resolution data
HR_res_present – Boolean indicating if high resolution data is present
LR_res_present – Boolean indicating if low resolution data is present
use_hr_linelists_for_lr – Use high resolution linelists for low resolution data
- adapt_opacities(value, stellar_spectrum=None)[source]¶
Convert a single opacity contribution tuple to display-ready units.
Wavelength is converted from cm to nm. In transmission mode, the contribution is converted from cm to Jupiter radii.
- Parameters:
value – Tuple of (wavelength, contribution, extra_data) arrays in cgs units
stellar_spectrum – Stellar spectrum array (reserved for emission mode)
- Returns:
Tuple of (wavelength_nm, contribution_converted, extra_data) arrays.