chemistry

chemistry

frei.chemistry(temperatures, pressures, species, return_vmr=False, m_bar=<Quantity 4.01429262e-27 kg>)[source]

Run pyfastchem to compute chemistry throughout an atmosphere.

Parameters
  • temperatures (Quantity) – Temperature grid

  • pressures (Quantity) – Pressure grid

  • fastchem (FastChem) – FastChem object from pyfastchem

  • input_data (FastChemInput or None) –

  • output_data (FastChemOutput or None) –

  • return_vmr (bool) – If True, return the volume mixing ratio as well as the mass mixing ratio

  • m_bar (Quantity) – Mean molecular weight

Returns

  • fastchem_mmr (dict) – Mass mixing ratios for each species

  • fastchem_vmr (dict (optional)) – Volume mixing ratios for each species