Hi Guillaume,

On Sep 29, 2011, at 9:35 AM, guillaume wrote:

> What I meant was: reading "a_name" and "b_name" together into a new
> "variable" with size of 16 bits. This new variable being "a_name << 8 |
> b_name". But according to your answer, it doesn't seem to be possible as it
> is not how H5D reads internally.

        Ah, yes, the HDF5 library won't do that.  You could "fake" it by laying 
out your struct in memory such that 'a_name' and 'b_name' are next to each 
other in memory and could be read in as separate fields and then treated by the 
application as the way you would like.

> So, as an alternative, is there any way to create a new dataset with
> "a_name" and "c_name" without having to copy data from DS1 to DS2 ? So that
> DS2 would use data from DS1 ?

        Not currently, although we've given the idea some thought.

        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