[GRASS-user] Decision tree classification

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

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@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user