On 29 Apr 2011, at 18:19, Mark Kelly wrote:
Does anyone know how to retrieve the parent group from an open dataset or open child group? In other words, navigate 'backwards' from a child to the parent.
You can ask for the path to the node you have (H5Rget_name) and strip away the last part. Note that due to the complexities introduced by links and references, a node can have multiple names or even none at all, but in most practical situation this approach should work fine.
Konrad. -- --------------------------------------------------------------------- Konrad Hinsen Centre de Biophysique Moléculaire, CNRS Orléans Synchrotron Soleil - Division Expériences Saint Aubin - BP 48 91192 Gif sur Yvette Cedex, France Tel. +33-1 69 35 97 15 E-Mail: research at khinsen dot fastmail dot net --------------------------------------------------------------------- _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
