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 次查看(过去 30 天)
显示 更早的评论
Average= nanmean(Box_SPEI(:,:,:))
0 个评论
采纳的回答
Chad Greene
2021-5-3
To get a map of average SPEI,
SPEI_mean = mean(SPEI,3,'omitnan');
and that calculates the mean along the third dimension (time).
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Climate Science and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!