The HDF_VG_SETINFO procedure sets the name and class of a VGroup .
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.
OUTCLASS STRING = 'My VGroup Class'