exo_k.aerosols

@author: jeremy leconte

Module Contents

class exo_k.aerosols.Aerosols(aer_reffs_densities=None, a_database=None)[source]

Bases: exo_k.util.spectral_object.Spectral_object

Dict-like class to handle aerosol composition, reff, and density, and link this to the optical propoerties.

__init__ Instantiates an aerosols object.

_wn_range = None
set_aer_reffs_densities(aer_reffs_densities=None)[source]

Set the dictionary with the arrays of the effective radii and number densities for the aerosols.

Warning

The unit and physical meaning of the result may change depending on the quantity provided in aer_reffs_densities (number density or ratio of particle to gas number density). See exo_k.atable.Atable.absorption_coefficient() for further details.

For use in the amtospheric model, one should provide the particle to gas number density ratio.

Parameters:

aer_reffs_densities (dict) – 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 (or ratio of aerosol to gas number density).

set_a_database(a_database=None)[source]

Change the radiative database attached to the current instance of aerosols

Parameters:

a_database (Kdatabase object) – New Adatabase to use.

optical_properties(aer_reffs_densities=None, wl_range=None, wn_range=None, log_interp=None, compute_all_opt_prop=True, **kwargs)[source]

Compute the optical properties for the mix.

Parameters:
  • aer_reffs_densities (dict) – 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 (or ratio of aerosol to gas number density). See exo_k.atable.Atable.absorption_coefficient() for further details.

  • wl_range (two-value list) – Wavelength or wavenumber range to consider

  • wn_range (two-value list) – Wavelength or wavenumber range to consider

  • log_interp (bool, optional) – Whether the interpolation is linear in kdata or in log(kdata).

  • compute_all_opt_prop (bool, optional) – Whether to compute all the optical properties or just the extinction.

absorption_coefficient(aer_reffs_densities=None, wl_range=None, wn_range=None, log_interp=None, **kwargs)[source]

Compute the aerosol opacity for the mix.

Parameters:
  • aer_reffs_densities (dict) – 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 (or ratio of aerosol to gas number density). See exo_k.atable.Atable.absorption_coefficient() for further details.

  • wl_range (two-value list) – Wavelength or wavenumber range to consider

  • wn_range (two-value list) – Wavelength or wavenumber range to consider

  • log_interp (bool, optional) – Whether the interpolation is linear in kdata or in log(kdata).