I have zero programming experience under windows, but I think you ought to be able to get away with using the "lite" API for what you're doing:
http://www.hdfgroup.org/HDF5/doc/HL/RM_H5LT.html

probably H5LTread_dataset_double.

On 04/02/2012 09:41 AM, andrea battistoni wrote:
Hi,
I'm new in this forum and also in the "hdf world" so I hope I'll be clear in exposing my problem. I have to manage some data from a .h5 file. I can explore its structure through a viewer, but I want to extract some raw data in order to make a c program to manipulate them. In attachment I send you a typical file I have. In particular I want to extract the columns under /scalar/Ch1 and scalar/iom_sh_a. Is there any _simple _way to do this?? I tried to read the documentation about the library but they seem too complex for me! Can U help me?

Of course I downloaded the library for my Visual Studio 2008 (My OS is Windows 7) and I would write, in my dreams, a program such this:

...
double data_Ch1[100];
char* file_name='Ti_F1200_Al_Scan1_pico0_62232067.h5';
char* group_name='scalar';
char* dataset_name='Ch1';
data_Ch1=/H5_give_me_what_I_want/(file_name, group_name, dataset_name);
...

Is it possibile to do something similar?
I know I'm asking so much, but I've lost so much time in order to understand how to solve my problem that I realized that I need some help!
Thank all of U.


--
Dr. Andrea Battistoni
PhD Student at the University of Trieste
EIS group, Sincrotrone Elettra, Trieste, Italy


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

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

Reply via email to