Displaying 2 results from an estimated 2 matches for "thesenam".
Did you mean:
thenam
2016 Apr 22
2
Unexpected values obtained when reading in data using ncdf and ncdf4
Dear R Users,
I am encountering a problem when reading nc files into R using the ncdf and ncdf4 libraries. The nc files are too large to attach an example (but if someone is interested in helping out I could send a file privately via an online drive), but the code is basic:
for(i in 1:length(thesenames[,1])){
data <- nc_open(paste(INDIR, thesenames[i,c("wholename")], sep=""), write=F)
d.vars <- names(data$var)
d.size <- (data$var[[length(d.vars)]])$size
# Obtaining longitude and latitude values
d.lon <- as.vector(ncvar_get(data, varid="lon&qu...
2016 Apr 22
0
Unexpected values obtained when reading in data using ncdf and ncdf4
...?Hi Louise,
I'm the author of the ncdf and ncdf4 libraries. What are the details --
what operating system are you running on, what version of R and the netcdf
library are you using?
If you make the files available to me I can take a look.
Regards,
--Dave Pierce
?
> for(i in 1:length(thesenames[,1])){
> data <- nc_open(paste(INDIR, thesenames[i,c("wholename")], sep=""),
> write=F)
> d.vars <- names(data$var)
> d.size <- (data$var[[length(d.vars)]])$size
>
> # Obtaining longitude and latitude values
> d.lon <- as.vector(...