From 161a380fc0e763d5aa75b377c674289b82b238df Mon Sep 17 00:00:00 2001 From: Baptiste Vandecrux <35140661+BaptisteVandecrux@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:47:20 +0100 Subject: [PATCH] fixing adjustHumidity --- src/pypromice/process/L1toL2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypromice/process/L1toL2.py b/src/pypromice/process/L1toL2.py index a8039017..4c848284 100644 --- a/src/pypromice/process/L1toL2.py +++ b/src/pypromice/process/L1toL2.py @@ -462,7 +462,7 @@ def adjustHumidity(rh, T, T_0, T_100, ews, ei0): #TODO fi # Set to Groff & Gratch values when freezing, otherwise just rh rh_wrt_ice_or_water = rh.where(~freezing, other = rh*(e_s_wtr / e_s_ice)) - return rh_cor + return rh_wrt_ice_or_water def correctPrecip(precip, wspd):