Extend dimensions in netCDF file using R
问题 I would like to write a netCDF file using R with 'unlimited' dimensions that I can later extend. This is what I have tried: Create a netcdf file library(ncdf4) ## define lat, lon time dimensions lat <- ncdim_def("latitude", "degrees_east", vals = 44.0, unlim = TRUE) lon <- ncdim_def("longitude", "degrees_north", vals = -88.5, unlim = TRUE) time <- ncdim_def("time", "days since 0000-01-01", 1:1000) ## define data with these dimensions x <- ncvar_def("myvar", units = "m2", dim = list(lat, lon,