https://github.com/astupidbear/hdf5utils.jl
Extenstions to HDF5.jl
https://github.com/astupidbear/hdf5utils.jl
Last synced: 4 months ago
JSON representation
Extenstions to HDF5.jl
- Host: GitHub
- URL: https://github.com/astupidbear/hdf5utils.jl
- Owner: AStupidBear
- License: mit
- Created: 2019-10-08T19:40:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T09:25:47.000Z (about 3 years ago)
- Last Synced: 2025-04-29T16:53:17.882Z (5 months ago)
- Language: Julia
- Size: 97.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Extensions to HDF5.jl
[](https://github.com/AStupidBear/HDF5Utils.jl/actions)
[](https://codecov.io/gh/AStupidBear/HDF5Utils.jl)## Installation
```jl
using Pkg
pkg"add HDF5Utils"
```## Usage
```jl
using HDF5, HDF5Utils
```Save data with 8-byte alignment for reading back later using mmap.
```jl
h5save("test.h5", Dict("x" => UInt8[0], "y" => Float64[0]))
h5open(tryreadmmap, "test.h5")
```Convert String to MaxLenString to save space.
```jl
MLString{5}.(["a", "b"])
```Save MaxLenString as HDF5's fixed size string.
```jl
h5save("test.h5", Dict("x" => MLString{5}["α" "β"; "γ" "δ"]))
```
Save NamedTuple as HDF5's compound.```jl
h5save("test.h5", Dict("x" => [(a = 1, b = 1f0)]))
```Concatenate datasets in multiple HDF5 files along a given dimension (`-2` represents `end - 1`).
```jl
h5concat("concat.h5", repeat(["test.h5"], 100), dim = -2)
```