Displaying 1 result from an estimated 1 matches for "ncnewer".
Did you mean:
cnewer
2010 Sep 07
1
adding variable to netCDF file
...39;file constructed. close it.')
close(ncobj)
print('defining new var')
c<-var.def.ncdf('c','hrs',t,missval=-999)
print('now open file back up for adding variable')
ncobj<-open.ncdf('testfile.nc',write=T)
print('adding new var to ncobj')
ncnewer<-var.add.ncdf(ncobj,c)
print('new data')
put.var.ncdf(ncnewer,c,c(.1,.2,.3,.4,.5))
close.ncdf(ncnewer)
Everything works fine until the call to var.add.ncdf(), where R stops
with the very helpful error message "This is not allowed." Anybody see
what I am doing wrong? Note t...