From 9b043bd9b76c0c6cadba10fa8951774ba6ba4673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20G=C3=A1mez?= Date: Wed, 26 Aug 2020 08:18:30 +0200 Subject: [PATCH 1/2] Correction of the 2nd example in 'interplevel' docstring --- src/wrf/interp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrf/interp.py b/src/wrf/interp.py index 8e7fc57..32b851d 100755 --- a/src/wrf/interp.py +++ b/src/wrf/interp.py @@ -90,7 +90,7 @@ def interplevel(field3d, vert, desiredlev, missing=default_fill(np.float64), wrfin = Dataset("wrfout_d02_2010-06-13_21:00:00") rh = getvar(wrfin, "rh") - z = getvar(wrfin, "z") + z = getvar(wrfin, "z", msl=False) pblh = getvar(wrfin, "PBLH") rh_pblh = interplevel(rh, z, pblh) From 77b81c4aaa1794ca08d7271bb5426c40c40f1954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20G=C3=A1mez?= Date: Thu, 27 Aug 2020 08:33:03 +0200 Subject: [PATCH 2/2] Correction of the 2nd example in 'interplevel' docstring. Using diag variable 'height_agl' --- src/wrf/interp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrf/interp.py b/src/wrf/interp.py index 32b851d..e68029b 100755 --- a/src/wrf/interp.py +++ b/src/wrf/interp.py @@ -90,10 +90,10 @@ def interplevel(field3d, vert, desiredlev, missing=default_fill(np.float64), wrfin = Dataset("wrfout_d02_2010-06-13_21:00:00") rh = getvar(wrfin, "rh") - z = getvar(wrfin, "z", msl=False) + height = getvar(wrfin, "height_agl") pblh = getvar(wrfin, "PBLH") - rh_pblh = interplevel(rh, z, pblh) + rh_pblh = interplevel(rh, height, pblh) """