.TH r.li.cwed 1grass "" "GRASS 7.8.5" "GRASS GIS User's Manual" .SH NAME \fI\fBr.li.cwed\fR\fR \- Calculates contrast weighted edge density index on a raster map .SH KEYWORDS raster, landscape structure analysis, patch index .SH SYNOPSIS \fBr.li.cwed\fR .br \fBr.li.cwed \-\-help\fR .br \fBr.li.cwed\fR \fBinput\fR=\fIname\fR \fBconfig\fR=\fIname\fR \fBpath\fR=\fIname\fR \fBoutput\fR=\fIname\fR [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIname\fR \fB[required]\fR" 4m .br Name of input raster map .IP "\fBconfig\fR=\fIname\fR \fB[required]\fR" 4m .br Configuration file .IP "\fBpath\fR=\fIname\fR \fB[required]\fR" 4m .br Name of file that contains the weight to calculate the index .IP "\fBoutput\fR=\fIname\fR \fB[required]\fR" 4m .br Name for output raster map .SH DESCRIPTION \fIr.li.cwed\fR (contrast weighted edge density) calculates the edge density between patch types specified: .PP .PP with: .RS 4n .IP \(bu 4n \fBk\fR: attribute .IP \(bu 4n \fBm\fR: number of non\-null attributes in the sampling area .IP \(bu 4n \fBeik\fR: total length of edge in landscape between patch types i and k .IP \(bu 4n \fB dik\fR: dissimilarity (edge contrast weight) between patch types i and k .IP \(bu 4n \fBArea\fR: total landscape area .br .RE .br The input file contains a row for each couple of patch type that we want to consider in the calculation. Each row must be saved using this syntax: .br patchType1,patchType2,dissimilarityBetweenPatchType1andPatchType2 .br .SH NOTES Do not use absolute path names for the \fBconfig\fR and \fBoutput\fR file/map parameters. If the \(dqmoving window\(dq method was selected in \fBg.gui.rlisetup\fR, then the output will be a raster map, otherwise an ASCII file will be generated in the folder C:\(rsUsers\(rsuserxy\(rsAppData\(rsRoaming\(rsGRASS7\(rsr.li\(rsoutput\(rs (MS\-Windows) or $HOME/.grass7/r.li/output/ (GNU/Linux). .PP If the sample area contains only NULL values it is considered to have 0 patch and CWED=0. If Area is 0 \fIr.li.cwed\fR returns \-1. This is only possible if the map is masked. .br If you want to change these \-1 values to NULL, run subsequently on the resulting map: .br .nf \fC r.null setnull=\-1 input=my_map \fR .fi after index calculation. .SH EXAMPLES To calculate the contrast weighted edge density index on map \fImy_map\fR, using \fImy_conf\fR configuration file (previously defined with \fIg.gui.rlisetup\fR) and saving results in \fImy_out\fR, run: .br .nf \fC r.li.cwed input=my_map conf=my_conf output=my_out \(rs path=/path/to/weights.csv \fR .fi .br Example for input \(dqweights.csv\(dq file: .br .nf \fC 12,16,0.65 44,123,0.32 56,12,0.54 23,66,0.99 \fR .fi .SH SEE ALSO \fI r.li \- package overview .br g.gui.rlisetup \fR .SH REFERENCES McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern analysis program for quantifying landscape structure. USDA For. Serv. Gen. Tech. Rep. PNW\-351. (PDF) .SH AUTHORS Serena Pallecchi student of Computer Science University of Pisa (Italy). .br Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it) .br Markus Metz .SH SOURCE CODE .PP Available at: r.li.cwed source code (history) .PP Main index | Raster index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual