1r.li.mps(1)                   Grass User's Manual                  r.li.mps(1)
2
3
4

NAME

6       r.li.mps  - Calculates mean patch size index on a raster map, using a 4
7       neighbour algorithm
8

KEYWORDS

10       raster, landscape structure analysis, patch index
11

SYNOPSIS

13       r.li.mps
14       r.li.mps --help
15       r.li.mps input=name config=name  output=name   [--overwrite]   [--help]
16       [--verbose]  [--quiet]  [--ui]
17
18   Flags:
19       --overwrite
20           Allow output files to overwrite existing files
21
22       --help
23           Print usage summary
24
25       --verbose
26           Verbose module output
27
28       --quiet
29           Quiet module output
30
31       --ui
32           Force launching GUI dialog
33
34   Parameters:
35       input=name [required]
36           Name of input raster map
37
38       config=name [required]
39           Configuration file
40
41       output=name [required]
42           Name for output raster map
43

DESCRIPTION

45       r.li.mps  (mean  patch size) calculates the mean size of the patches in
46       the sampling area as:
47       MPS = A / Npatch
48       with:
49
50           ·   A:sampling area size without null cells
51
52           ·   Npatch: number of patches
53       The unit of the mean size is hectare.
54
55       This index is calculated using a 4 neighbour algorithm, diagonal  cells
56       are ignored when tracing a patch.
57

NOTES

59       Do  not  use  absolute  path  names  for the config and output file/map
60       parameters.   If  the  "moving   window"   method   was   selected   in
61       g.gui.rlisetup,  then  the  output  will  be a raster map, otherwise an
62       ASCII  file  will  be  generated  in  the  folder  C:\Users\userxy\App‐
63       Data\Roaming\GRASS7\r.li\output\             (MS-Windows)            or
64       $HOME/.grass7/r.li/output/ (GNU/Linux).
65
66       If the sample area contains only NULL value cells, r.li.mps  returns  0
67       (zero).
68

EXAMPLES

70       To calculate mean path size index on map my_map, using my_conf configu‐
71       ration file (previously defined with g.gui.rlisetup) and saving results
72       in my_out, run:
73       r.li.mps input=my_map conf=my_conf output=my_out
74
75       Forest map (Spearfish sample dataset) example:
76       g.region raster=landcover.30m -p
77       r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
78       r.li.mps input=forests conf=movwindow7 out=forests_mps_mov7
79       r.univar forests_mps_mov7
80
81       Forest map (North Carolina sample dataset) example:
82       g.region raster=landclass96 -p
83       r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
84       r.li.mps input=forests conf=movwindow7 out=forests_mps_mov7
85       # verify
86       r.univar forests_mps_mov7
87       r.to.vect input=forests output=forests type=area
88       d.mon wx0
89       d.rast forests_mps_mov7
90       d.vect forests type=boundary
91

SEE ALSO

93        r.li - package overview
94       g.gui.rlisetup
95

REFERENCES

97       McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern analy‐
98       sis program for quantifying landscape structure. USDA For. Serv.   Gen.
99       Tech. Rep. PNW-351. (PDF)
100

AUTHORS

102       Michael Shapiro - CERL (patch identification)
103       Markus Metz (statistics)
104
105       Last changed: $Date: 2014-12-19 22:17:36 +0100 (Fri, 19 Dec 2014) $
106

SOURCE CODE

108       Available at: r.li.mps source code (history)
109
110       Main  index  | Raster index | Topics index | Keywords index | Graphical
111       index | Full index
112
113       © 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual
114
115
116
117GRASS 7.6.0                                                        r.li.mps(1)
Impressum