:py:mod:`pytmosph3r.atmosphere.atmosphere` ========================================== .. py:module:: pytmosph3r.atmosphere.atmosphere Module Contents --------------- .. py:class:: Atmosphere(name) Bases: :py:obj:`pytmosph3r.grid.Grid3D` Base class for building atmospheric models. .. py:property:: n_latitudes .. py:property:: n_longitudes .. py:property:: n_vertical .. py:attribute:: molar_mass Molar mass (in `kg/mol`). .. py:attribute:: pressure Pressure (in `Pa`). .. py:attribute:: max_pressure Max (bottom) pressure in the model (in `Pa`). Optional if using an input file. .. py:attribute:: min_pressure Min (top) pressure in the model (in `Pa`). Optional if using an input file. .. py:attribute:: temperature Temperature (in `K`). .. py:attribute:: gas_mix_ratio Volume mixing ratios of each gas. .. py:attribute:: aerosols Dictionary for aerosols. Each aerosol is itself a dictionary of which each element indicates the MMR, the effective radius and the condensate density of the aerosol. .. py:attribute:: p_min_aerosols For pressures under `p_min_aerosols`, all aerosols MMRs are set to 0. .. py:attribute:: recompute_molar_mass :value: True Recompute molar mass from the gas mix ratios (activated by default) using the method :func:`exo_k.Gas_mix.molar_mass`. If you give Atmosphere() a molar mass, this will be set to False. If you change your mind later, simply set this parameter again to True to recompute it automatically. .. py:attribute:: rcp :type: float :value: 0.28 Default rcp value to be used in emission mode .. py:method:: compute_molar_mass() Compute :py:attr:`molar_mass` (`kg/mol`). .. py:method:: build(model=None) Ensure that all data has been computed and formatted in arrays of the same shape. Handle different configurations of pressure, temperature and chemistry. .. py:method:: compute_altitude() Compute altitude `z`, scaleheight `H` and gravity `g` at coordinates on `grid`.