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
b5960b71
Commit
b5960b71
authored
4 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
line 115, added break if basic inputs are not the appropriate type
parent
3f387bce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
AirSeaFluxCode.py
AirSeaFluxCode.py
+3
-0
No files found.
AirSeaFluxCode.py
View file @
b5960b71
...
...
@@ -112,6 +112,9 @@ def AirSeaFluxCode(spd, T, SST, lat=None, hum=None, P=None,
"""
logging
.
basicConfig
(
filename
=
'flux_calc.log'
,
format
=
'%(asctime)s %(message)s'
,
level
=
logging
.
INFO
)
if
((
type
(
spd
)
!=
np
.
ndarray
)
or
(
type
(
T
)
!=
np
.
ndarray
)
or
(
type
(
SST
)
!=
np
.
ndarray
)):
sys
.
exit
(
"input type of spd, T and SST should be numpy.ndarray"
)
ref_ht
,
tlapse
=
10
,
0.0098
# reference height, lapse rate
h_in
=
get_heights
(
hin
,
len
(
spd
))
# heights of input measurements/fields
h_out
=
get_heights
(
hout
,
1
)
# desired height of output variables
...
...
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