Skip to content
Snippets Groups Projects
Commit dc3a9aca authored by Lukas Kluft's avatar Lukas Kluft
Browse files

Fix name of constant

parent e734a9b7
No related branches found
No related tags found
1 merge request!1Fix doctests
...@@ -387,8 +387,8 @@ def zlcl(Plcl,T,P,qt,z): ...@@ -387,8 +387,8 @@ def zlcl(Plcl,T,P,qt,z):
Rv = constants.water_vapor_gas_constant Rv = constants.water_vapor_gas_constant
cpd = constants.isobaric_dry_air_specific_heat cpd = constants.isobaric_dry_air_specific_heat
cpv = constants.isobaric_water_vapor_specific_heat cpv = constants.isobaric_water_vapor_specific_heat
g = constants.earth_gravity g = constants.gravity_earth
cp = cpd + qt*(cpv-cpd) cp = cpd + qt*(cpv-cpd)
R = Rd + qt*(Rv-Rd) 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment