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