GRASS logo

NAME

r.object.spatialautocor - Spatial autocorrelation of raster objects

KEYWORDS

raster, statistics, spatial autocorrelation

SYNOPSIS

r.object.spatialautocor
r.object.spatialautocor --help
r.object.spatialautocor [-d] object_map=name variable_map=name method=string [--help] [--verbose] [--quiet] [--ui]

Flags:

-d
Also take into account diagonal neighbors
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

object_map=name [required]
Raster input map with objects
variable_map=name [required]
Raster input map with variable
method=string [required]
Method for spatial autocorrelation
Options: moran, geary

Table of contents

DESCRIPTION

r.object.spatialautocor calculates global spatial autocorrelation of the raster objects in the object_map based on the values in the variable_map. The user can choose between Moran's I or Geary's G indicator using the method parameter.

At this stage, neighborhood is simply defined by an adjancy matrix. The user can choose whether to also accept diagonal neighborhood by setting the -d flag.

NOTES

The module depends on the addon r.neighborhoodmatrix which needs to be installed.

EXAMPLE

Calculate the spatial autocorrelation of altitude in the elevation map using individual patches in the landclass96 (North Carolina sample dataset) as objects:

 
g.region raster=elevation
r.clump landclass96 output=objects
r.object.spatialautocor ob=objects var=elevation method=moran
r.object.spatialautocor ob=objects var=elevation method=geary

REFERENCES

Moran, P.A.P., 1950. Notes on Continuous Stochastic Phenomena. Biometrika 37, 17-23. https://dx.doi.org/10.2307%2F2332142

Geary, R.C., 1954. The Contiguity Ratio and Statistical Mapping. The Incorporated Statistician 5, 115. https://dx.doi.org/10.2307%2F2986645

SEE ALSO

r.neighborhoodmatrix

AUTHOR

Moritz Lennert

SOURCE CODE

Available at: r.object.spatialautocor source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual