'Write Chunked data array to HDF5
I have this code to write an array to Hdf5 with HDF5Sharp. But the problem is that I need the data to be written in chunks of 1 x 100 x 500 instead of 100k x 100 x 500 and I cannot figure out how to do it.
using HDF5CSharp;
// array of 100k x 100 x 500
float[,,] traindata = new float[100000, 100, 500];
// ...
// fill the array with data
// ...
long fileId = Hdf5.CreateFile("d:\\Temp\\Test.H5");
var groupId = Hdf5.CreateOrOpenGroup(fileId, "data");
Hdf5.WriteDataset(groupId, "data", traindata);
Hdf5.CloseGroup(groupId);
Hdf5.CloseFile(fileId);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
