|
an_id
|
IN:
|
Multifile annotation interface identifier returned by ANstart
|
|
index
|
IN:
|
Location of the annotation in the file
|
|
annot_type
|
IN:
|
Annotation type
|
|
Example
|
This example illustrates the use of ANselect in returning the fourth file label in a file:
|
#include "hdf.h"
int32 an_id, ann_id, file_id, stat;
ann_type annot_type = AN_FILE_LABEL;
int32 index = 4;
file_id = Hopen("myfile", DFACC_READ, 0);
an_id = ANstart(file_id);
ann_id = ANselect(an_id, index, annot_type);
...
stat = ANendaccess(ann_id);
stat = ANend(an_id);
Hclose(file_id);
FORTRAN integer function afselect(an_id, index, annot_type)
integer an_id, index
integer annot_type