[R-sig-Geo] Large NetCDF file problems

Pascal Oettli kridox at ymail.com
Wed Jun 11 03:49:24 CEST 2014


Hello,

Do you get the same error if you run your code out of Rstudio?

However, another approach would be to open your NetCDF file with
'brick' function from the raster package.

Regards,
Pascal

On Wed, Jun 11, 2014 at 9:10 AM, Pablo Alfaro <palfaro at motionsoft.com.uy> wrote:
> Hi, I'm having trouble opening a large netcdf file (2.45 GB) with the
> following code on R 3.0.3 64 bit
>
> require('ncdf')
> nc <- open.ncdf('C:/testsMCH/test/wrfout_d02_2014-06-09_00%3A00%3A00')
> get.var.ncdf(nc, 'T2', start=c(1, 1, 1), count=c(-1, -1, -1))
>
> I get this error:
> Assertion failed!
>
> 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.
>
>
> In R 32 bit there are no problems.
>
> It is the same problem as reported here:
> http://r.789695.n4.nabble.com/Problems-with-Raster-and-clim-pact-packages-with-large-netcdf-files-2-7G-in-x64-bit-R-td4119638.html#a4691956
>
> Does anyone have any clue as to why this may be?
> I can upload the file on an FTP server but it'll take me a while.
>
> Thanks in advance!
> Pablo
>
> --
> Ing. Pablo Alfaro Piñeyro
> MotionSoft Consulting S.R.L.
> Tel: 095 938 487
>
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan



More information about the R-sig-Geo mailing list