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
6b91d553
Commit
6b91d553
authored
3 years ago
by
Richard Cornes
Browse files
Options
Download
Email Patches
Plain Diff
Fixed bug in CS/WL for beljaars
parent
813c7f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Code/AirSeaFluxCode.py
Code/AirSeaFluxCode.py
+2
-2
No files found.
Code/AirSeaFluxCode.py
View file @
6b91d553
...
...
@@ -54,7 +54,7 @@ class S88:
def
_fix_coolskin_warmlayer
(
self
,
wl
,
cskin
,
skin
,
Rl
,
Rs
):
assert
wl
in
[
0
,
1
],
"wl not valid"
assert
cskin
in
[
0
,
1
],
"cskin not valid"
assert
skin
in
[
"C35"
,
"ecmwf"
or
"Beljaars"
],
"Skin value not valid"
assert
skin
in
[
"C35"
,
"ecmwf"
,
"Beljaars"
],
"Skin value not valid"
if
((
cskin
==
1
or
wl
==
1
)
and
(
np
.
all
(
Rl
==
None
)
or
np
.
all
(
np
.
isnan
(
Rl
)))
and
((
np
.
all
(
Rs
==
None
)
or
np
.
all
(
np
.
isnan
(
Rs
))))):
...
...
@@ -112,7 +112,7 @@ class S88:
elif
(
self
.
skin
==
"ecmwf"
):
self
.
dter
[
ind
]
=
cs_ecmwf
(
self
.
rho
[
ind
],
self
.
Rs
[
ind
],
self
.
Rnl
[
ind
],
self
.
cp
[
ind
],
self
.
lv
[
ind
],
self
.
usr
[
ind
],
self
.
tsr
[
ind
],
self
.
qsr
[
ind
],
self
.
sst
[
ind
],
self
.
lat
[
ind
])
self
.
SST
[
ind
],
self
.
lat
[
ind
])
self
.
dtwl
[
ind
]
=
wl_ecmwf
(
self
.
rho
[
ind
],
self
.
Rs
[
ind
],
self
.
Rnl
[
ind
],
self
.
cp
[
ind
],
self
.
lv
[
ind
],
self
.
usr
[
ind
],
self
.
tsr
[
ind
],
self
.
qsr
[
ind
],
np
.
copy
(
self
.
SST
[
ind
]),
np
.
copy
(
self
.
skt
[
ind
]),
...
...
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