HDF_VG_SETINFO

The HDF_VG_SETINFO procedure sets the name and class of a VGroup .

Calling Sequence

HDF_VG_SETINFO, VGroup

Arguments

VGroup

The VGroup handle as returned by HDF_VG _ATTACH.

Keywords

CLASSNAME

A string containing the class name for the VGroup.

NAME

A string containing the name for the VGroup.

Example

fid = HDF_OPEN('demo.hdf',/RDWR) ; Open an HDF file.

vgid = HDF_VG_ATTACH(fid, -1, /WRITE) ; Add a new VGroup.

HDF_VG_SETINFO, vgid, NAME='My Name', CLASS='My VGroup Class'
; Set the name and class for the VGroup.

Now retrieve and show the information

HDF_VG_GETINFO, vgid, NAME=outname, CLASS=outclass
; Retrieve the name and class information from the file.

HELP, outname, outclass ; Print information about the returned variables.

IDL prints:

OUTNAME STRING = 'My Name'

OUTCLASS STRING = 'My VGroup Class'

HDF_VG_DETACH, vgid ; End VGroup access.

HDF_CLOSE, fid ; Close the HDF file.

See Also

HDF_VG_GETINFO