How do I extract mean values for specific months from my sst data?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Walter Roberson
am 24 Nov. 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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!