From f8acf22f99ff6a91a2bf6e4be1886f505d7dc483 Mon Sep 17 00:00:00 2001 From: "Richard R. McDonald" Date: Thu, 16 Jul 2020 15:39:01 -0600 Subject: [PATCH] fixed bug when using --partial=true --- gridmetetl/etl.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gridmetetl/etl.py b/gridmetetl/etl.py index eb19668..be64a88 100644 --- a/gridmetetl/etl.py +++ b/gridmetetl/etl.py @@ -370,12 +370,12 @@ def run_weights(self): nanvar = True if nanvar: - d_tmax[i] = np_get_wval(d_flt_tmax[tgid] - 273.15, tgid, tw, tindex[i]) - d_tmin[i] = np_get_wval(d_flt_tmin[tgid] - 273.15, tgid, tw, tindex[i]) - d_ppt[i] = np_get_wval(d_flt_ppt[tgid], tgid, tw, tindex[i]) - d_rhmax[i] = np_get_wval(d_flt_rhmax[tgid], tgid, tw, tindex[i]) - d_rhmin[i] = np_get_wval(d_flt_rhmin[tgid], tgid, tw, tindex[i]) - d_ws[i] = np_get_wval(d_flt_ws[tgid], tgid, tw, tindex[i]) + d_tmax[i] = np_get_wval(d_flt_tmax[tgid] - 273.15, tw, tindex[i]) + d_tmin[i] = np_get_wval(d_flt_tmin[tgid] - 273.15, tw, tindex[i]) + d_ppt[i] = np_get_wval(d_flt_ppt[tgid], tw, tindex[i]) + d_rhmax[i] = np_get_wval(d_flt_rhmax[tgid], tw, tindex[i]) + d_rhmin[i] = np_get_wval(d_flt_rhmin[tgid], tw, tindex[i]) + d_ws[i] = np_get_wval(d_flt_ws[tgid], tw, tindex[i]) else: d_tmax[i] = getaverage(d_flt_tmax[tgid] - 273.15, tw)