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
1193dc44
Commit
1193dc44
authored
3 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
Do not output radiation parameters if they are not input, unless the cs/wl is switched on
parent
88663524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
AirSeaFluxCode.py
AirSeaFluxCode.py
+5
-1
No files found.
AirSeaFluxCode.py
View file @
1193dc44
...
...
@@ -525,7 +525,11 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None, hin=18, hout=10,
(
np
.
char
.
find
(
flag
.
astype
(
str
),
'u'
)
==
-
1
)
&
(
np
.
char
.
find
(
flag
.
astype
(
str
),
'q'
)
==
-
1
)),
flag
+
[
","
]
+
[
"o"
],
flag
))
# Do not output radiation parameters if they are not input, unless the
# cs/wl is switched on
if
(((
cskin
==
0
)
and
(
wl
==
0
))
and
(
np
.
all
(
Rl
==
370
)
and
np
.
all
(
Rs
==
150
))):
Rl
,
Rs
,
Rnl
=
Rl
*
np
.
nan
,
Rs
*
np
.
nan
,
Rnl
*
np
.
nan
res
=
np
.
zeros
((
41
,
len
(
spd
)))
res
[
0
][:]
=
tau
...
...
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