Hi Baoyun,
On Sep 13, 2012, at 9:25 AM, Baoyun Li wrote:
> I am new to hdf5. how to retrieve partial data of vnl array in the file into
> mem
>
> Suppose I have a varialbe length array in disk as show below,
>
> HDF5 "vltypes.h5" {
> GROUP "/" {
> DATASET "Dataset" {
> DATATYPE H5T_VLEN { H5T_STD_U32LE}
> DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
> DATA {
> (0): (0), (10, 11), (20, 21, 22), (30, 31, 32, 33)
> }
> }
> }
> }
>
>
> I want the first { 0 )and the third {20,21,22} into the mem,
> can I use hyperslab to select partial of the array?
>
> I am confused since I don't know the first or third will form a hyperslab
> since the length is varied.
>
> Can somebody teach me how to do it?
Yes, this will work correctly with hyperslabs. Take a look in the
example subdirectory for examples of using hyperslabs (H5Sselect_hyperslab).
Quincey
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org