From 6f63e1bbadf2f4ee98c8a482c4e22af6cf4b1978 Mon Sep 17 00:00:00 2001
From: sbiri <sbiri@noc.ac.uk>
Date: Mon, 23 Aug 2021 08:43:30 +0100
Subject: [PATCH] changed temp to tmp in line 947-950 not to confuse temporary
 var. for temperature

---
 flux_subs.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flux_subs.py b/flux_subs.py
index e1573f6..bcfe524 100755
--- a/flux_subs.py
+++ b/flux_subs.py
@@ -944,10 +944,10 @@ def get_L(L, lat, usr, tsr, qsr, hin, Ta, sst, qair, qsea, wind, monob, zo,
                           psim_calc(hin[1]/monob, meth)))
     Rb = g*dthv*hin[1]/(tv*uz*uz)
     if (L == "tsrv"):
-        temp = (g*kappa*tsrv /
+        tmp = (g*kappa*tsrv /
                 np.maximum(np.power(usr, 2)*Ta*(1+0.6077*qair), 1e-9))
-        temp = np.minimum(np.abs(temp), 200)*np.sign(temp)
-        monob = 1/np.copy(temp)
+        tmp = np.minimum(np.abs(tmp), 200)*np.sign(tmp)
+        monob = 1/np.copy(tmp)
     elif (L == "Rb"):
         zol = (Rb*(np.power(np.log((hin[1]+zo)/zo)-psim_calc((hin[1]+zo) /
                                                               monob, meth) +
-- 
GitLab