Reading Annotations


Contents:



How to Read Annotations

Typical functions for reading annotations are as follows:

Sample Program

The an_read program is a sample program for reading annotations.

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 reads an HDF file called an.hdf, and prints out the total number of annotations and the annotations.

Following is a detailed review of what this program does:


Output from Sample Program

Following is the output from the an_read program:
Number of file labels:       1
Number of file descriptions: 1
Number of data labels:       1
Number of data descriptions: 1

File Label:       This is a file label.     
File Description: This is a file description.
Data Label:       This is a data label.     
Data Description: This is a data description.

Download Sample Program (optional)

Programs used in this tutorial: [Compiling a program]