From dc3a9aca298402987136f4c0759fb631ecd30c7d Mon Sep 17 00:00:00 2001 From: Lukas Kluft <lukas.kluft@gmail.com> Date: Thu, 11 Aug 2022 11:02:20 +0200 Subject: [PATCH] Fix name of constant --- moist_thermodynamics/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moist_thermodynamics/functions.py b/moist_thermodynamics/functions.py index 21a876f..8958a88 100644 --- a/moist_thermodynamics/functions.py +++ b/moist_thermodynamics/functions.py @@ -387,8 +387,8 @@ def zlcl(Plcl,T,P,qt,z): Rv = constants.water_vapor_gas_constant cpd = constants.isobaric_dry_air_specific_heat cpv = constants.isobaric_water_vapor_specific_heat - g = constants.earth_gravity + g = constants.gravity_earth cp = cpd + qt*(cpv-cpd) R = Rd + qt*(Rv-Rd) - return T*(1. - (Plcl/P)**(R/cp)) * cp/earth_gravity + z + return T*(1. - (Plcl/P)**(R/cp)) * cp / g + z -- GitLab