Select to view content in your preferred language

How to use the SetNull in suitability model at 3.2.0

309
0
12-16-2023 05:38 PM
Labels (1)
JZ23
by
New Contributor

Hello, I got a trouble to practice the following ArcGIS code in raster calculator:  

SetNull(("%ExistingRegion_new%" + "%NewRegions%"), "%NewRegions%", "Value = 0")

This code is at ESRI documentation: https://desktop.arcgis.com/en/analytics/case-studies/suit-lesson-4-pro-locating-and-connecting-regio...

At the 11 part.  I have tried to figure out what happened, but I followed with the instruction in each step, I have no idea why it does not come through. Please help me fix this. Thanks. 

I attached the error below: 

ERROR 000539: Traceback (most recent call last):
  File "<expression>", line 1, in <module>
  File "<string>", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 15724, in SetNull
    return Wrapper
arcgisscripting.ExecuteError: ERROR 010423: does not have valid statistics as required by the operation.
ERROR 010423:
does not have valid statistics as required by the operation.
Failed to execute (SetNull).
Failed to execute (Raster Calculator).

 

0 Kudos
0 Replies