diff --git a/get_init.py b/get_init.py index 401e6682d7739159e2f85114697c102b7df9e004..feb833688b28dfc8fd4b832b0b817df7c0102ecf 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):