Dear Users,
I have corrected the errors. Many thanks.
For this error,
> [1] "put.var.ncdf: warning: you asked to write 1440 values, but the passed
> data array has 37440 entries!"
I added start= c(1,1,1), count=c(length(lons),length(lats),length(nt)) in the
put.var.ncdf function.
so put.var.ncdf(ncid, var, data)
became put.var.ncdf(ncid, var, data, start= c(1,1,1),
count=c(length(lons),length(lats),length(nt)))
For this,
> Warning message:
> In 1:nt : numerical expression has 26 elements: only the first used
I replaced "times" with "nt" in the tdim in the dim.def.ncdf function.
so
tdim <- dim.def.ncdf('time','days since 1980-01-01', times, unlim=TRUE)
became
tdim <- dim.def.ncdf('time','days since 1980-01-01', nt, unlim=TRUE)
Thanks all.
Nana Browne
====================================================================
There is no key to happiness. The door is always open.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.