I have a climatic dataset of a region where I am calculating time series (for drought index). The dimension of the dataset is 164*153*1416 (1416 months in the dataset and the others are the location). How I can average this over space and time?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Md Muktadir
am 23 Apr. 2021
Kommentiert: Md Muktadir
am 24 Jun. 2021
Average= nanmean(Box_SPEI(:,:,:))
0 Kommentare
Akzeptierte Antwort
Chad Greene
am 3 Mai 2021
To get a map of average SPEI,
SPEI_mean = mean(SPEI,3,'omitnan');
and that calculates the mean along the third dimension (time).
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Climate Science and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!