How do I extract mean values for specific months from my sst data?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Walter Roberson
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!