Note: This document is for an older version of GRASS GIS that is outdated. You should upgrade, and read the current addon manual page.
The user can select the distance around each cell which is considered for the new value as well as the statistical value (mean,median,min,max).
# Extract a stream from spearfish dataset for sample application r.watershed -f elevation="elevation.10m@PERMANENT" accumulation="accum" r.mapcalc "accum_abs = abs(accum)" r.stream.extract elevation="elevation.10m@PERMANENT" threshold=200 stream_rast="stream" direction="dirs" r.stream.basins dir="dirs" coors="602140,4927950" basins="basins" r.mapcalc "sample_stream = basins && stream" # Extract geological information for sample stream course r.mapcalc "geology_sample_stream = if(sample_stream,geology@PERMANENT,null())" # Calculate median geological material ("median category value") for # 1500 m up- and downstream of each stream cell r.rdfilter.py input=geology_sample_stream stat=median distance=1500
Last changed: $Date: 2012-11-18 01:34:26 -0800 (Sun, 18 Nov 2012) $
Main index - raster index - Full index
© 2003-2014 GRASS Development Team