Simple Writing to a File


Contents:



Functions to Write to a Vdata

Typical functions that you would use to write to a Vdata are as follows:

Sample Program to Write a Simple Vdata

The vd_ex3.c (vd_ex3f.f) program is a sample program for writing out a Simple Vdata. You can either download the C or FORTRAN program at the end, or just take a look at the HTML version, with HDF calls highlighted: If you have downloaded this program, then you can compile and run it. It creates an HDF file called VD_Ex3.hdf (VD_Ex3f.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".

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, VD_Ex3.hdf (VD_Ex3f.hdf), using the hdp command. Following is the output you would get by examining the file with hdp:

Download Sample Program (optional)

Programs used in this tutorial: [Compiling a program]