Reading a Vdata


Contents:



Functions to Read a Vdata

Following are some of the functions you can use to obtain information regarding a Vdata: (The functions in bold are used in the program examples in this tutorial.)

Sample Program to Read a Vdata

The vd_ex5 program is a sample program for reading a Vdata. This program reads the HDF file created in the previous tutorial, "Writing Mixed Field Data Types". You can either download the C or FORTRAN vd_ex5 program at the end, or just look at the HTML version, with HDF functions highlighted:

If you have downloaded this program, then compile and run it. To see the output of this program, look in the next section entitled "Output of Program to Read a Vdata".

Following is a detailed review of what the vd_ex5 program does:


Output of Program To Read a Vdata

The output of the program is:

Questions

How would you use VSfind instead of VSgetid in this example?

What would you do to read specific fields?


Download Sample Program (optional)

Programs used in this tutorial:

[Compiling a program]