Hi, I have some code that creates and writes to an Hdf5 file. However, the size of this file depends on a user input resolution for the images they would like saved. The large resolution 2448x2048 works perfectly fine. However, when those variables switch to 1224 x 1024 the file can no longer be opened in the H5 Viewer. This is weird because the file size is exactly what I would expect. For example, if I took 1 image the file size is roughly 1224*1024 + some overhead. The large resolution opens and works and I can see all of the data, but the smaller version does not work. I’m perplexed because all I’m changing is the value of the parameter I pass in.
I’ll post some code here:
This initializes my file:
This writes to the file and extends it when a new image is grabbed ignore the mutexes and whatnot: