GRASS logo

NAME - Moving window correlation analysis.


raster, landscape structure analysis, correlation analysis

SYNOPSIS --help input1=name input2=name output=name size=integer max=integer [title="phrase"] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


input1=name [required]
Name of input raster map
input2=name [required]
Name of input raster map
output=name [required]
Name for output raster map
size=integer [required]
Neighborhood size
Options: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25
max=integer [required]
In order to receive more information of the decimal places, set it to e.g. 1000
Title for resultant raster map

Table of contents

DESCRIPTION provides information concerning the correlation of pixels inside a moving window between two raster files.

It calculates correlation of two raster maps by calculating correlation function of two corresponding rectangular areas for each raster point and writing the result into a new raster map.


This module computes the correlation between two raster files but unlike r.pi.lm for moving windows of a specific size. This module is partly based on r.neighbors and r.covar.


An example for the North Carolina sample dataset: Correlation of all pixels within a 7x7 sized window of two rasters (elevation and slope). The output is multiplied by 10000 for higher precision
g.region rast=elevation -p input1=slope input2=elevation output=corrwin1 size=7 max=10000
r.colors corrwin1 col=bgyr


r.pi.index, r.pi.lm, r.pi


Programming: Elshad Shirinov
Scientific concept: Dr. Martin Wegmann
Department of Remote Sensing
Remote Sensing and Biodiversity Unit
University of Wuerzburg, Germany

Port to GRASS GIS 7: Markus Metz


Available at: source code (history)

Latest change: Tuesday Sep 19 09:59:22 2023 in commit: e76c325998c8cd9053ce012a5adbb79f33ab0779

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

© 2003-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual