[GRASS-user] Decision tree classification
Robert Andrew Brown
brown782 at purdue.edu
Sun Feb 19 11:56:40 PST 2017
Use raster calculator (Mapcalc) "if statements". Takes a bit to understand but works very well
Sent from my iPhone
On Feb 19, 2017, at 1:56 PM, Luiz Andrade <lcoandrade at gmail.com<mailto:lcoandrade at gmail.com>> wrote:
Hi there,
How can I make a raster classification using decision tree in GRASS (like ENVI’s decision tree)?
I have two bands and a set os rules and I wanna make a classification with those rules. Something like this:
B1=0 (using band 1)
yes->water
no-> 0<=B1<=4 (using band 1)
yes-> B2=1(using band 2)
yes -> vegetation 1
no -> vegetation 2
no-> everything else
Can I do this with r.mapcalc?
Regards,
Luiz Claudio
_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org<mailto:grass-user at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170219/cb4bd811/attachment.html>
More information about the grass-user
mailing list