HDF_VG_SETINFO
Syntax | Arguments | Keywords | Examples | Version History | See Also
The HDF_VG_SETINFO procedure sets the name and class of a VGroup.
Syntax
HDF_VG_SETINFO, VGroup [, CLASS=string] [, NAME=string]
Arguments
VGroup
The VGroup handle as returned by HDF_VG _ATTACH.
Keywords
CLASS
A string containing the class name for the VGroup.
NAME
A string containing the name for the VGroup.
Examples
fid = HDF_OPEN('demo.hdf',/RDWR) ; Open an HDF file:
vgid = HDF_VG_ATTACH(fid, -1, /WRITE) ; Add a new VGroup:
; Set the name and class for the VGroup:
HDF_VG_SETINFO, vgid, NAME='My Name', CLASS='My VGroup Class'
; Retrieve the name and class information from the file:
HDF_VG_GETINFO, vgid, NAME=outname, CLASS=outclass
; Print information about the returned variables:
HELP, outname, outclass
; End VGroup access:
HDF_VG_DETACH, vgid
; Close the HDF file:
HDF_CLOSE, fid
IDL Output
Version History