comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Multiple datasets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Multiple datasets [message #65530] Tue, 10 March 2009 18:46
Shawn[1] is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: contour labeling
Next Topic: Re: Multiple datasets

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 19:13:10 PDT 2025

Total time taken to generate the page: 2.07866 seconds