Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.
NAME
r.object.spatialautocor - Spatial autocorrelation of raster objects
KEYWORDS
raster,
statistics,
spatial autocorrelation,
Moran I,
Geary G
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
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.
The module depends on the addon
r.neighborhoodmatrix
which needs to be installed.
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
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
r.neighborhoodmatrix
Moritz Lennert
SOURCE CODE
Available at:
r.object.spatialautocor source code
(history)
Latest change: Tuesday Mar 26 20:41:36 2024 in commit: 3b09b1d78f6e96ffebacac6e36f0afd91ad0c091
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.3.3dev Reference Manual