[GRASS-SVN] r68635 - grass-addons/grass7/raster/r.randomforest
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 8 01:50:31 PDT 2016
Author: neteler
Date: 2016-06-08 01:50:31 -0700 (Wed, 08 Jun 2016)
New Revision: 68635
Modified:
grass-addons/grass7/raster/r.randomforest/r.randomforest.html
Log:
r.randomforest addon manual: example cosmetics
Modified: grass-addons/grass7/raster/r.randomforest/r.randomforest.html
===================================================================
--- grass-addons/grass7/raster/r.randomforest/r.randomforest.html 2016-06-08 08:30:44 UTC (rev 68634)
+++ grass-addons/grass7/raster/r.randomforest/r.randomforest.html 2016-06-08 08:50:31 UTC (rev 68635)
@@ -43,14 +43,19 @@
<img src="lsat7_2000_b742.png" alt="Landsat 7 (2000) bands 7,4,2 color composite example">
</center>
+Note that this example must be run in the "landsat" mapset of the North Carolina sample data set location.
+
<br><br>First, we are going to generate some training pixels from an older (1996) land cover classification:
<div class="code"><pre>
-r.random input=landclass96m at PERMANENT npoints=1000 raster=landclass96_roi at landsat
+g.region raster=landclass96 -p
+r.random input=landclass96 npoints=1000 raster=landclass96_roi
</pre></div>
<br><br>Then we can use these training pixels to perform a classification on the more recently obtained landsat 7 image:
<div class="code"><pre>
-r.randomforest igroup=lsat7_2000 at landsat roi=landclass96_roi at landsat output=rf_classification mode=classification ntrees=500 mfeatures=-1 minsplit=2 randst=1 lines=100
+r.randomforest igroup=lsat7_2000 roi=landclass96_roi output=rf_classification \
+ mode=classification ntrees=500 mfeatures=-1 minsplit=2 randst=1 lines=100
+r.category rf_classification
</pre></div>
<br><br>Random forest classification result:
More information about the grass-commit
mailing list