Borrar filtros
Borrar filtros

How do I extract mean values for specific months from my sst data?

1 visualización (últimos 30 días)
Sarah
Sarah el 24 de Nov. de 2023
Respondida: Walter Roberson el 24 de Nov. de 2023
I have created a sst mean graph utilising the whole dataset provided, however, I would like to now make a graph specifically focussing on the december 1999 sst mean and another on the july 1999 sst mean.
My data is too large to attach as a file :(
My data comes in the form of 49x81x2922 (latxlongxtime), the time is in serial numbers. I tried converting the serial numbers and finding the values that equated to the december&july months , however, I don't really know where to go from there. I am new to this all so therefore I am not the best at it.
Altogether, I am trying to figure out a way that I could narrow down the dataset for the sst to the only within one of the 2 months said so that I could then calculate the mean of that and plot it the same way you would just to plot the mean generally. I used the CDT climate data toolbox to help me plot the sst mean originally.

Respuestas (1)

Walter Roberson
Walter Roberson el 24 de Nov. de 2023
If you convert the data into a timetable object then you could use timerange to select rows by date, as described at https://www.mathworks.com/help/matlab/matlab_prog/subscript-into-times-of-timetable.html
Even without timetable objects, you can use isbetween to test whether an item is in the desired range.
You could also consider using groupsummary

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by