Query on dataset region reference

All,

I have a dataset region references stored as a variable length data in a
dataset . These dataset region references can belong to different
datsets or same datasets . When I read these dataset region references
these are the steps I do .

1. Dereference the dataset region reference and obtain a dataset hid_t .

2. Get the dataset region.

Since I do not know the type of the data written in the dataset , I try
reading all possible datatype I can store as per my requirements hoping
that the read will succeed for the correct datatype. Now for any type I
use in the H5Dread the result is always a success . Why does the read
not fail for the wrong datatypes ?

Regards

Ramakrishnan

Hi Ramakrishnan,

···

On Jun 16, 2008, at 7:51 AM, Ramakrishnan Iyer wrote:

All,

I have a dataset region references stored as a variable length data in a dataset . These dataset region references can belong to different datsets or same datasets . When I read these dataset region references these are the steps I do .

1. Dereference the dataset region reference and obtain a dataset hid_t .

2. Get the dataset region.

Since I do not know the type of the data written in the dataset , I try reading all possible datatype I can store as per my requirements hoping that the read will succeed for the correct datatype. Now for any type I use in the H5Dread the result is always a success . Why does the read not fail for the wrong datatypes ?

  Why don't you query the datatype of the dataset you've opened through the reference?

    Quincey

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.