Taking average over specified grid box resolution?

1 Ansicht (letzte 30 Tage)
Subhodh Sharma
Subhodh Sharma am 4 Aug. 2021
Kommentiert: Matt J am 4 Aug. 2021
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 Kommentar
Matt J
Matt J am 4 Aug. 2021
But the resolution of your grid is alreayd 2.5 degree per box.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 4 Aug. 2021
Bearbeitet: Matt J am 4 Aug. 2021
Using sepblockfun (Download)
sepblockfun(Data,[2,2],'mean')

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by