How do I extract mean values for specific months from my sst data?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2023년 11월 24일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!