I am trying to merge many single .nc files into one multi-file netCDF. I need to merge monthly files from 1901-2006 for a few variables e.g. temp (filename is tmp_cru-ts-4.03-gridded_1.75w50.75n1.75w50.75n_19010116)
My skills are pretty basic in R but I've tried this so far:
filenames=list.files("tmp", pattern = '*.nc', full.names = TRUE)
ldf = lapply(filenames,open.nc) #rnetcdf function
binded = rbind(ldf)
I'm not sure if this is right, or how to now write it to a .nc file?
Thanks!