Greetings Nhan, Which method are you using to point to the netCDF C library? http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/reference/netcdf4Clibrary.html Cheers! Sean > Hi list, > > I'm trying to export a file in the NetCDF 4 format using NetCDF Java. I > have followed the instructions to install the C library and it seems to be > loaded successfully with netcdfAll-4.3.jar. However, the exported file does > not contain variables with Structure data type. I have found this > https://bugtracking.unidata.ucar.edu/browse/TDS-391 and assume it is not > possible to export Structures with NetCDF 4.3. The issue seems to be > resolved in version 4.5; however when I switch to netcdfAll-4.5.jar the > exporting fails at writer.create() with the following error message: > > Cannot determine Netcdf4 library path > java.lang.NullPointerException > at ucar.nc2.jni.netcdf.Nc4Iosp.create(Nc4Iosp.java:2251) > at ucar.nc2.jni.netcdf.Nc4Iosp.create(Nc4Iosp.java:2251) > at ucar.nc2.NetcdfFileWriter.create(NetcdfFileWriter.java:794) > > I have installed the C library netCDF4.3.2-NC4-64.exe from here: > http://www.unidata.ucar.edu/software/netcdf/docs/winbin.html. > > Could someone give me a pointer? > > Cheers, > Nhan Ticket Details =================== Ticket ID: RWH-394641 Department: Support netCDF Java Priority: Low Status: Open
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.