Extenstions to HDF5.jl
Author AStupidBear
5 Stars
Updated Last
2 Years Ago
Started In
October 2019

Extensions to HDF5.jl

Build Status Coverage


using Pkg
pkg"add HDF5Utils"


using HDF5, HDF5Utils

Save data with 8-byte alignment for reading back later using mmap.

h5save("test.h5", Dict("x" => UInt8[0], "y" => Float64[0]))
h5open(tryreadmmap, "test.h5")

Convert String to MaxLenString to save space.

MLString{5}.(["a", "b"])

Save MaxLenString as HDF5's fixed size string.

h5save("test.h5", Dict("x" => MLString{5}["α" "β"; "γ" "δ"]))

Save NamedTuple as HDF5's compound.

h5save("test.h5", Dict("x" => [(a = 1, b = 1f0)]))

Concatenate datasets in multiple HDF5 files along a given dimension (-2 represents end - 1).

h5concat("concat.h5", repeat(["test.h5"], 100), dim = -2)