How to find yearly mean for multiple netcdf files having monthly means?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have era 20cm datasets. Each subdataset has monthly means of 10 variables of a particular region of interest. the datasets are 3 dimensional - latitude, longitude and time. the dimensions of latitude and longitude are different. i have gone through the following question:
used "accumarray"..commands are as shown below
precJanuary = netcdf.getVar(ncid1,3,[0 0 0],[225 82 1]);
yearlyaverage = accumarray(id, precJanuary, [], @mean);
Getting the following error: Second input VAL must be a vector with one element for each row in SUBS, or a scalar.
I have to calculate yearly means for all variables. Any suggestions in this regard will be helpful. A sample dataset can be found at:
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!