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 visualizaciones (últimos 30 días)
Average= nanmean(Box_SPEI(:,:,:))

Respuesta aceptada

Chad Greene
Chad Greene el 3 de Mayo de 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 comentarios
Md Muktadir
Md Muktadir el 5 de Mayo de 2021
It works @Chad Greene. Thanks a lot. The cdt is really helpful and a great piece of good work.
Md Muktadir
Md Muktadir el 24 de Jun. de 2021
@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?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Climate Science and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by