# NOT RUN {
## Create a new NetCDF dataset and define two dimensions
nc <- create.nc("var.inq.nc")
dim.def.nc(nc, "station", 5)
dim.def.nc(nc, "time", unlim=TRUE)
## Create two variables, one as coordinate variable
var.def.nc(nc, "time", "NC_INT", "time")
var.def.nc(nc, "temperature", "NC_DOUBLE", c(0,1))
## Inquire about these variables
var.inq.nc(nc, 0)
var.inq.nc(nc, "temperature")
close.nc(nc)
# }
Run the code above in your browser using DataLab