What about using a single dataset with an added dimension? All of your images are probably of the same size, say, j * k. Then, if you have N pictures, make a dataset with shape (j, k, N). The final index will be the index of the image. Store a "metadata" dataset (a regular dataset in h5py speak) of length N with some sort of information about the images - say, text strings, floating point numbers to describe a parameter, or similar. Then, the third index in the image dataset and the index of the "metadata" dataset are the link between the metadata and the image.
This is a commonly used trick in programming, too - for instance, I regularly store a large number of 4x4 matrices in an Nx4x4 array. Should work for hdf5 datasets, too.
Cheers,
Paul.
> --
> You received this message because you are subscribed to the Google Groups "h5py" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/h5py/-/2BI0hMuNuygJ.
> To post to this group, send email to h5...@googlegroups.com.
> To unsubscribe from this group, send email to h5py+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/h5py?hl=en.
--
You received this message because you are subscribed to a topic in the Google Groups "h5py" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h5py/eLoXU3LL4qU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h5py+unsubscribe@googlegroups.com.