CareysDrum

Iterate Raster in Model Builder with Raster Calculator

Discussion created by CareysDrum on Jul 22, 2013
Latest reply on Oct 8, 2014 by curtvprice
Hi All,

I have a function I want to apply to a raster. I have multiple rasters, each will need this function applied. Here is the function:

( 11.16 * Sin( FocalStatistics( "%Name%", NbrRectangle( 3, 3, ???CELL??? ), "MEAN", "" ) ) / ( 0.765 + 2.625 *  FocalStatistics( "%Name%", NbrRectangle( 3, 3, ???CELL??? ), "MEAN", "" ) ) ) / ( 11.16 * Sin( FocalStatistics( "%Name%", NbrRectangle( 3, 3, ???CELL??? ), "MEAN", "" ) ) / ( 0.765 + 2.625 *  FocalStatistics( "%Name%", NbrRectangle( 3, 3, ???CELL??? ), "MEAN", "" ) ) + 1 )

As you can tell I have instigated 'iterate rasters' to get the %Name% input. I have this function currently stored in raster calculator within model builder. When I try and run the tool it crashes out saying that the raster does not exist.....it exists so obviously I am referencing it wrong inside of raster calculator but i don't see where I am going wrong. I am running 10.1.

Any help would be appriceated.

Outcomes