how do i get groupid using fileid and group path? #148
Answered
by
LiorBanai
mayurmungi
asked this question in
Q&A
-
HI, |
Beta Was this translation helpful? Give feedback.
Answered by
LiorBanai
Aug 31, 2021
Replies: 1 comment
-
Hi, for example: string filename = @"d:\test.h5";
var fileId = Hdf5.OpenFile(filename, true);
var exist= Hdf5.GroupExists(fileId, "/root/eit/d1"); for groupId: public static long CreateOrOpenGroup(long fileOrGroupId, string groupName)
{
return (Hdf5Utils.ItemExists(fileOrGroupId, groupName, Hdf5ElementType.Group))
? H5G.open(fileOrGroupId, Hdf5Utils.NormalizedName(groupName))
: H5G.create(fileOrGroupId, Hdf5Utils.NormalizedName(groupName));
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LiorBanai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
You have 2 methods:
Hdf5.GroupExists(fileorGroupId, nameOfGroup);
for example:
for groupId: