def __init__(self):
        self.label = "Get Variable Statistics Over Dimension"
        self.description = "Calculates statistics for a variable in a " + \
        "multidimensional dataset, such as netCDF or HDF, over a specified" + \
        "dimension. "
        self.canRunInBackground = False
        # Statistics choices
        statistics_numpy = {'MAXIMUM':'max', \
                               'MEAN':'mean', \
                            'MINIMUM':'min', \
                              'RANGE':'ptp', \
                                'STD':'std', \
                                'SUM':'sum', \
                           'VARIANCE':'var'}
        # 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
        self.statistics = [[numpy.ma, statistics_numpy]]
        self.default_statistic = "MEAN"
Define the tool (tool name is the name of the class).
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/tools/get_variable_statistics_over_dimension.py/GetVariableStatisticsOverDimension.__init__