Writing to a Vgroup


Contents:



How to Write to a Vgroup

Following are functions used in writing to Vgroups: (Functions in bold are included in the program example for this tutorial.)

Sample program to Add an SDS to a Vgroup

The following program adds an SDS to a Vgroup (You can either download the C or FORTRAN program at the end, or just take a look at the HTML version with the HDF calls highlighted): If you have downloaded this program, then you can compile and run it. It creates an HDF file called vg_sd1.hdf (for FORTRAN, vg_sd1f.hdf). You can view the contents of the HDF file that gets created by this program, in the next section, "Contents of HDF File Created".

This program uses Vaddtagref to add the SDS object to the Vgroup. If you were adding another Vgroup or a Vdata to a Vgroup, then you could also use the Vinsert function. Following is a detailed review of what this program does:


Contents of HDF File Created

You can view the contents of the HDF file that gets created, by using the vshow or the hdp command.

The output using vshow and hdp dumpvg are very similar. With vshow it looks as follows:


Download Sample Program (optional)

Programs used in this tutorial: [Compiling a program]