From e51cf00f0b86e6ec9a470ed7e06f28984d7926df Mon Sep 17 00:00:00 2001
From: sbiri <sbiri@noc.ac.uk>
Date: Mon, 23 Aug 2021 08:46:00 +0100
Subject: [PATCH] default gustiness for YT96 is 0

---
 get_init.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/get_init.py b/get_init.py
index 401e668..feb8336 100644
--- a/get_init.py
+++ b/get_init.py
@@ -82,6 +82,7 @@ def get_init(spd, T, SST, lat, hum, P, Rl, Rs, cskin, skin, wl, gust, L, tol,
         MO length switch
     n : int
         number of iterations
+
     """
     # check if input is correct (type, size, value) and set defaults
     if ((type(spd) != np.ndarray) or (type(T) != np.ndarray) or
@@ -138,10 +139,10 @@ def get_init(spd, T, SST, lat, hum, P, Rl, Rs, cskin, skin, wl, gust, L, tol,
     elif (np.all(gust == None) and (meth == "UA" or meth == "ecmwf" or
                                     meth == "Beljaars")):
         gust = [1, 1, 1000]
-    elif np.all(gust == None):
-        gust = [1, 1.2, 800]
     elif (np.all(gust == None) and (meth == "YT96")):
         gust = [0, 0, 0]
+    elif np.all(gust == None):
+        gust = [1, 1.2, 800]
     elif ((np.size(gust) < 3) and (gust == 0)):
         gust = [0, 0, 0]
     elif (np.size(gust) < 3):
-- 
GitLab