diff --git a/moist_thermodynamics/functions.py b/moist_thermodynamics/functions.py index 21a876f67e6535ae390a01b0bcb8a2cdf9c4f16d..8958a88875afa78de79eb7e0c3c578ce64c8990a 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