Commit f57409ed authored by sbiri's avatar sbiri
Browse files

Update AirSeaFluxCode/src/AirSeaFluxCode.py,...

Update AirSeaFluxCode/src/AirSeaFluxCode.py, AirSeaFluxCode/src/AirSeaFluxCode_dev.py, AirSeaFluxCode/src/util_subs.py files
parent ffa9b609
No related merge requests found
...@@ -416,7 +416,6 @@ class S88: ...@@ -416,7 +416,6 @@ class S88:
self.GustFact = self.wind/self.spd self.GustFact = self.wind/self.spd
self.usr_gust = np.copy(self.usr) self.usr_gust = np.copy(self.usr)
self.usr_nogust = self.usr/self.GFo
# include lapse rate adjustment as theta is well-mixed # include lapse rate adjustment as theta is well-mixed
self.tref = self.theta-self.tlapse*self.h_out[1]-self.tsr/kappa * \ self.tref = self.theta-self.tlapse*self.h_out[1]-self.tsr/kappa * \
(np.log(self.h_in[1]/self.h_out[1])-self.psit + (np.log(self.h_in[1]/self.h_out[1])-self.psit +
...@@ -719,15 +718,13 @@ def AirSeaFluxCode(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None, ...@@ -719,15 +718,13 @@ def AirSeaFluxCode(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None,
set 1 to keep points set 1 to keep points
out_var : str out_var : str
optional. user can define pandas array of variables to be output. optional. user can define pandas array of variables to be output.
the default full pandas array is : the default full pandas array, with cskin=0 gust=0, is :
out_var = ("tau", "sensible", "latent", "monob", "cd", "cd10n", out_var = ("tau", "sensible", "latent", "monob", "cd", "cd10n",
"ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr", "ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr",
"usr", "psim", "psit", "psiq", "psim_ref", "psit_ref", "usr", "psim", "psit", "psiq", "psim_ref", "psit_ref",
"psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq", "psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq",
"uref", "tref", "qref", "dter", "dqer", "dtwl", "tkt", "uref", "tref", "qref", "qair", "qsea", "Rb", "rh",
"qair", "qsea", "Rl", "Rs", "Rnl", "ug", "usrGF", "rho", "cp", "lv", "theta", "itera")
"GustFact", "Rb", "rh", "rho", "cp", "lv", "theta",
"itera")
the "limited" pandas array is: the "limited" pandas array is:
out_var = ("tau", "sensible", "latent", "uref", "tref", "qref") out_var = ("tau", "sensible", "latent", "uref", "tref", "qref")
the user can define a custom pandas array of variables to output. the user can define a custom pandas array of variables to output.
...@@ -778,7 +775,7 @@ def AirSeaFluxCode(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None, ...@@ -778,7 +775,7 @@ def AirSeaFluxCode(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None,
37. downward shortwave radiation (Rs) 37. downward shortwave radiation (Rs)
38. downward net longwave radiation (Rnl) 38. downward net longwave radiation (Rnl)
39. gust wind speed (ug) 39. gust wind speed (ug)
40. star wind speed/GustFact (usrGF) 40. star wind speed with gust (usr_gust)
41. Gustiness Factor (GustFact) 41. Gustiness Factor (GustFact)
42. Bulk Richardson number (Rb) 42. Bulk Richardson number (Rb)
43. relative humidity (rh) 43. relative humidity (rh)
......
...@@ -426,7 +426,6 @@ class S88: ...@@ -426,7 +426,6 @@ class S88:
self.GustFact = self.wind/self.spd self.GustFact = self.wind/self.spd
self.usr_gust = np.copy(self.usr) self.usr_gust = np.copy(self.usr)
self.usr_nogust = self.usr/self.GFo
# include lapse rate adjustment as theta is well-mixed # include lapse rate adjustment as theta is well-mixed
self.tref = self.theta-self.tlapse*self.h_out[1]-self.tsr/kappa * \ self.tref = self.theta-self.tlapse*self.h_out[1]-self.tsr/kappa * \
(np.log(self.h_in[1]/self.h_out[1])-self.psit + (np.log(self.h_in[1]/self.h_out[1])-self.psit +
...@@ -795,7 +794,7 @@ def AirSeaFluxCode_dev(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None, ...@@ -795,7 +794,7 @@ def AirSeaFluxCode_dev(spd, T, SST, SST_fl, meth, lat=None, hum=None, P=None,
37. downward shortwave radiation (Rs) 37. downward shortwave radiation (Rs)
38. downward net longwave radiation (Rnl) 38. downward net longwave radiation (Rnl)
39. gust wind speed (ug) 39. gust wind speed (ug)
40. star wind speed/GustFact (usrGF) 40. star wind with gust (usr_gust)
41. Gustiness Factor (GustFact) 41. Gustiness Factor (GustFact)
42. Bulk Richardson number (Rb) 42. Bulk Richardson number (Rb)
43. relative humidity (rh) 43. relative humidity (rh)
......
...@@ -191,7 +191,7 @@ def get_outvars(out_var, cskin, gust): ...@@ -191,7 +191,7 @@ def get_outvars(out_var, cskin, gust):
elif cskin == 0 and gust[0] != 0: # skin OFF and gust ON elif cskin == 0 and gust[0] != 0: # skin OFF and gust ON
res_vars = ("tau", "sensible", "latent", "monob", "cd", "cd10n", res_vars = ("tau", "sensible", "latent", "monob", "cd", "cd10n",
"ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr", "ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr",
"usr", "usr_gust", "usr_nogust","ug", "GustFact", "usr_gust", "ug", "GustFact",
"psim", "psit", "psiq", "psim_ref", "psit_ref", "psim", "psit", "psiq", "psim_ref", "psit_ref",
"psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq", "psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq",
"uref", "tref", "qref", "qair", "qsea", "Rb", "rh", "uref", "tref", "qref", "qair", "qsea", "Rb", "rh",
...@@ -206,7 +206,7 @@ def get_outvars(out_var, cskin, gust): ...@@ -206,7 +206,7 @@ def get_outvars(out_var, cskin, gust):
else: else:
res_vars = ("tau", "sensible", "latent", "monob", "cd", "cd10n", res_vars = ("tau", "sensible", "latent", "monob", "cd", "cd10n",
"ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr", "ct", "ct10n", "cq", "cq10n", "tsrv", "tsr", "qsr",
"usr", "usr_gust", "usr_nogust","ug", "GustFact", "usr_gust", "ug", "GustFact",
"psim", "psit", "psiq", "psim_ref", "psit_ref", "psim", "psit", "psiq", "psim_ref", "psit_ref",
"psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq", "psiq_ref", "u10n", "t10n", "q10n", "zo", "zot", "zoq",
"uref", "tref", "qref", "dter", "dqer", "dtwl", "tkt", "uref", "tref", "qref", "dter", "dqer", "dtwl", "tkt",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment