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?

5 次查看(过去 30 天)
Average= nanmean(Box_SPEI(:,:,:))

采纳的回答

Chad Greene
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).
  4 个评论
Md Muktadir
Md Muktadir 2021-6-24
@Chad Greene, If i have a dataset (360*720*1416) where first two indicate latitude and longitude and 1416 is the time step. If I need finer resolution (0.25 degree spatial resolution) to make it (720*1440*1416), how I can do that?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Climate Science and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by