Datatype when save matrices in HDF5 file

jisutich
Wed, 01 Mar 2023 02:03:06 +0000
General Usage

Hi,

I am trying to write a HDF5 file in Julia. Now suppose I want to create a dataset mydataset which contains a matrix A in the group mygroup, what datatype should I use in the function create_dataset? (In the document, the function looks like create_dataset(parent, path, datatype, dataspace; properties…)).

Also, suppose I want to save an object which is a list of matrices [A1,A2,A3,A4], what datatype should I use?

Finally, if A is a static array. Should I transform it to a normal array before saving it to the HDF5 file? I want to make sure that I can read the dataset in python.

Thanks

3 posts - 2 participants