how to append data in hdf5 file.

23 次查看(过去 30 天)
hdf5write('check_v1.h5','/g1/coordinates',all_data);
hdf5write('check_v1.h5','/g2/coordinates_vel',all_data1);
How do i append the above two datasets?
h5disp('check_v1.h5') %shows the last dataset i write
HDF5 check_v1.h5
Group '/'
Group '/g2'
Dataset 'coordinates_vel'
Size: 11272228
MaxSize: 11272228
Datatype: H5T_COMPOUND
Member 'VelocityX': H5T_IEEE_F64LE (double)
Member 'VelocityY': H5T_IEEE_F64LE (double)
Member 'TargetXCoord': H5T_IEEE_F64LE (double)
Member 'TargetYCoord': H5T_IEEE_F64LE (double)
ChunkSize: []
Filters: none
FillValue: H5T_COMPOUND

采纳的回答

Walter Roberson
Walter Roberson 2022-8-11
hdf5write('check_v1.h5','/g1/coordinates',all_data);
hdf5write('check_v1.h5','/g2/coordinates_vel',all_data1, 'WriteMode', 'append');

更多回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by