[R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread Panday, Prajjwal
Dear all, I have a similar error reported by Robert Buitenwerf here: http://grokbase.com/t/r/r-sig-geo/11a3b5ms2c/netcdf-to-raster-error I am trying to read/open a netCDF file using the ncdf package, but it keeps giving me the Microsoft Visual C++ Runtime Library error: This application has

Re: [R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread Tom Roche
2 suggestions: Panday, Prajjwal Wed Dec 19 19:19:30 CET 2012 I am trying to read/open a netCDF file using the ncdf package, Use package=ncdf4, not package=ncdf: the latter is no longer supported, per the developer (of both packages). but it keeps giving me the Microsoft Visual C++ Runtime

Re: [R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread Robert J. Hijmans
Prajjwal, You can also read these files using ncdf with the the 32-bit version of R (on windows 64). Robert On Wed, Dec 19, 2012 at 10:39 AM, Tom Roche tom_ro...@pobox.com wrote: 2 suggestions: Panday, Prajjwal Wed Dec 19 19:19:30 CET 2012 I am trying to read/open a netCDF file using the

Re: [R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread ppanday
Robert Yes I was able to read the file using ncdf. However, I am not able to load the entire variable in R-32bit using get.var.ncdf command. I get the error cannot allocate vector of size 2.5 Gb. Also, would this be a problem down the road if I am working with large datasets in R-32bit? Thanks,

Re: [R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread Robert J. Hijmans
Prajjwal, You could use 32bit R and the raster package to write the data to new files; and then continue with 64bit R. Robert On Wed, Dec 19, 2012 at 11:16 AM, ppanday ppan...@clarku.edu wrote: Robert Yes I was able to read the file using ncdf. However, I am not able to load the entire

Re: [R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread ppanday
Robert, from what I understand, use raster package in 32-bit to open and write as a new netCDF file (using writeRaster) and then open in 64-bit using ncdf. This way I should be able to bypass size limit issue if I come across large datasets. So far, I have read the netCDF file as raster using