def __init__(self):
        self.label = "Multidimensional Zonal Statistics"
        self.description = "Calculates zonal statistics over non-surface " + \
        "dimensions for a variable in a multidimensional dataset, such as " + \
        "netCDF or HDF, or other dataset accessible through the OPeNDAP protocol."
        self.canRunInBackground = False
        # Statistic choices
        statistics_numpy = {'MAXIMUM':'max', \
                               'MEAN':'mean', \
                            'MINIMUM':'min', \
                              'RANGE':'ptp', \
                                'STD':'std', \
                                'SUM':'sum', \
                           'VARIANCE':'var'}
        statistics_numpycateg = {'MEDIAN':'median'}
        statistics_categorical = {'MAJORITY':'majority', \
                                  'MINORITY':'minority', \
                                   'VARIETY':'variety'}
        # List of dictionaries of statistics
        # Sublist elements indices:
        #   0: object
        #   1: dictionary defined by 'displayname':'methodname'
        #       where object.methodname() is valid and displayname is what is
        #       shown to the user
        #   2: boolean, indicating whether the given dictionary of statistics
        #       only operates on integer datatypes
        self.statistics = [[numpy.ma, statistics_numpy, False], \
                           [self, statistics_categorical, True], \
                           [numpy.ma, statistics_numpycateg, True]]
        self.default_statistic = 'MEAN'

    # ---------------------------------------------------------
    # Statistics
Defines the tool.
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/tools/multidimensional_zonal_statistics.py/MultidimensionalZonalStatistics.__init__