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
8983e893
Commit
8983e893
authored
4 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
use eq. 21 in YT96 to compute cdn for all wind speeds
parent
2ecea0c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
flux_subs.py
flux_subs.py
+3
-8
No files found.
flux_subs.py
View file @
8983e893
...
...
@@ -35,14 +35,9 @@ def cdn_calc(u10n, Ta, Tp, lat, meth="S80"):
meth
==
"C35"
or
meth
==
"Beljaars"
):
cdn
=
cdn_from_roughness
(
u10n
,
Ta
,
None
,
lat
,
meth
)
elif
(
meth
==
"YT96"
):
# for u<3 YT96 convert usr in eq. 21 to cdn
cdn
=
np
.
where
((
u10n
<
6
)
&
(
u10n
>=
3
),
(
0.29
+
3.1
/
u10n
+
7.7
/
np
.
power
(
u10n
,
2
))
*
0.001
,
np
.
where
((
u10n
>=
6
),
(
0.60
+
0.070
*
u10n
)
*
0.001
,
np
.
power
((
0.10038
+
u10n
*
2.17e-3
+
np
.
power
(
u10n
,
2
)
*
2.78e-3
-
np
.
power
(
u10n
,
3
)
*
4.4e-5
)
/
u10n
,
2
)))
# convert usr in eq. 21 to cdn to expand for low wind speeds
cdn
=
np
.
power
((
0.10038
+
u10n
*
2.17e-3
+
np
.
power
(
u10n
,
2
)
*
2.78e-3
-
np
.
power
(
u10n
,
3
)
*
4.4e-5
)
/
u10n
,
2
)
elif
(
meth
==
"LY04"
):
cdn
=
np
.
where
(
u10n
>=
0.5
,
(
0.142
+
(
2.7
/
u10n
)
+
(
u10n
/
13.09
))
*
0.001
,
...
...
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