I created a compound dataset using the following api.
file = new H5File(FILENAME, FileFormat.CREATE);
file.open();
long[] dims = {10000, 10};
long[] maxdims = {-1, -1};
long[] chunks = {100, 10};
int gzip = 4;
Dataset d = file.createCompoundDS(FILENAME, null, dims,
maxdims, chunks, gzip, memberNames, memberDatatypes, memberSizes, data);
Now, a dataset "d" of size 10000x10 is created. How to extend the created
dataset?
(ie.) I want to add 10000 more rows to the dataset.
I tried using,
long[] start = dataset.getStartDims();
long[] sizes = dataset.getSelectedDims();
start[0] = 10001;
start[1] = 0;
sizes[0] = 20001;
sizes[1] = 10;
dataset.write(new_data);
I expected the dataset to get extended (from rows size to 10000 to 20000).
But instead the already written dataset is rewritten with the new_data. :(
May I know what I am missing here? How to extend a compound dataset?
Thanks in advance.
Kalpa
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org