Skip to content
A pure Java implementation of HDF5
Branch: master
Clone or download
Latest commit 8ef5ff7 May 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jhdf Add test for missing filters May 24, 2019
.gitignore Add .gitignore Jun 14, 2018
CHANGES.md Updates for v0.4.3 May 15, 2019
LICENSE Update license date Mar 11, 2019
README.md Improve IDE support May 22, 2019
azure-pipelines.yml Add Mac builds Mar 20, 2019
bitbucket-pipelines.yml Update pipeline build config Jun 14, 2018

README.md

jHDF - Pure Java HDF5 library

Build Status Quality Gate Status Coverage Download Maven Central Javadocs

This is a hobby project for me to see if I can write a loader for HDF5 files. The file format specification is available from the HDF Group here. More information on the format is available on Wikipedia.

The intension is to make a clean Java API to access HDF5 data. Currently the project is targeting HDF5 1.8 read-only compatibility. For progress see the change log.

Here is an example of reading a dataset with jHDF (see ReadDataset.java)

File file = new File("/path/to/file.hdf5");
try (HdfFile hdfFile = new HdfFile(file)) {
	Dataset dataset = hdfFile.getDatasetByPath("/path/to/dataset");
	// data will be a Java array with the dimensions of the HDF5 dataset
	Object data = dataset.getData();
}

For an example of traversing the tree inside a HDF5 file see PrintTree.java

Developing jHDF

  • Clone this repository.
  • Inside the jhdf directory run ./gradlew build (./gradlew.bat build on Windows) this will run the build and tests fetching dependencies.
  • Import the Gradle project jhdf into your IDE
  • Add tests and make changes
  • Once you have made any changes please open a pull request.

To see other available Gradle tasks run ./gradlew tasks

You can’t perform that action at this time.