[netcdfgroup] how to link netcdf4 to R package ncdf4

Dear all, 

I'm using the netcdf-4 libraries from R. 
I installed ncdf4 package 
(http://cran.r-project.org/web/packages/ncdf4/index.html) and also the netcf-4 
land hfd4 library as written on 
http://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html#build_default.

I launched an R script where a netCDF archive with weather data should be 
created but I obtain the following error:
....
"Calling R_nc4_create for file  
/Users/ecor/Documents/workspace_new/activity_misc/RSUBDAILYCLIM/inst/trentino/data"
Error in R_nc4_create: NetCDF: Can't add HDF5 file metadata (creation mode was 
4096)
Error in nc_create(ncpath, nclist, force_v4 = TRUE, verbose = TRUE) : 
  Error in nc_create!
In addition: There were 16 warnings (use warnings() to see them)

It looks like ncdf4 does not find the netcdf-4 and hdf5 libraries. 
How can I link these libraries to the R ncdf4 package? 
Actually I have not found yet  any instruction about this on the web. 

Thank you 
Regards

Emanuele Cordano





Emanuele Cordano
Environmental Engineer / Ingegnere per l' Ambiente e il territorio nr. 3587 
(Albo A - Provincia di Trento)
Fondazione Edmund Mach
CRI - Reasearch and Innovation Center
Agro-Eco-System Dynamic Platform
Via Mach 1
38017 San Michele All'Adige (Italy)
phone +39 0461 615397
email: emanuele.cordano@xxxxxxxx ,emanuele.cordano@xxxxxxxxx

  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: