This library provides a high-level Clojure interface to the HDF5 library for storing scientific data. It is built on top of the JHDF5 library, which provides a high-level Java interface. While JHDF5 can be used directly from Clojure, this additional layer adds a lot of convenience:
This library is work in progress. Only scalar and 1D array data are supported at the moment, both for datasets and attributes.
This library uses CISD's JHDF5 libraries. We have published these libraries to clojars.org for your convenience. Solaris is at the moment not supported.
API documentation can be rebuilt using leiningen and codox:
lein doc
;; Create and open a new HDF5 file / storage container
(def myh5root
(create (clojure.java.io/file "/path/to/file.h5")))
;; Open an existing HDF5 file (read-only)
(def myh5root
(open (clojure.java.io/file "/path/to/file.h5")))
;; Open an existing HDF5 file (read-write)
(def myh5root
(open (clojure.java.io/file "/path/to/file.h5" :read-write)))
;; Close a file
(close myh5root)
;; Create a group in an HDF5 file
(create-group myh5root "examplegroup")
;; Create an attribute of the HDF5 root /
(create-attribute myh5root "myattribute" "some value")
;; ... more
https://wiki-bsse.ethz.ch/display/JHDF5/JHDF5+(HDF5+for+Java)
Can you improve this documentation? These fine people already did:
Peter Schmiedeskamp & hokkaidoEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close