Select to view content in your preferred language

Multiple iterations on 1 grid file in Modelbuilder

198
0
04-08-2024 02:33 AM
Jeroen
by
New Contributor

Hello,


I want to build a Modelbuilder in ArcGIS Pro where an expression (focal mean algorithm: Con(IsNull("NameRaster.tif"), FocalStatistics("NameRaster.tif", NbrRectangle(10,10, "CELL"), "MEAN"), " NameRaster.tif")) is used in the tool raster calculator to fill gaps in a grid file. In doing so, the intention is to use the output of the raster calculator back as input in a subsequent iteration or loop. This is necessary as some holes in the grid are too large to be filled with just 1 run. Multiple runs are needed to completely fill the holes in the grid. However, via the 'For' and 'Iterate' iterators, this does not seem to fully succeed.
It manages to create a loop but in doing so, the expression is executed only 1 time and afterwards copies of the first output are produced each time. This is not what I am looking for.


Is it possible to fill gaps in one grid file via multiple iterations of raster calculator in Modelbuilder?

 

0 Kudos
0 Replies