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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Md Muktadir
il 23 Apr 2021
Commentato: Md Muktadir
il 24 Giu 2021
Average= nanmean(Box_SPEI(:,:,:))
0 Commenti
Risposta accettata
Chad Greene
il 3 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Climate Science and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!