[R-sig-Geo] problem while creating netcdf files

Edzer Pebesma edzer.pebesma at uni-muenster.de
Mon May 14 18:52:08 CEST 2012


Tom, this library seems not to be available for windows users. I tried
installing on ubuntu 12.4 LTS, but the netcdf-dev version in this distro
seems too old (4.1.1-6) and no nc-config is available.

Installing netcdf 4.2 from source gave me the following error message:

nc4file.c: In function 'nc4_create_file':
nc4file.c:279:38: error: 'H5F_LIBVER_18' undeclared (first use in this
function)
nc4file.c:279:38: note: each undeclared identifier is reported only once
for each function it appears in
make[2]: *** [libnetcdf4_la-nc4file.lo] Error 1

Searching for the error message gave me one hit, which didn't help me
out. Any ideas?

On 05/14/2012 05:53 PM, Tom Roche wrote:
> 
> Ana Sun, 13 May 2012 09:55:29 -0700 (PDT)
>> I am creating netcdf files for climatic daily datasets for 50 years.
>> The problem is that I end up with huge files when trying just one
>> point, and I have 2000 more points to add. Am I doing something wrong
> 
> Yes. The first thing is, use package=ncdf4
> 
> http://cran.r-project.org/web/packages/ncdf4/index.html
> 
> (rather than the now-unsupported, and deprecated, package=ncdf) and try the example for nc_create in the ncdf4 manual
> 
> http://cran.r-project.org/web/packages/ncdf4/ncdf4.pdf
> 
> I'm using it for multilayered 459x299 grids (the North American
> "AQMEII domain") that are < 1 GB.
> 
> HTH, Tom Roche <Tom_Roche at pobox.com>
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list