go-hdf5
go-hdf5 copied to clipboard
**DEPRECATED** Go bindings to the HDF5 library
go-hdf5
Naive cgo bindings for the C-API of hdf5.
Status
FROZEN: this package is frozen. New developments should be requested to gonum/hdf5.
This package will stay as is to not break people relying on it.
But NO new developments will happen.
Requests for new features, bug fixes, etc... should be directed against gonum/hdf5 (but, do note that gonum/hdf5 API is still in flux).
NOTE that starting with Go >= 1.6, one needs to run with GODEBUG=cgocheck=0 to disable the new stricter CGo rules.
Documentation
http://godoc.org/github.com/sbinet/go-hdf5
Example
-
Hello world example: https://github.com/sbinet/go-hdf5/blob/master/cmd/test-go-hdf5/main.go
-
Writing/reading an
hdf5with compound data: https://github.com/sbinet/go-hdf5/blob/master/cmd/test-go-cpxcmpd/main.go
Note
- Only version 1.8.x of
HDF5is supported. - In order to use
HDF5functions in more than one goroutine simultaneously, you must build the HDF5 library with threading support. Many binary distributions (RHEL/centos/Fedora packages, etc.) do not have this enabled. Therefore, you must build HDF5 yourself on these systems.
Known problems
- the
h5ptpacket table interface is broken. - support for structs with slices and strings as fields is broken
