Taking average over specified grid box resolution?
Show older comments
I have a latitude=88.75:2.5:-88.75 and longitude=-178.75:2.5:178.75; Data=rand(144, 72) ;what I want to take average over every 2.5 × 2.5 deg grid box over the Data.
1 Comment
Matt J
on 4 Aug 2021
But the resolution of your grid is alreayd 2.5 degree per box.
Answers (1)
sepblockfun(Data,[2,2],'mean')
Categories
Find more on Geographic Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!