Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NOCSurfaceProcesses
AirSeaFluxCode
Commits
e51cf00f
Commit
e51cf00f
authored
3 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
default gustiness for YT96 is 0
parent
6f63e1bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
get_init.py
get_init.py
+3
-2
No files found.
get_init.py
View file @
e51cf00f
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment