jwmonks

Conditional Statement

Discussion created by jwmonks on Jul 4, 2017
Latest reply on Jul 5, 2017 by curtvprice

Hey, so, having frustraited over this for ages I give up and will ask

I have a conditional statement I applied to an NDVI layer to apply a double sided membership function to it

It is in 32 bit float as it is decimal. The following statement was used

Con((Float("spainndvi" < 0.13)) & (Float("spainndvi" > 0.9)), 0, Con((Float("spainndvi" >= 0.13)) & (Float("spainndvi" <= 0.32)), (Float("spainndvi" - 0.13)) / (0.32 - 0.13)), Con((Float("spainndvi" >= 0.6)) & (Float("spainndvi" <= 0.9)), (Float(0.9 - "spainndvi")) / (0.9 - 0.6), 1))

 

The odd thing is it worked when I last used it but having miss named the file I deleted it by accident, went to re-run the statement and it just gives me an error. Is there something obviously wrong with my statement? Thanks

Outcomes