search for: ncw_new

Displaying 1 result from an estimated 1 matches for "ncw_new".

Did you mean: c_new
2010 Sep 23
1
NetCDF file: adding a variable
...ncdf(ncw) # Here I am trying to add another variable which should have a value of grdtp ncw_old=open.ncdf(wfile,write=TRUE) d3=dim.def.ncdf("grid_type",'',1:1,create_dimvar=FALSE) grid_t=var.def.ncdf("grid_type","type",d3,1.e30,longname="Grid Type") ncw_new=var.add.ncdf(ncw_old,grid_t) Here I stop because R gives an error message: Error in var.add.ncdf(ncw_old, grid_t) : Error in create.ncdf, defining var! Any ideas of what am I doing wrong? Thank you! [[alternative HTML version deleted]]