3

I have a binary raster (1-0), cell size = 10m.

I would like to generate a 1km raster, where cell values equal the mean value of all cells within a 3 km radius. I know I can use focal statistics to generate a 1km raster from a 1km raster using a window.

But is there any way to calculate the mean of all the 10m cells that fall within a window around each 1km cell (i.e. window being a circular with radius = 3km)?

4
  • Is Block Statistics what you are after?: desktop.arcgis.com/en/arcmap/latest/tools/…
    – Aaron
    Sep 3, 2020 at 1:02
  • Yes, that will work! Thanks! Sep 3, 2020 at 6:03
  • Actually, now I had a chance to try it. Block statistics won't work! I need each cell to have its own unique (i.e. moving) window. preferably circular. If I use the snap raster and raster analysis environments to snap to another 1km raster, and set the cell size equal to the 1km raster it seems to work. Is there any reason I shouldn't do this? Sep 5, 2020 at 5:34
  • You can specify a circular neighborhood with block statistics. Setting a snap environment is recommended.
    – Aaron
    Sep 5, 2020 at 13:15

2 Answers 2

1

Block Statistics will work well for your workflow.

Partitions the input into non-overlapping blocks and calculates the statistic of the values within each block. The value is assigned to all of the cells in each block in the output.

enter image description here

0

#EcologicalModelling #RasterAnalysis #Predictors #Topographic #Habitat #Focalstatistics #NeighborhoodAnalysis #worldclimate #copernicus #googleearthengine

https://medium.com/@valentino.pintar/how-to-prepare-predictors-for-ecological-modelling-e442601120e3

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 6, 2021 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.