I created a python script where I use Con (Spatial Analyst). Till now I passed the where clause value as value>1000
and it worked fine for me. But recently I found some raster on which Con
statement does not work and says that the expression is not valid or something like that. Now I put space before and after >
sign and the expression is now value > 1000
. The weird thing is the script works fine now.
Con
does not work when con expression is value>1000
, for raster files that are big in size, but works fine when con expression is value > 1000
, for my case, it was 50MB. Only putting two spaces solves the problem
Question: I go through Con (Spatial Analyst) documentation. I do not find anything that can explain why is this happening. Can anybody explain Why is this weird thing happening?