def createGrid(self, model, element, elementType,
numericGrid, timeRange,
descriptiveName=None, timeConstraints=None,
precision=None, minAllowedValue=None,
maxAllowedValue=None, units=None, rateParm=0,
discreteKeys=None, discreteOverlap=None,
discreteAuxDataLength=None, defaultColorTable=None):
# Creates a grid for the
given model and element.
# If the model and element
do not already exist, creates them
on-the-fly
# The descriptiveName,
timeConstraints, precision, minAllowedValue,
# maxAllowedValue, units,
rateParm, discreteKeys, discreteOverlap,
# and discreteAuxDataLength only need to be specified
for the first grid being created. These
# values are ignored for
subsequent calls to createGrid() for
# the same weather element.
def makeHeadlineGrid(self, headlineTable,
fcstGrid,
headlineGrid = None):
# This method defines a
headline grid based on the specified data.
# The headlineTable
parameter
must be a list of tuples each containing
# the threshold for each
headline category and headline label
# Example:
#
headlineTable =[(15.0, 'SmCrftHSADV'),
#
(21.0, 'SmCrftADV'),
#
(34.0, 'GaleWRN'),
#
(47.0, 'StormWRN'),
#
(67.0, 'HurcnFrcWindWRN'),
#
]
# "fsctGrid" is the grid
that defines what headline category should
# be assigned.
"headlineGrid"
is the grid you wish to combine with
# the calculated grid.
This forces a combine even if the GFE is not
# in combine mode.
Omitting "headlineGrid" will cause the calculated
# grid to replace whatever
is in the GFE, no matter what the GFE's
# combine mode. Note that
a side effect of omitting the headline grid
# is that the GFE will end
up in replace mode after the tool completes.