I’m experiencing the perfect storm as I’m a relative newby to python and hdf5.
I have a situation where I’d like to store image data. I’ve had success producing results when storing as a simple 2D array. However, I’d like to store additional ‘meta’ data for each data set that includes a timestamp. So the data would look something like:
I’ve seen examples of using compound data for scalars and strings but have not found anything for compound types storing arrays along with scalar values. I DID find a solution that uses pytables - is that the best solution?
In short, I’m trying to figure out how to create the correct dtype. In this case, how does ‘???’ translate to a 2D byte array?
dt = np.dtype( [???, (‘timestamp’, np.float)] )