THERMOEQNS¶
—– CLEO —– File: thermoeqns.py Project: sdmout_src Created Date: Tuesday 24th October 2023 Author: Clara Bayley (CB) Additional Contributors: —– Last Modified: Monday 8th April 2024 Modified By: CB —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– Copyright (c) 2023 MPI-M, Clara Bayley —– File Description: equations in python for calculating thermodynamic variables e.g. potential temperature
- pySD.sdmout_src.thermoeqns.dry_pot_temp(Temp, P, qv, consts)[source]¶
calculate potential Temperature [K] assuming moist (unsaturated) air with vapour content qv
- pySD.sdmout_src.thermoeqns.saturation_pressure(TEMP)[source]¶
Calculate the equilibrium vapor pressure of water over liquid water ie. the saturation pressure (psat) given TEMP /K. Equation taken from Bjorn Steven’s “make_tetens” python function from his module “moist_thermodynamics.saturation_vapour_pressures” available on gitlab. Original paper “Murray, F. W. On the Computation of Saturation Vapor Pressure. Journal of Applied Meteorology and Climatology 6, 203–204 (1967).”