When using Mat_VarWriteAppend to append data in HDF5 file format, an error will be reported if the amount of data appended exceeds the existing data. However, the total amount of data in the file has not exceeded the upper limit.
For example, if the existing data is a float32 array of size 10x100000, and I try to append a new array of size 10x200000, an error will occur.
When using Mat_VarWriteAppend to append data in HDF5 file format, an error will be reported if the amount of data appended exceeds the existing data. However, the total amount of data in the file has not exceeded the upper limit. For example, if the existing data is a float32 array of size 10x100000, and I try to append a new array of size 10x200000, an error will occur.
`
`
HIF5-DIAG: Error detected in HF5 (1.8.22) thread 0:
000: D:\hdf5\hdf5-1.8.22\src\H5Dio.c line 303 in H5Dwrite(): file selection + offset not within extent
major: Dataspace minor: Out of range
I find the reason: the dim is not right... success = Mat_VarWriteAppend(mat, newVar,MAT_COMPRESSION_NONE,1);