.TH r.li.patchdensity 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBr.li.patchdensity\fR\fR - Calculates patch density index on a raster map, using a 4 neighbour algorithm .SH KEYWORDS raster, landscape structure analysis, patch index .SH SYNOPSIS \fBr.li.patchdensity\fR .br \fBr.li.patchdensity help\fR .br \fBr.li.patchdensity map\fR=\fIname\fR \fBconf\fR=\fIstring\fR \fBoutput\fR=\fIname\fR [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .IP "\fB--overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB--verbose\fR" 4m .br Verbose module output .IP "\fB--quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBmap\fR=\fIname\fR" 4m .br Name of input raster map .IP "\fBconf\fR=\fIstring\fR" 4m .br Configuration file .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output raster map .PP .SH DESCRIPTION \fIr.li.patchdensity\fR is a patch index for \fIr.li\fR suite. It calculates the function: \fC .DS .br f(sample_area) = (Patch_Number/Area) * 1000000 .br .DE \fR that is 1000000 by number of patch for area unit. This index is calculated using a 4 neighbour algorithm. .SH EXAMPLES To calculate patch density index on map \fImy_map\fR, using \fImy_conf\fR configuration file (previously defined with \fIr.li.setup\fR) and saving results in the raster map \fImy_out\fR, run: \fC .DS .br r.li.patchdensity map=my_map conf=my_conf out=my_out .br .DE \fR .PP Example for Spearfish forest areas: \fC .DS .br g.region rast=landcover.30m -p .br # extract forested areas: .br r.category landcover.30m .br r.mapcalc "forests=if(landcover.30m >= 41 && landcover.30m <=43,1,null())" .br .br # patch density (7x7 moving window defined in r.li.setup): .br r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7 .br d.rast.leg forests_p_dens7 .br .br r.to.vect forests out=forests feature=area .br d.vect forests type=boundary .br .DE \fR .SH NOTES A map of NULL values is considered to have zero patches. .br If you want to have null values instead run .br \fC .DS .br r.null setnull=0 map=my_out .br \fC .DS .br after index calculation. .br .br .br If raster area is 0, \fIr.li.patchdensity\fR returns -1. This is only possible .br if the raster is masked. .br .br .SH SEE ALSO .br \fIr.li\fR package overview .br .br \fIr.li.daemon\fR .br .br \fIr.li.setup\fR .br .br .SH AUTHORS .br Claudio Porta and Lucio Davide Spano, students of Computer Science .br University of Pisa (Italy). .br .br Commission from Faunalia Pontedera (PI) (www.faunalia.it) .br .br .br \fC .DS .br .PP Full index .br .PP © 2003-2011 GRASS Development Team .br