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
85cd62f3
Commit
85cd62f3
authored
4 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
Update AirSeaFluxCode.py
parent
4288962a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AirSeaFluxCode.py
AirSeaFluxCode.py
+5
-5
No files found.
AirSeaFluxCode.py
View file @
85cd62f3
...
...
@@ -403,14 +403,14 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None, hin=18, hout=10,
zo
=
ref_ht
/
np
.
exp
(
kappa
/
np
.
sqrt
(
cd10n
))
# adjust neutral cdn at any output height
cdn
=
np
.
power
(
kappa
/
np
.
log
(
hout
/
zo
),
2
)
cd
=
cd_calc
(
cdn
,
h_
in
[
0
],
h_out
[
0
],
psim
)
# solve for zot, zoq from ct10n, cq10n
cd
=
cd_calc
(
cdn
,
h_
out
[
0
],
h_out
[
0
],
psim
)
# solve for zot, zoq from ct10n, cq10n
zot
=
ref_ht
/
(
np
.
exp
(
kappa
**
2
/
(
ct10n
*
np
.
log
(
ref_ht
/
zo
))))
zoq
=
ref_ht
/
(
np
.
exp
(
kappa
**
2
/
(
cq10n
*
np
.
log
(
ref_ht
/
zo
))))
# adjust neutral ctn, cqn at any output height
ctn
=
np
.
power
(
kappa
,
2
)
/
(
np
.
log
(
hout
/
zo
)
*
np
.
log
(
hout
/
zot
))
cqn
=
np
.
power
(
kappa
,
2
)
/
(
np
.
log
(
hout
/
zo
)
*
np
.
log
(
hout
/
zoq
))
ct
,
cq
=
ctcq_calc
(
cdn
,
cd
,
ctn
,
cqn
,
h_
in
[
1
],
h_
in
[
2
],
h_out
[
1
],
ctn
=
np
.
power
(
kappa
,
2
)
/
(
np
.
log
(
h
_
out
[
0
]
/
zo
)
*
np
.
log
(
h
_
out
[
1
]
/
zot
))
cqn
=
np
.
power
(
kappa
,
2
)
/
(
np
.
log
(
h
_
out
[
0
]
/
zo
)
*
np
.
log
(
h
_
out
[
2
]
/
zoq
))
ct
,
cq
=
ctcq_calc
(
cdn
,
cd
,
ctn
,
cqn
,
h_
out
[
1
],
h_
out
[
2
],
h_out
[
1
],
psit
,
psiq
)
uref
=
(
spd
-
usr
/
kappa
*
(
np
.
log
(
h_in
[
0
]
/
h_out
[
0
])
-
psim
+
psim_calc
(
h_out
[
0
]
/
monob
,
meth
)))
...
...
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