How to find yearly mean for multiple netcdf files having monthly means?

조회 수: 3 (최근 30일)
sravanthi mopati
sravanthi mopati 2018년 3월 8일
편집: sravanthi mopati 2018년 3월 8일
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개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by