Taking average over specified grid box resolution?

2 次查看(过去 30 天)
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 个)

Matt J
Matt J 2021-8-4
编辑:Matt J 2021-8-4
Using sepblockfun (Download)
sepblockfun(Data,[2,2],'mean')

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by