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

Home » Public Forums » archive » Obtaining all values of an HDF5 attribute w/o looping
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
Obtaining all values of an HDF5 attribute w/o looping [message #82386] Thu, 06 December 2012 22:53
dshadovi is currently offline  dshadovi
Messages: 15
Registered: March 2012
Junior Member
I've got HDF5 files that look like this:

/group1
datasetA
attribute xyz
/group2
datasetA
attribute xyz
/group3
datasetA
attribute xyz

I can examine the value of each instance of attribute xyz like so:

print, f.group1.datasetA.xyz._data
print, f.group2.datasetA.xyz._data
print, f.group3.datasetA.xyz._data

Is there a way that I can grab all values of xyz without resorting to a loop? Something like the following (none of which work):

print, f.group*.datasetA.xyz._data
print, f[group*].datasetA.xyz._data
print, f["group*"].datasetA.xyz._data

Thanks for reading.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: JPEG image help - Easy for people who understand IDL?!
Next Topic: Re: Obtaining all values of an HDF5 attribute w/o looping

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

Current Time: Wed Oct 08 14:01:33 PDT 2025

Total time taken to generate the page: 0.00611 seconds