From: Harry on
Hi everybody,

I'm struggling to convert a matrix which represents 1km resolution data to 5km resolution.

What I want to do is convert every 5x5 block to one value, by taking the mean-value of these 25 cells. Is there an easy way I can do this? (tried it with mean function, e.g. value=mean(1:5,1:5), but couldn't make it work).

Thanks in advance,

Greetings