:py:mod:`pytmosph3r.chemistry.interpolation` ============================================ .. py:module:: pytmosph3r.chemistry.interpolation Module Contents --------------- .. py:class:: InterpolationChemistry(gases=None, filename=None, t_min=260) Bases: :py:obj:`pytmosph3r.chemistry.chemistry.Chemistry` Chemistry model interpolating Volume Mixing Ratios based on a datafile. See the `Abundances-TiO.dat `_ for an example. VMRs should be in the logarithmic space. See :attr:`logp_grid` for details on the pressure format. :param gases: List of gases to consider for interpolation. :type gases: :obj:`list` :param filename: The path to the datafile. :type filename: str .. py:attribute:: t_grid Temperature grid (in K). .. py:attribute:: logp_grid Log(P) grid in Pa. For this, the pressure 'x' from the file is transformed via :math:`log_{10}(exp(x)))+2`. .. py:method:: compute_vmr(gas, mix_ratio) This function can be overridden to compute the volume mixing ratio of a gas :attr:`gas` using :attr:`mix_ratio`, initialized to an array with the :attr:`~pytmosph3r.Grid3D.shape` of the atmosphere. :param gas: Name of the gas :type gas: str :param mix_ratio: Array full of ones of shape :attr:`~pytmosph3r.Grid3D.shape`. The array is filled with the values in the atmosphere is the gas was already present, or else ones. :type mix_ratio: array, np.ndarray .. py:method:: inputs()