Hi Guillaume,

On Sep 29, 2011, at 7:28 AM, guillaume wrote:

> Hello,
> 
> I have a compound dataset which is something like:
> INT64, INT8, INT16, INT8
> 
> What I would like to do is only read INT64 and INT8 (1st and 3rd position).
> Can I achieve that using hyperslab selection ?
> 
> I tried but it seems that hyperslab selection works in number of "elements"
> (in my cas compound type which is (INT64+INT8+INT16+INT8). Is there any way
> around ?
> 
> I also saw that H5TB (in code H5TBread_fields_index) is using hyperslab to
> select rows and creates a compound type using offsets for reading. It is the
> only way ?
> 
> What I like with hyperslab is the possibility to save a selection in a
> dataset, if i'm using the H5TB way I loose the ability to save selection.

        I don't know if you can select individual fields with the H5TB 
interface, but this is possible with the lower level (main) APIs.  Here's an 
example program that shows how to do this:

http://www.hdfgroup.org/HDF5/doc/Intro/IntroExamples.html#Compound

        Quincey


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

Reply via email to