Raster Calculator: Fill in NoData returns ERROR 000539 and ERROR 010240

662
3
01-22-2013 05:34 AM
KevinBladon
New Contributor II
Hi folks,

I am also trying to fill in NoData cells in a raster and have attempted to use the code supplied in Raster Calculator.

Con(IsNull("ab_buffer"), FocalStatistics("ab_buffer", NbrRectangle(5, 5, "CELL"), "MEAN"), "ab_buffer")

However, I receive the following error message:

ERROR 000539: Error running expression rcexec() <type 'exceptions.RuntimeError'>: ERROR 010240: Could not save raster data to C:\"Folder Location" with output format GRID

Any thoughts on why I might be receiving this message.

Thanks in advance.
0 Kudos
3 Replies
TimothyHales
Esri Notable Contributor
You statement looks fine.  You may have any issue with your software installation.  Are you able to run simple statements such as: "ab_buffer" * 2?  Are there multiple version of Python installed?  You can look for the C:\Python26 or Python27 folders.  Version 10.0 = Python 2.6 and 10.1 Python 2.7    If there are multiple versions, uninstall the extra one.
0 Kudos
KevinBladon
New Contributor II
Thanks for the reply Timothy,

For those that find this issue in the future... the statement works fine within Raster Calculator as well as Python.  The issue was as simple as a need to reboot my computer.  For whatever reason, I needed to shut down ArcGIS and reboot my computer, otherwise the statement was choking and returning the error.

One of those frustrating and quirky aspects of the software.

kevin
0 Kudos
TimothyHales
Esri Notable Contributor
Yes, a good reboot sometimes does the trick.  Thanks for the update.
0 Kudos