I would like to add data in chunks(2d arrays) to the dataset with unlimited size in Fortran.
Is there any way where I can simply open and extend the existing dataset without rewriting the whole data?
As I understood I have to open the file in RDWR mode:
CALL h5fopen_f(filename, H5F_ACC_RDWR_F, file, hdferr)
CALL h5dopen_f (file, dataset, dset, hdferr)
Extend dimensions, where
dims are old dimensions and
extdims = (/dims(1), dims(2)+5/) - add 5 more lines
CALL h5dset_extent_f(dset, extdims, hdferr)
Then, my question is how to write additional data without rewriting the old data? Can I somehow specify the initial index for writing?
CALL h5dwrite_f(dset, H5T_NATIVE_INTEGER, wdata2, extdims, hdferr)