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
6f4e33b4
Commit
6f4e33b4
authored
3 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
output non-converged, -ve values of u10n/q10n if out=1
add warning for the user
parent
3223e41b
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 @
6f4e33b4
...
...
@@ -76,7 +76,8 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None, hin=18, hout=10,
n : int
number of iterations (defautl = 10)
out : int
set 0 to set points that have not converged to missing (default)
set 0 to set points that have not converged, negative values of
u10n and q10n to missing (default)
set 1 to keep points
L : str
Monin-Obukhov length definition options
...
...
@@ -592,6 +593,9 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None, hin=18, hout=10,
res
[
i
][:])
for
i
in
range
(
41
)])
res
=
np
.
asarray
([
np
.
where
(
u10n
<
0
,
np
.
nan
,
res
[
i
][:])
for
i
in
range
(
41
)])
elif
(
out
==
1
):
print
(
"Warning: the output will contain values for points that have"
" not converged and negative values (if any) for u10n/q10n"
)
# output with pandas
resAll
=
pd
.
DataFrame
(
data
=
res
.
T
,
index
=
range
(
len
(
spd
)),
columns
=
[
"tau"
,
"shf"
,
"lhf"
,
"L"
,
"cd"
,
"cdn"
,
"ct"
,
...
...
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