statistical calculation using moving wondows with different sizes

3965
7
Jump to solution
04-10-2015 10:04 AM
PengGao3
New Contributor III

I have a raster distributed rainfall data for a local
watershed. I want to use moving window of different sizes to calculate the mean
of precipitation within the window and find out the highest mean among all
windows of the same size.

Thanks.

Peng

1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor
7 Replies
DarrenWiens2
MVP Honored Contributor

Have you tried Focal Statistics?

PengGao3
New Contributor III

Not yet, but I just found that this might work. So, I will try it.

Thanks a lot.

peng

0 Kudos
PengGao3
New Contributor III

?yes, it worked -- thank you !

peng

SepheFox
Frequent Contributor

Hey Peng, It's customary to mark an answer as correct if it worked for you. Thanks!

PengGao3
New Contributor III

Thanks for letting me know.

Just did it.

Peng

DanPatterson_Retired
MVP Emeritus

To be complete, one should realize that there are at least two types of statistical groupings when working with raster data...those that work with overlapping neighborhoods and those that work with adjacent neighborhoods

...focal vs block statistics. Both have their place.  Details of both are documented in their respective help topics

How block statistics works   the neighborhood 'jumps' by its size and shape to the right (then down)

...How focal statistics works the neighborhood 'moves' the neighborhood shape one cell to the right (then down)

Then don't forget there is Line Statistics and Point Statistics ... so the choice really depends upon the neighborhood type, shape and configuration and how you want to implement the movement.

PengGao3
New Contributor III

This is an important point to make. Your explanation is very thorough -- thanks. For my analysis, I need overlay effect, which means I need to use 'Focal Statistics'.