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

3 vues (au cours des 30 derniers jours)
sravanthi mopati
sravanthi mopati le 8 Mar 2018
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:

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by