search for: bat_matrix

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

Did you mean: baf_matrix
2010 Sep 23
1
NetCDF file: adding a variable
...ouble(lon)) d2=dim.def.ncdf("lat","degrees",as.double(lat)) # Variables bathymetry=var.def.ncdf("bathymetry","m",list(d1,d2),msv,longname="Bathymetry") ncw=create.ncdf(writefile,list(bathymetry,loncp,latcp,dlonp,dlatp)) put.var.ncdf(ncw,bathymetry,bat_matrix) close.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 Typ...