Does anyone know why the raster calculator tool will sometimes not take my inputs? I've been working on a model that will work mostly, and then it will break. The raster calculator seems to be the culprit. It seems to change out my inputs at random to zeros.
Please and thanks.
what is the raster calculator expression?
Raster Calculator (Spatial Analyst)—ArcGIS Pro | Documentation
there are lots of specifics that need to be met, have you reviewed your expression in light of those?
Hi Dan,
I have looked through the documentation and have found no issue called out.
This works sometimes and other times it won't. I'll open it up there will be zeros instead of layers.
I've also use Con(layer1, (layer2 - layer1) * 0.4335)
My date and time seems to be intermittent as well.
I'd appreciate any insight.
Thanks.
I don't see how date and time could be associated with changes to the layer name.
I would ensure that you are working with locally stored data if you aren't to rule out network etc issues.
I have rebuilt the model, and I believe, tricked it into working. However, the whole reason to create this model was to serve it out as a geoprocessing tool in experience builder. This will not work for me no matter how I slice up the model and share it as a tool.
Is it not possible to perform raster analysis with a geoprocessing tool in experience builder? When I am able to get a small bit of the model to run as a geoprocessing tool it will not display in experience builder, it just produces a .tif somewhere. Is there a way to add this to the map? This all seems so cumbersome to me.
Please and thanks.
I don't use experience builder or modelbuilder, but if you need a raster layer, then try adding the
Make Raster Layer (Data Management)—ArcGIS Pro | Documentation for a raster in the map
Make Table View (Data Management)—ArcGIS Pro | Documentation to make a table view
experience builder may differ from Pro's handling of python scripts and/or toolbox tools
Thanks.
I tried it and it would work in Model Builder, as it had, but it allow me to serve it out as a geoprocessing. That's the first time I saw that.
I wish I had an alternative to this. Thanks.
I think the issue is that Calculate field doesn't "produce" anything. That is, not a layer or a table, so nothing to add to the map. That may be the key, depending on how you interpret "output variables".
Any output variables that have been marked Add To Display are added to the last active map.