Re: [netcdfgroup] how to link netcdf4 to R package ncdf4

Hi Emanuele

Barring bugs, it should not be possible to install ncdf4 correctly without
it knowing where the libraries are. I think it's more likely that the
netcdf  library was not compiled with netcdf version 4 support enabled.
When you do "nc-config --all" from your command line, what does it report?

Also, am I right in assuming that this is a typo: "netcdf-4 and hfd4
library"? You need the hdf5 library for modern (version 4) functionality,
not the hdf4 library.
Regards,

--Dave

On May 9, 2014 4:32 AM, "Emanuele Cordano" <emanuele.cordano@xxxxxxxxx>
wrote:

> 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
>
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: