vnl array--how to retrieve partial data into mem

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?

Thanks

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/vnl-array-how-to-retrieve-partial-data-into-mem-tp4025384.html
Sent from the hdf-forum mailing list archive at Nabble.com.

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

Hi all,

in the following document:
http://www.hdfgroup.org/HDF5/doc/ddl.html

the element <named_dataspace> is used twice but it is not described.

Could I have more information about it ?

Regards

Calixte

Calixte, there is no such thing at the moment. The ability to
commit dataspaces and link them to a group might be supported in a future
version of the library. What is your scenario or use case?

Best, G.

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Calixte Denizet
Sent: Sunday, September 16, 2012 8:24 AM
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] Missing description in DDL

Hi all,

in the following document:
http://www.hdfgroup.org/HDF5/doc/ddl.html

the element <named_dataspace> is used twice but it is not described.

Could I have more information about it ?

Regards

Calixte

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Calixte, there is no such thing at the moment. The ability to
commit dataspaces and link them to a group might be supported in a future
version of the library. What is your scenario or use case?

Hi Gerd,

it was just for my information.

Regards

C

···

On 17/09/2012 14:13, Gerd Heber wrote:

Best, G.

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Calixte Denizet
Sent: Sunday, September 16, 2012 8:24 AM
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] Missing description in DDL

Hi all,

in the following document:
http://www.hdfgroup.org/HDF5/doc/ddl.html

the element<named_dataspace> is used twice but it is not described.

Could I have more information about it ?

Regards

Calixte

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org