[netcdf-java] Write files with 64-bit long data types

hi,

so far I have used this

    nc2.NetcdfFileWriter.createNew(Version.netcdf3, location, null)

this creates files with this type of header:

00000000  43 44 46 01 00 00 00 00  00 00 00 0a 00 00 00 04
|CDF.............|
00000010  00 00 00 04 54 69 6d 65  00 00 00 b4 00 00 00 09
|....Time........|
00000020  4c 6f 6e 67 69 74 75 64  65 00 00 00 00 00 00 0c
|Longitude.......|
00000030  00 00 00 08 4c 61 74 69  74 75 64 65 00 00 00 24
|....Latitude...$|
00000040

now I have a problem where I have to include 64-bit long values, and
this seems to be unsupported: "long not support in netcdf-3"

So I tried chaing  this to

    nc2.NetcdfFileWriter.createNew(Version.netcdf4, location, null)

now this gives me error that it wants to use C (???) libraries:

    Nc4Iosp: NetCDF-4 C library not present (jna_path='/usr/local/lib/',
libname='netcdf').

What should I do? I need a solution that is cross-platform with
libraries pulled from a maven repository, no matter whether user runs
Linux, Windows, Mac.

Can I get a pure Java solution that supports 64-bit long? How?

thanks, .h.h.

Attachment: signature.asc
Description: OpenPGP digital signature

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