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

Home » Public Forums » archive » How to check for existence of an HDF5 group
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to check for existence of an HDF5 group [message #90182] Sat, 07 February 2015 10:24 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
Dear Folks,

I want to create new groups within an HDF5 file. Before creating a new group, however,
I'd like to check whether a group of the same name already exists. What's the right
way to do this?

Calling H5G_OPEN or H5G_GET_OBJINFO with a new group name throws an error.
I could write a wrapper routine that catches the error and returns a "group not found"
value but that seems kludgy.

H5_LIST returns a whole lot of information, which I suppose I could parse. That also seems
clunky.

Is there a more elegant solution? Something along the lines of FILE_TEST that works
for HDF5 groups (H5G_TEST, e.g.)?

All the best,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL to python bridge Library not loaded: libidl.8.5.dylib
Next Topic: =?UTF-8?B?UmU6INmF2LTYp9mH2K/YqSDYqNix2YbYp9mF2Kwg2LHYp9mF2LIg2KrYrdiqINin2YTYpw==?= رض حلقه 4 الشاب خالد

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

Current Time: Wed Oct 08 11:57:47 PDT 2025

Total time taken to generate the page: 0.00259 seconds