Multiple datasets [message #65530] |
Tue, 10 March 2009 18:46 |
Shawn[1]
Messages: 5 Registered: August 2008
|
Junior Member |
|
|
Hi all,
i have having some trouble displaying multiple datasets. I have a hdf5
file which consists of hundreds of datasets.
This is the function which i used to open one dataset:
file_ID = H5F_open(file_path)
dataset_ID = h5d_open(file_ID, 'CAPPI')
data_space = h5d_get_space(dataset_ID)
result_space = h5s_create_simple ([100,100,30])
;([x,y,z]) = result_space
vol_data=h5d_read(dataset_ID)
;vol_data=transpose(vol_data)
vol_data = TRANSPOSE(vol_data, [1, 0, 2])
vol_data = REVERSE(vol_data, 2)
h5s_close, result_space
h5s_close, data_space
h5d_close , dataset_ID
h5f_close, file_ID
But because, the dataset has to specify its dataset name, can anyone
suggest to me how to create a loop where i can open the datasets in a
loop. My datasets are named as CAPPI0, CAPPI1 etc. Thanks.
shawn
|
|
|