[R-sig-Geo] netcdf file limitation

Michael Sumner mdsumner at gmail.com
Fri Dec 5 03:41:31 CET 2014


It's a limitation of ncdf4 (that's why the error refers to ncvar_put). Just
write the vector out in parts using the 'start' and 'count' arguments.

There's plenty of examples of doing that in the help page for ncvar_put,
though it's a bit abstract if you've not encountered that kind of thing
before.

(It seems strange to have to write to disk in pieces from memory,
interesting times we live in.)

Cheers, Mike.

On Fri Dec 05 2014 at 9:37:03 AM Jianhua Huang <jh.eco.cas at gmail.com> wrote:

> Hi All:
>
>
>
> I am trying to write a 3-dimensional big netcdf file with the ncdf4
> package.
> I found that when the length of the variable is larger than 2^31 (or file
> size larger than 16 GB), it will show an error "ncvar_put doesn't support
> long vector yet". Is that the limitation of the ncdf4 package or NetCDF
> format? Is there any way to overcome this?
>
>
>
> Thanks for any suggestion.
>
>
>
> Jianhua
>
>
>         [[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
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list