pytmosph3r.aerosols
Module Contents
- class PrepareAerosols(model, atm, size)[source]
Transform aerosols (from mmr, reff and condensate_density) to a format suitable to exo_k (reff and nb_density).
Initialize the aer_reff_densities to a exo_k-compatible format.
- Parameters:
model (
Model
) – The model from which to extract some data.atm (
Atmosphere
) – The atmosphere from which to extract some data.size (int) – Size of the data (reff & nb_density) for each molecule.
- aer_reff_densities
Dictionary that should be compatible with exo_k. Its keys should be the aerosol names and the values should be lists containing 2 floats (or arrays) as values. The values are the particle effective radii and number densities. See absorption_coefficient() in the doc of exo_k:
- compute(i, coordinates)[source]
Compute the value of aer_reff_densities at
coordinates
, which will be stored at indexi
. The inputaerosols
dictionary should contain a MMRmmr
(in kg/kg), and effective radiusreff
(in m), andcondensate_density
(in \(kg/m^3\)).- Parameters:
i (int, slice) – index.
coordinates (tuple) – cell coordinates.
- Returns:
A dictionary with aerosol names as keys and lists containing 2 floats (or arrays) as values. The values are the particle effective radii and number densities.
- Return type:
dict