From cf349d7ca112c531bd030e8e98f10cbbd571e004 Mon Sep 17 00:00:00 2001
From: sbiri <sbiri@noc.ac.uk>
Date: Mon, 5 Jul 2021 07:16:00 +0100
Subject: [PATCH] Update AirSeaFluxCode.py

---
 AirSeaFluxCode.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/AirSeaFluxCode.py b/AirSeaFluxCode.py
index 9997d78..cd131a8 100644
--- a/AirSeaFluxCode.py
+++ b/AirSeaFluxCode.py
@@ -407,6 +407,7 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None, hin=18, hout=10,
         utmp = np.copy(u10n)
         utmp = np.where(utmp < 0, np.nan, utmp)
         itera[ind] = np.ones(1)*it
+        rho = (0.34838*P)/(tv10n)
         sensible = -rho*cp*usr*tsr
         latent = -rho*lv*usr*qsr
         if (gust[0] == 1):
-- 
GitLab