当前位置:网站首页>ArcGIS application (19) ArcGIS statistical analysis and calculation of maximum, minimum and average values of multi band images

ArcGIS application (19) ArcGIS statistical analysis and calculation of maximum, minimum and average values of multi band images

2022-06-10 05:51:00 Air spin basketball

1. Calculation purpose

Calculate the frequency of , The maximum value of all band values at the corresponding position of each pixel , Parameter information such as minimum and average values .

Use scenarios , For example, calculate the maximum value of remote sensing index of time series . If there are three times NDVI Index , We need to calculate the maximum value of three times , It is necessary to calculate the maximum values of three phases at each pixel position .

2. Implementation method

2.1 Using tools

Use Arcgis Calculated by statistical analysis tools , turn on the tool box :

open Spatial Analyst Tools Medium zonal Tools :

Here's the picture :

  Use ZonalStatistics Tools for statistical analysis . Click the tool , The interface is as follows :

  Parameter description ( Original English description ):

Input raster or feature zone data

Dataset that defines the zones. This parameter is used to define the statistical area , We can usually choose administrative regions for statistics , Here we select the original image to be counted , That is, statistics of extreme value and other information within the range of the original image .

The zones can be defined by an integer raster or a feature layer.

Zone field

Field that holds the values that define each zone.

It can be an integer or a string field of the zone dataset.

Input value raster

Raster that contains the values on which to calculate a statistic. 

Output raster

The output zonal statistics raster.

Statistics type (optional)

Statistic type to be calculated.

  • MEAN — Calculates the average of all cells in the value raster that belong to the same zone as the output cell.
  • MAJORITY — Determines the value that occurs most often of all cells in the value raster that belong to the same zone as the output cell.
  • MAXIMUM — Determines the largest value of all cells in the value raster that belong to the same zone as the output cell.
  • MEDIAN — Determines the median value of all cells in the value raster that belong to the same zone as the output cell.
  • MINIMUM — Determines the smallest value of all cells in the value raster that belong to the same zone as the output cell.
  • MINORITY — Determines the value that occurs least often of all cells in the value raster that belong to the same zone as the output cell.
  • RANGE — Calculates the difference between the largest and smallest value of all cells in the value raster that belong to the same zone as the output cell.
  • STD — Calculates the standard deviation of all cells in the value raster that belong to the same zone as the output cell.
  • SUM — Calculates the total value of all cells in the value raster that belong to the same zone as the output cell.
  • VARIETY — Calculates the number of unique values for all cells in the value raster that belong to the same zone as the output cell.

Ignore NoData in calculations (optional)

Denotes whether NoData values in the Value input will influence the results of the zone that they fall within.

  • Checked—Within any particular zone, only cells that have a value in the input Value raster will be used in determining the output value for that zone. NoData cells in the Value raster will be ignored in the statistic calculation.
  • Unchecked—Within any particular zone, if any NoData cells exist in the Value raster it is deemed that there is insufficient information to perform statistical calculations for all the cells in that zone; therefore, the entire zone will receive the NoData value on the output raster.

2.2 Parameter setting and calculation

Open image data ,  Select input parameter information in the tool panel :

Zone Field Default here Value Will report a mistake , No specific reason has been found yet .

  Report errors :

ERROR 010123: Could not get field name.
Failed to execute (ZonalStatistics).
Failed at Sun May 29 22:50:41 2022 (Elapsed Time: 0.06 seconds)

  Change the change option to count Recalculate , The calculation results can be obtained ( Original diagram and result diagram ), The result is a single band image :

 

 3. Result analysis

Use Identity Tools view pixel attributes and find , Only the maximum values of the first three bands are calculated , Not the maximum of all bands . This is the limitation of this tool , It may be related to the software version , Previous versions targeted raster Data calculation can only calculate the first three bands . The reasons will be further analyzed later .

原网站

版权声明
本文为[Air spin basketball]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100541059616.html