Neighborhood Statistics

Usage Instruction

Neighborhood statistics is to count the image elements within the neighborhood of each image element value in the dataset, i.e., to take the raster to be calculated as the center and extend a certain range around it, and to perform statistical calculation based on the raster data within these neighborhoods, and to use the result of the operation as the value of the image element. The statistical methods currently provided include: maximum value, minimum value, plurality, minimum number, etc. Commonly used neighborhood range types include: rectangle, circle, circle, and sector, etc.

The following diagram shows the neighborhood statistics. The cell in the second row and third column of the diagram is determined by the values of all image elements in the neighborhood of the 3*3 (rectangular neighborhood) obtained by diffusion around it.

SuperMap Neighborhood Statistics provides 10 statistical modes, which are as follows:

  • Min: The minimum value of the raster image value in the lookup area.
  • Maximum: Find the maximum value of the raster pixel values in the region.
  • Average: Calculates the average of all raster pixel values in the region.
  • Standard deviation: Calculates the standard deviation of all raster pixel values in the region.
  • Sum: Calculates the sum of raster pixel values in the region.
  • Type: Count the number of raster pixel values in the region.
  • Value Range: Calculates the range of raster pixel values in the region, i.e., the maximum value minus the minimum value in the region.
  • Plural: Count the highest frequency of raster pixel values in the region.
  • Minimal: The value with the lowest frequency.
  • Median: The value in the middle of the raster pixel values in the region, in descending order.

Parameter Instruction

Parameter Name Default Value Parameter Definition Parameter Type
Source Raster Data   Source Raster Data DatasetGrid
Target Datasource   The datasource where the specified dataset of stored results is located Datasource
Resulting Dataset Name   Name of the specified result dataset String
Domain Type Rectangle Select the shape of the neighborhood statistics. Currently, 4 types of neighborhood shapes are supported, including rectangle, circle, circle and sector. After selecting the shape to be used, you also need to set the specific shape size, for example, for rectangle, you need to set the width and height of the rectangle; for sector, you need to set the radius, start angle and end angle of the sector. NeighbourShapeType
Types of units for neighborhood statistics Raster Coordinates Select the type of units to use when performing statistics. Currently, 2 unit types are supported, including raster coordinates (CELL) and geographic coordinates (MAP). Raster coordinates means using the number of raster rows as the neighborhood units; geographic coordinates means using the map's coordinate system units as the neighborhood units. NeighbourUnitType
Statistical Methods for Neighborhood Analysis Minimum Value Select the statistical mode to use, there are 10 types to choose from. These include minimum, maximum, mean, standard deviation, sum, kind, value range, plural, minimum and median. GridStatisticsMode
Whether to ignore null values false When ignore null data is selected, statistics will be performed only for images with values in the raster data; otherwise, statistics will be performed for images without values. Boolean
Inner Diameter
(Optional)
0.0 The inner diameter of the annular neighborhood, which can be set when the neighborhood type is annular Double
Outer Diameter
(Optional)
0.0 The outer diameter of the ring neighborhood, which can be set when the neighborhood type is ring Double
Wide
(Optional)
0.0 The width/number of columns of the rectangle, which can be set when the neighbor type is rectangle Double
Hight
(Optional)
0.0 Height/row of the rectangle, can be set when the neighbor type is rectangle Double
Radius
(Optional)
0.0 The radius of the circle, this parameter can be set when the neighborhood type is circle or sector Double
Starting Angle
(Optional)
0.0 The starting angle of the sector neighborhood, which can be set when the neighborhood type is sector Double
Termination Angle
(Optional)
0.0 The termination angle of the sector neighborhood, the parameter can be set when the neighborhood type is sector Double

Output Result

Parameter Name Parameter Definition Parameter Type
Resulting Raster Dataset Resulting Raster Dataset DatasetGrid