Several conditons BandMath

Hi all,

I would like to know if there is any possibility for the BandMath application to perform several conditons ?
like:
-exp ’ im1b1==1 ? 1 : ( im2b1==1 ? 2 : (im3b1==1 ? 3 : 0))’

Would be nice to have a rule based way to classify pixel actually, like ERDAS does (would love to get rid of Erdas :slight_smile: )

Thanks!
Ari

Hello,

The syntax you proposed should work. Have you tried it ?

Cédric

Oh sorry, I comeback after a while…

I tried this right now and it works good, happy to know that!
I don’t remember what was my issue at this time, sorry