This function takes in the C/O ratio, metallicity, and quench pressures and uses them
- petitRADTRANS.retrieval.chemistry.get_abundances(pressures, temperatures, line_species, cloud_species, parameters, AMR=False)¶
This function takes in the C/O ratio, metallicity, and quench pressures and uses them to compute the gas phase and equilibrium condensate abundances from an interpolated table. This function assumes a hydrogen-helium dominated atmosphere, and enforces <10% trace gas abundance by mass.
A log spaced pressure array. If AMR is on it should be the full high resolution grid.
A temperature array with the same shape as pressures
A list of gas species that will contribute to the line-by-line opacity of the pRT atmosphere.
A list of condensate species that will contribute to the cloud opacity of the pRT atmosphere.
A dictionary of model parameters, in particular it must contain the names C/O, Fe/H and log_pquench. Additionally the cloud parameters log_X_cb_Fe(c) and MgSiO3(c) must be present.
Turn the adaptive mesh grid on or off. See fixed_length_amr for implementation.
Mass fraction abundances of all atmospheric species
Array of the mean molecular weights in each pressure bin
The indices of the high resolution grid to use to define the adaptive grid.
A dictionary of the cloud base pressures, either computed from equilibrium condensation or set by the user.