A spatial analysis method for raster data integrating zonal statistics and neighborhood statistics

By integrating partition statistics and neighborhood statistics, a unique value environmental feature partition raster is generated and local window statistics are performed, which solves the problem that the existing technology cannot consider spatial differentiation and dependence at the same time, and achieves a more scientific and accurate vegetation analysis. Restoration potential assessment.

CN118113802BActive Publication Date: 2024-08-27CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410242735.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-08-27
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

The existing technology lacks a spatial analysis method that can comprehensively integrate partition statistics and neighborhood statistics, and cannot simultaneously consider the differences in geographical environments and the spatial dependence of data.

Method used

This paper proposes a raster data spatial analysis method that integrates zoning statistics and neighborhood statistics. By selecting the raster data to be analyzed with the same map parameters, and using the ArcGIS reclassification tool, the environmental feature raster is converted into reclassified raster data. Spatial overlay analysis and environmental feature encoding generate a unique value environmental feature partition raster layer, and perform calculations based on neighborhood window parameters and statistic types to output the raster layer.

Benefits of technology

It realizes zoning statistics based on the classification of current pixels in a local window, overcomes the limitations of traditional methods, can cope with spatial differentiation and dependence at the same time, and improves the scientificity and accuracy of vegetation restoration potential evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118113802B
    Figure CN118113802B
Patent Text Reader

Abstract

The present invention discloses a raster data spatial analysis method integrating zoning statistics and neighborhood statistics, comprising: selecting raster data to be analyzed with the same map parameters, including a target statistical source data layer and each environmental variable layer; reclassifying each environmental variable layer to construct a corresponding reclassification layer; spatially superimposing and encoding environmental characteristics on the reclassification layer to construct a unique environmental characteristic unit zoning layer; determining statistical parameters according to statistical purposes and requirements, the statistical parameters including sliding window parameters and statistical type parameters; constructing an output raster data layer with the same map parameters as the raster data to be analyzed; traversing each pixel on the target statistical source data layer based on a sliding window, calculating the statistical data of the pixel according to the zoning layer and the statistical parameters, and writing the result into the output raster data layer. The present invention effectively integrates and integrates zoning statistics and neighborhood statistics to meet statistical requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of development and application of spatial statistical analysis methods, and in particular relates to a raster data spatial analysis method integrating partition statistics and neighborhood statistics. Background Art

[0002] Spatial statistical analysis is a set of methods developed on the basis of traditional statistical theory with the emergence of GIS. Spatial statistics increases the consideration of spatial location information and focuses on the spatial heterogeneity and dependence of statistical variables, thus overcoming the problem that the classical statistical model does not meet the basic assumptions when solving social, economic and natural geographical environmental problems, and broadens the scope of application of statistical methods. In recent years, with the rapid development and widespread popularization of geospatial data acquisition technology, a large amount of data with spatial location information has been generated. These data not only provide rich resources for solving practical problems and promoting scientific research, but also put forward new demands for the innovation of spatial analysis technology and methods.

[0003] Zonal statistics and neighborhood statistics are two important methods for spatial statistical analysis of raster data. Zonal statistics is a process of performing statistical calculations on the grid cells located in each partition or intersecting with the partition in a specified partition data set according to a certain statistical type, and then outputting the results. Its statistical types include calculating the average, maximum, minimum, sum and other indicators. Neighborhood statistics, also known as window statistics, is centered on each pixel in the value raster data, and according to the set analysis window, it extends a certain range around it, and performs statistical calculations on the raster data within the window range based on a certain statistical type. Finally, the calculation results are used as the pixel values ​​of the output raster layer. Its statistical type is basically the same as zonal statistics. At present, mainstream geographic information system (GIS) software provides these two types of spatial statistical functions, such as ArcGIS's FocalStatistics and Zonal Statistics tool modules for zonal statistics and neighborhood statistics, respectively.

[0004] Zonal statistics and neighborhood statistics are two common spatial analysis methods, each solving different problems in spatial data. Zonal statistics mainly solves the problem of spatial heterogeneity. For example, terrain factors significantly affect the growth of vegetation. By introducing environmental characteristic variables such as slope and aspect, the difference in vegetation coverage under different terrain conditions is observed. Neighborhood statistics focuses on spatial position dependence. For example, even soils of the same texture will show differences in geochemical element content due to different locations, but the closer the distance, the smaller the difference, that is, the attribute depends on the spatial position. However, in the real world, spatial heterogeneity and spatial dependence often exist at the same time, and traditional zonal statistics and neighborhood statistics are each limited to solving one of the problems. At present, there is a lack of a spatial analysis method that fully integrates zonal statistics and neighborhood statistics, while taking into account the differences in geographical environment and the spatial dependence of data. The new method proposed in the present invention fills this gap and provides a new way to deal with complex spatial relationships in the real world. Summary of the invention

[0005] To solve the above technical problems, the present invention proposes a raster data spatial analysis method that integrates zonal statistics and neighborhood statistics. By integrating zonal statistics and neighborhood statistics, the existing spatial statistical method system is improved to a certain extent, thereby providing reliable method and tool support for exploring and refining geographical laws with spatial heterogeneity and dependence characteristics.

[0006] To achieve the above object, the present invention provides a raster data spatial analysis method integrating zonal statistics and neighborhood statistics, comprising:

[0007] Select the raster data to be analyzed with the same map parameters, including the value raster and the raster of each environmental element;

[0008] Use ArcGIS reclassification tools to convert each environmental element raster into the corresponding reclassified raster data;

[0009] Spatial overlay analysis and environmental feature coding are performed on each reclassified raster to generate a unique value environmental feature partition raster layer; the environmental feature coding method is as follows:

[0010] Features environmental element grids, namely , the corresponding reclassified grid is , and the corresponding number of reclassified categories and digits are and , It is expressed as:

[0011]

[0012] in, Pick , represents the logarithm with base 10, Indicates rounding down;

[0013] For the current pixel, the environmental characteristic code is defined as:

[0014]

[0015] in, Represents a reclassified raster The corresponding code, From (1) we can obtain:

[0016] Using raster operations, unique value environmental features are partitioned into grids Expressed as:

[0017]

[0018] in, It means to spatially overlay each reclassified raster and obtain the pixel value, and finally calculate the environmental feature code according to formula (2);

[0019] Determine statistical parameters according to statistical purposes and requirements, wherein the statistical parameters include neighborhood window parameters and statistical quantity type parameters;

[0020] Constructing an output raster layer having the same map parameters as the raster data to be analyzed;

[0021] Traversing each pixel on the value grid, based on the neighborhood window parameters, determining the neighborhood pixel set corresponding to the pixel; based on the partitioned grid layer, obtaining the similar environment feature pixel set; performing an intersection operation on the determined neighborhood pixel set and the similar environment feature pixel set to obtain the similar environment feature pixel set in the neighborhood; using the similar environment feature pixel set in the neighborhood as a statistical sample point, performing calculation according to the statistical quantity type, and writing the calculation result into the output grid layer;

[0022] Using raster operations, the output raster layer is calculated as follows:

[0023]

[0024] in, , and They represent the unique value environmental feature partition raster, value raster and output raster respectively; is the neighborhood window, is the statistic type parameter.

[0025] Technical effects of the present invention:

[0026] (1) The present invention proposes a method for spatial analysis of raster data. The method cleverly integrates zonal statistics and neighborhood statistics, and implements zonal statistics in a local window according to the classification of the current pixel. This overcomes the limitation of existing neighborhood statistics methods that can only perform statistical analysis based on regular windows, and provides reliable methods and tool support for exploring and refining geographical laws. In essence, the new method proposed by the present invention is a fusion and integration of existing zonal statistics and neighborhood statistics. Traditional zonal statistics and neighborhood statistics are regarded as special cases of the new method: when the neighborhood window is considered to be infinite, the new method is equivalent to zonal statistics; when the number of partitions is 1, the new method degenerates into neighborhood statistics.

[0027] (2) The present invention effectively integrates and fuses zoning statistics and neighborhood statistics, and can simultaneously deal with spatial heterogeneity and dependence. For example, vegetation growth is highly dependent on habitat conditions. For the current location of vegetation destruction, its maximum vegetation coverage potential depends on the maximum value that can be achieved under similar habitat conditions. Traditional evaluation models can only take into account "similar environmental characteristics", that is, to construct similar environmental conditions in the entire study area. However, in addition to depending on clear and expressed environmental conditions, vegetation growth also has a high degree of spatial dependence. The present invention supports the construction of similar environmental conditions based on local windows, while taking into account "spatial proximity" and "similar environmental characteristics", thereby improving the scientificity and accuracy of vegetation restoration potential evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0029] Figure 1 A schematic diagram of a flow chart of a raster data spatial analysis method integrating zonal statistics and neighborhood statistics according to an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of generating a unique value environmental feature partition grid according to an embodiment of the present invention;

[0031] Figure 3 The pixel of the embodiment of the present invention Schematic diagram of obtaining a set of similar environmental feature pixels in the neighborhood;

[0032] Figure 4 A schematic diagram of an output grid obtained by calculation based on a value grid and a unique value environmental feature partition grid according to an embodiment of the present invention;

[0033] Figure 5 Reclassify the raster for slope;

[0034] Figure 6 is the aspect reclassification raster;

[0035] Figure 7 Reclassify the raster for soils;

[0036] Figure 8 partitioning grids for similar habitats;

[0037] Fig. 9 This is the distribution map of the theoretical maximum potential for vegetation restoration. DETAILED DESCRIPTION

[0038] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0039] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0040] like Figure 1 As shown, this embodiment provides a raster data spatial analysis method integrating zoning statistics and neighborhood statistics, including the following steps:

[0041] Step 1: Select the raster data to be analyzed with the same map parameters, including the value raster and the environmental element raster;

[0042] Step 2: Reclassify each environmental element raster, and then generate a unique value environmental feature partition raster layer through spatial overlay analysis and environmental feature coding;

[0043] Step 3: Determine the statistical parameters according to the statistical purpose and requirements. The statistical parameters include neighborhood window parameters (including shape and size) and statistical type parameters (such as maximum value, minimum value, percentile, etc.);

[0044] Step 4: Construct an output raster layer with the same map parameters as the raster data to be analyzed;

[0045] Step 5: Traverse each pixel on the value grid. First, determine the neighborhood pixel set based on the neighborhood window parameters, and obtain the similar environmental feature pixel set based on the partitioned raster layer generated in step 2; then, use the similar environmental feature pixel set in the neighborhood as statistical sample points, and calculate according to the statistical type determined in step 3; finally, write the calculation results into the output raster layer constructed in step 4.

[0046] Furthermore, the steps for constructing the unique value environmental feature partition raster layer in step 2 are as follows:

[0047] Step 2.1: Use ArcGIS reclassification tools to convert each environmental element raster into the corresponding reclassified raster data;

[0048] Step 2.2: Perform spatial overlay analysis and environmental feature coding on each reclassified raster to generate a unique value environmental feature partition raster layer.

[0049] This example uses the environmental element grid Taking the unique value environmental feature partition raster as an example The construction process.

[0050] First, use ArcGIS Reclassify tool to convert the environmental feature raster Convert to the corresponding reclassified raster ;

[0051] Next, reclassify the raster Perform spatial overlay analysis and environmental feature coding to generate unique value environmental feature partition grids .

[0052] Furthermore, the environmental feature encoding method in step 2.2 is as follows:

[0053] Features environmental element grids, namely , the corresponding reclassification layer is , and the corresponding number of reclassified categories and digits are and ,but The expression is as follows:

[0054]

[0055] in, Pick , represents the logarithm with base 10, Indicates rounding down.

[0056] For the current pixel, its environmental characteristic code is defined as:

[0057]

[0058] in, Represents the reclassified layer The corresponding code, It is obtained by formula (1). It should be noted that is the number of digits corresponding to the maximum classification value. If the current pixel classification value is less than If the number of digits is reduced, you need to add zeros in front of the classification value to fill the digits. .

[0059] This example reclassifies the raster The corresponding number of reclassified categories They are 18, 9, and 110 respectively. According to formula (1), the number of digits is They are 2, 1, and 3 respectively. Pixels at location Take the following as an example to explain the process of constructing the environment signature code:

[0060] From the definition formula of the pixel environment characteristic code, that is, formula (2), we can know that in this example, the pixel environment characteristic code consists of 7 digits. Therefore, first, the pixel environment characteristic code is defined as: Then, according to the pixels in each reclassified grid, The value of determines the final environmental characteristic code. In this example, the reclassified raster exist The pixel values ​​of the locations are 16, 9, and 6 respectively. According to the definition of the environmental characteristic code, .

[0061] like Figure 2 Shown is the unique value environmental feature partition grid of this example Schematic diagram of the generation of .

[0062] Furthermore, raster operations are used to partition the unique value environmental feature layers. Expressed as:

[0063]

[0064] in, It means to spatially overlay the reclassified layers and obtain the original layer attributes, and finally calculate the unique value environmental feature code according to formula (2).

[0065] The unique value environmental feature partition grid of this example is expressed as:

[0066]

[0067] Furthermore, the statistical method for each pixel of the median raster layer in step 5 includes the following steps:

[0068] Step 5.1: Based on the neighborhood window parameters set in step 3, determine the neighborhood pixel set corresponding to the pixel;

[0069] Step 5.2: Based on the partitioned raster layer generated in step 2, obtain a set of pixels with similar environmental characteristics;

[0070] Step 5.3: performing an intersection operation on the neighborhood pixel set determined in step 5.1 and the similar environmental feature pixel set determined in step 5.2 to obtain the similar environmental feature pixel set in the neighborhood;

[0071] Step 5.4: Take the set of similar environmental characteristic pixels in the neighborhood obtained in step 5.3 as statistical sample points, perform calculations according to the statistical type set in step 3, and write the calculation results into the output raster layer constructed in step 4.

[0072] The neighborhood window set in this example for The square window is 5 times the side length of the pixel. The statistic type is: , which is the statistical maximum value. The value grid is .

[0073] By coordinates Pixels at location Take an example to illustrate the statistical process:

[0074] First, according to the setting of the neighborhood window, the neighborhood pixel set corresponding to the current pixel is: ,correspond Figure 3 The pixels in the red bold frame in a, where the pixels marked with a black bold frame are the current pixels;

[0075] Then, based on the partitioned raster layer generated in step 2 , filter out similar environmental feature pixel sets , that is, the environmental feature code is Those pixels constitute, corresponding to Figure 3 The pixels in the brown bold border in b;

[0076] Next, the neighborhood pixel set and the similar environment feature pixel set obtained above are intersected to obtain the similar environment feature pixel set in the neighborhood ,correspond Figure 3 The pixels marked with a blue bold border in c;

[0077] Finally, the set of similar environmental feature pixels in the neighborhood For statistical sample points, according to the set statistical type The maximum value is calculated to be 7, and 7 is used as the pixel in the output raster layer. The value of is written to the layer.

[0078] After traversing all pixels, the final output raster layer is obtained, such as Figure 4 shown.

[0079] Furthermore, using the raster operation form, the calculation expression of the output raster layer is:

[0080]

[0081] in, , and They represent the unique value environmental feature partition raster, value raster and output raster respectively; is the neighborhood window, is the statistic type parameter.

[0082] The output raster layer of this example is expressed as:

[0083]

[0084] The present invention mainly develops a new spatial statistical method based on the basic characteristic of the coexistence of spatial heterogeneity and dependence in the real world.

[0085] In this embodiment, the selected study area covers the land area of ​​China, and the data include raster data such as vegetation coverage, slope, aspect and soil, with a spatial resolution of 250 meters × 250 meters and a map size of 17241 rows × 20702 columns.

[0086] First, the original slope grid data was reclassified according to the five classification standards of 0°-5°, 5°-10°, 10°-15°, 15°-20°, and above 20°. The reclassified grid cell values ​​were 1, 2, ..., 5. Figure 5 The figure shows part of the slope reclassification grid data. The original slope raster data is reclassified according to the 9 classification standards of north, northeast, east, southeast, south, southwest, west, northwest and flat land. The reclassified grid cell values ​​are 1, 2, ..., 9. Figure 6 The data shown are part of the reclassified grid data of the slope aspect. The soil itself is classified data. There are 82 types of soil in the study area, and the corresponding grid cell values ​​after reclassification are 1, 2, ..., 82. Figure 7 Shown is part of the soil reclassification raster data.

[0087] Then, the reclassified slope, aspect and soil type grids were spatially overlaid and coded with environmental characteristics to generate similar habitat partition grids. According to the definition of environmental characteristic code, the pixel value of the partition grid consists of 5 digits, such as Figure 8 shown.

[0088] Next, set the neighborhood window to The square window of traverses the vegetation coverage raster data. This example is used to calculate the theoretical maximum potential of vegetation restoration, so the statistic type should be: , which is the statistical maximum value.

[0089] Finally, traverse each pixel of the vegetation coverage grid, filter out the set of similar habitat pixels in the neighborhood window, and then calculate the theoretical maximum potential of vegetation restoration for the current pixel, that is, the statistical maximum value, and write the calculation result into the output grid layer. After completing the entire traversal process, the final output of the distribution map of the theoretical maximum potential of vegetation restoration is obtained, as shown in Fig. 9 shown.

[0090] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A raster data spatial analysis method integrating zonal statistics and neighborhood statistics, characterized in that: include: Select the raster data to be analyzed with the same map parameters, including the value raster and the raster of each environmental element; Use ArcGIS reclassification tools to convert each environmental element raster into the corresponding reclassified raster data; Spatial overlay analysis and environmental feature coding are performed on each reclassified raster to generate a unique value environmental feature partition raster layer; the environmental feature coding method is as follows: Features environmental element grids, namely , the corresponding reclassified grid is , and the corresponding number of reclassified categories and digits are and , It is expressed as: in, Pick , represents the logarithm with base 10, Indicates rounding down; For the current pixel, the environmental characteristic code is defined as: in, Represents a reclassified raster The corresponding code, From (1) we can obtain: Using raster operations, unique value environmental features are partitioned into grids Expressed as: in, It means to spatially overlay each reclassified raster and obtain the pixel value, and finally calculate the environmental feature code according to formula (2); Determine statistical parameters according to statistical purposes and requirements, wherein the statistical parameters include neighborhood window parameters and statistical quantity type parameters; Constructing an output raster layer having the same map parameters as the raster data to be analyzed; Traversing each pixel on the value grid, based on the neighborhood window parameters, determining the neighborhood pixel set corresponding to the pixel; based on the partitioned grid layer, obtaining the similar environment feature pixel set; performing an intersection operation on the determined neighborhood pixel set and the similar environment feature pixel set to obtain the similar environment feature pixel set in the neighborhood; using the similar environment feature pixel set in the neighborhood as a statistical sample point, performing calculation according to the statistical quantity type, and writing the calculation result into the output grid layer; Using raster operations, the output raster layer is calculated as follows: in, , and They represent the unique value environmental feature partition raster, value raster and output raster respectively; is the neighborhood window, is the statistic type parameter.