Re: question about renaming a HDF5 dataset...


Bear in mind that the "names" are on links, not on the dataset.

Renaming is really chaning the name of one of the links to an object.

So you can always rename something by creating a new link to it and
deleting the old.  (H5Glink, unlink).

The Gmove does this in one atomic operation.

So either way does the same thing, whichever fits best to what you
are doing.

Robert E. McGrath
National Center for Supercomputing Applications
University of Illinois, Urbana-Champaign
Champaign, Illinois 61820


On Mon, 1 Aug 2005, Ed Hartnett wrote:

Quincey Koziol <koziol@xxxxxxxxxxxxx> writes:

Hi Ed,

Is there any easy way to rename an existing HDF5 dataset?

    H5Gmove2()  :-)



Just what I needed.

Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx