h5lt - h5ltget_dataset_info_f - read the dataset

Hello,

I use fortran and the API lite version 1.8.3 on Ubuntu 9.04.

···

--------------
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
--------------

I'd like to read a dataset with the API lite, but I don't know in advance the type of the stored data.

data can be integers or reals.
I wonder if h5ltget_dataset_info_f function is enough to get necessary information,
I don't succeed in comparing something with H5T_NATIVE_INT or H5T_NATIVE_REAL.

Finally, what should I do to know whether data are integers or reals ?

Thanks a lot,

Cyril.

I've found the solution.

I should have compared the type_class parameter to H5T_INTEGER_F, H5T_FLOAT_F ... for the H5T module.

Cyril.

----- Mail Original -----

···

De: "cyril giraudon" <cyril.giraudon@free.fr>
À: hdf-forum@hdfgroup.org
Envoyé: Jeudi 1 Octobre 2009 17h55:29 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: [Hdf-forum] h5lt - h5ltget_dataset_info_f - read the dataset

Hello,

I use fortran and the API lite version 1.8.3 on Ubuntu 9.04.
--------------
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
--------------

I'd like to read a dataset with the API lite, but I don't know in advance the type of the stored data.

data can be integers or reals.
I wonder if h5ltget_dataset_info_f function is enough to get necessary information,
I don't succeed in comparing something with H5T_NATIVE_INT or H5T_NATIVE_REAL.

Finally, what should I do to know whether data are integers or reals ?

Thanks a lot,

Cyril.

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