# NOT RUN {
## Create a new NetCDF dataset and define two dimensions
file1 <- tempfile("dim.def_", fileext=".nc")
nc <- create.nc(file1)
dim.def.nc(nc, "station", 5)
dim.def.nc(nc, "time", unlim=TRUE)
close.nc(nc)
unlink(file1)
# }
Run the code above in your browser using DataLab