Spatial Analyst - Python - IsNull problems

Discussion created by xander_bakker on Nov 8, 2009
Latest reply on Dec 10, 2009 by xander_bakker
OK, I found out that the Raster Calculator has been replaced by Python. At first quite a shock :eek:, but I'll get over it, since this is the future and AG94 is really cool... :cool:

There seems to be some problem with the IsNull function.

I simply want to assign the values in RASTER2 to the output raster when RASTER1 has NoData and in other cases assign value 0.

The resulting raster contains the value 0, but the NoData areas are NoData.

I believe this used to work with the Raster Calculator in previous version.
Am I missing something here (a setting perhaps)? :confused:

Kind regards,


Additional info:
It seems that the problem is caused by the IsNull function within python. When using the IsNull tool from the toolbox the result contains 1 and 0 values. Using IsNull in python only returns 0 values and NoData. The IsNull through Python works differently than using the IsNull tool.:(