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:

http://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/autoapi/exo_k/adatabase/index.html?highlight=absorption_coefficient#exo_k.adatabase.Adatabase.absorption_coefficient

compute(i, coordinates)[source]

Compute the value of aer_reff_densities at coordinates, which will be stored at index i. The input aerosols dictionary should contain a MMR mmr (in kg/kg), and effective radius reff (in m), and condensate_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