Select to view content in your preferred language

Raster Calculator Failure

245
8
07-24-2025 01:39 PM
MichaelHarman1
Emerging Contributor

I have a student who has ArcPro on his laptop, but Raster Calculator will not run... Well it runs, but in less than a second it finishes and then there is no product... it says it made the file and where its at, but there is nothing there. We did the software repair, we uninstalled, re installed, we tried do it in the python window, it would not initialize, so i think it is an issue with accessing Python. Uninstalled python, anaconda, and ESRI all again, reinstalled Pro.... still does the same thing. Figure it was an antivirus thing shout all of that stuff down, repaired and still failed. tried everything as an admin...still failed its not resource issue, it a simple calculation, and its a small raster.... still fails Any help would be great

0 Kudos
8 Replies
DanPatterson
MVP Esteemed Contributor

What was the raster calculator dialog and expression? (screengrab if you can)

Do any of the spatial analyst tools in arctoolbox work so that you can emulate the raster calculator partially or in total?


... sort of retired...
MichaelHarman1
Emerging Contributor

Ln(“smk_flowacc” + 1) was the expression , reclass , all the hydrology stuff works.

0 Kudos
MichaelHarman1
Emerging Contributor
Ln(“smk_flowacc” + 1) was the expression , reclass , all the hydrology stuff works.
0 Kudos
DanPatterson
MVP Esteemed Contributor

I don't think you need the Raster("smk_flowacc") as shown in

Complex statements—ArcGIS Pro | Documentation

So I would try some of the following to ensure that your output raster for a simple process is working.

Specify a folder as the destination and a *.tif as the output (eg c:/temp/output.tif) and

try

Ln (Spatial Analyst)—ArcGIS Pro | Documentation

I assume you are adding 1 so that 0 in the flow accumulation isn't converted to nodata?

you could create a constant raster

Create Constant Raster (Spatial Analyst)—ArcGIS Pro | Documentation

then add them together

Plus (Spatial Analyst)—ArcGIS Pro | Documentation

 


... sort of retired...
0 Kudos
MichaelHarman1
Emerging Contributor

yes that would likely work, but the bigger issue is why it fails. Raster calculator is a part in so many of our labs, not being able to use it is an issue.

0 Kudos
DanPatterson
MVP Esteemed Contributor

Report it to tech support.  I can't find anything reported as a bug in the public facing support site

Esri Support | ArcGIS Technical Support

and there could be a number of reasons why it might fail leading back to the raster type that is used for the raster layer.

That is why I suggested trying the single steps with the tool, then comparing it to the raster calculator.

eg     Ln(“smk_flowacc” )   dump the + 1

 If the tool works and the calculator doesn't, then you have narrowed down a condition


... sort of retired...
0 Kudos
MarkBoucher
Honored Contributor

I was having trouble with ArcHydro processes and learned that my 16GB RAM was too little to deal with my large dataset. I got an upgrade to 32GB but have not been able to test it. The recommended RAM size for ArcHydro is 64GB.

Mark

0 Kudos
MichaelHarman1
Emerging Contributor

It ran all the Hydro stuff, flow direction and flow accumulation, it only fails when we go to the calculator. Also this is a small data set, so i dont think thats the issue... I still think it isa failure to recognize and or connect to python from this tool

0 Kudos