59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
<html>
|
|
<title>Smart Script Class - Sounding Methods</title>
|
|
<body>
|
|
|
|
<h1><a name="Sounding"></a>Sounding Methods</h1>
|
|
<a href="#makeNumericSounding">makeNumericSounding
|
|
(numeric only)</a>
|
|
<br>
|
|
<a href="#getNumericMeanValue">getNumericMeanValue
|
|
(numeric only)</a>
|
|
<br>
|
|
|
|
<hr width="100%">
|
|
|
|
<h2><a name="makeNumericSounding"></a>makeNumericSounding (numeric only)</h2>
|
|
def makeNumericSounding(self, model, element, levels, timeRange,
|
|
noDataError=1,
|
|
mostRecentModel=0):
|
|
<br>
|
|
# Make a numeric sounding for the given
|
|
model, element, and levels
|
|
<br>
|
|
# Example:
|
|
<br>
|
|
# levels =
|
|
["MB850","MB800","MB750","MB700","MB650","MB600"]
|
|
<br>
|
|
# gh_Cube, rh_Cube =
|
|
self.makeNumericSounding(
|
|
<br>
|
|
# model, "rh", levels, GridTimeRange)
|
|
<br>
|
|
#
|
|
<br>
|
|
# Arguments:
|
|
<br>
|
|
#
|
|
<br>
|
|
# The "levels" argument is a Python
|
|
list of levels INCREASING
|
|
<br>
|
|
# in height.
|
|
<br>
|
|
# This method returns two numeric cubes:
|
|
<br>
|
|
# ghCube of geopotential heights for
|
|
the given levels
|
|
<br>
|
|
# valueCube of values for the given
|
|
levels
|
|
<h2><a name="getNumericMeanValue"></a>getNumericMeanValue (numeric only)</h2>
|
|
def getNumericMeanValue(self, model, element, levels, timeRange,
|
|
noDataError=1):
|
|
<br>
|
|
# Return a numeric array of mean values
|
|
for the given element between and including
|
|
<br>
|
|
# the given levels
|
|
|