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!