I have a set of rasters which I want to calculate mean of them,these rasters has some
NoDate values,I have two approaches
first using this code in raster calculator I interpolate them
Con(IsNull("raster"), FocalStatistics("raster", NbrRectangle(5,5, "CELL"), "MEAN"), "raster")
Anyway this must work.But when I run it no changes happens.even by changing window size to 20 px nothing changes.
another approach is setting nodata values to 0 but It will affect on average results. Another one I think I can do is ignore NoData values while avraging but for example when I have 4 rasters and one of them has NoData so in avrage it should devide into 3 not 4.
Anyway.Which one is better?any why I can not make first approach work?