R create NetCDF from .CSV
问题 I am trying to create a NetCDF from a .csv file. I have read several tutorials here and other places and still have some doubts. I have a table according to this: lat,long,time,rh,temp 41,-109,6,1,1 40,-107,18,2,2 39,-105,6,3,3 41,-103,18,4,4 40,-109,6,5,2 39,-107,18,6,4 I create the NetCDF using the ncdf4 package in R. xvals <- data$lon yvals <- data$lat nx <- length(xvals) ny <- length(yvals) lon1 <- ncdim_def("longitude", "degrees_east", xvals) lat2 <- ncdim_def("latitude", "degrees_north"