Programming problem !!

3935
2
01-21-2015 05:44 AM
MuqitZoarder
New Contributor II

Hello all, i am calculating Emissivity from NDVI, using the following conditional statement, but its not working

 

CONDITIONAL { ($n1_le71970282002228edc00_ndvi < - 0.185) 0.995 , ($n1_le71970282002228edc00_ndvi <= - 0.185 AND < 0.157) 0.970 , ($n1_le71970282002228edc00_ndvi < = 0.157 AND <= 0.727) (1.0094 + 0.047LOG ( $n1_le71970282002228edc00_ndvi ) ), ($n1_le71970282002228edc00_ndvi >0.727) 0.990}

 

Any suggestion?

 

Thanks

Muqit

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

You should  elaborate on what you are using to perform the query.

0 Kudos
MuqitZoarder
New Contributor II

I have solved it just now !!!

the conditional statement got some syntax error.

Now:

CONDITIONAL {($n1_le71970282002228edc00_ndvi < -1.0 ) -999.0, ($n1_le71970282002228edc00_ndvi < -0.185) 0.995, ($n1_le71970282002228edc00_ndvi < 0.157) 0.970, ($n1_le71970282002228edc00_ndvi < 0.727) (1.0098+LOG ( $n1_le71970282002228edc00_ndvi ) * 0.047), ($n1_le71970282002228edc00_ndvi >=0.727) 0.990, (default) -1.0}

0 Kudos