I normally use the raster or clim.pact pckages to read netcdf (.nc) files.
This has always worked out for me until this weekend every time i try to
read a .nc file i get the following error

Program: C:\Program Files\RStudio\bin\x64\rsession.exe File: posixio.c,
Line 417 Expression: offset >= 0 This application has requested the Runtime
to terminate it in an unusual way.Please contact the application's support
team for more information.

here is an example of my code

library(raster)

library(clim.pact)

PET1<-brick("cru_ts_3_10.1901.2009.pet.dat.nc") #will give error

PET<-retrieve.nc("cru_ts_3_10.1901.2009.pet.dat.nc",x.rng=c(20,50),y.rng=c(-15,40))
#will give error

The files are CRU data downloaded from BADC. Smaller files work ok but
these are bigger file

   1.

   This is the link to the original data source for which a free user
   account is required.
   http://badc.nerc.ac.uk/browse/badc/cru/data/cru_ts_3.10)
   I get the error when I am using R.2.14.0 64 Bit. Using the 32 Bit
   version doesnt bring errors.I have tried installing and uninstalling both R
   and Rstudio several times without success
   2.

   I have confirmed that the problem is with R x64 Bit regardless of
   whether using Rstudio or R GUI or any other GUI.
   I repeat: No problems with 32 bit which is strange given that 32 bit
   restricts my memory to 3583 !! and if i load more data in the workspace i
   will run out of memeory.

My machine has 16GB of RAM


-- 

You have to trust that the dots will somehow connect in your future. You
have to trust in something — your gut, destiny, life, karma, whatever.

Steve Jobs
http://business.blogs.cnn.com/2011/10/06/life-lessons-steve-jobs-on-steve-jobs/

	[[alternative HTML version deleted]]

