[ri, gr]_id
|
IN:
|
Identifier of the general raster image or the GR interface identifier returned by GRstart
|
attr_index
|
IN:
|
Index of the attribute(s)
|
values
|
OUT:
|
Buffer for the attribute values
|
Example
|
This example illustrates the use of GRgetattr to read the attributes of a general raster image:
|
#include "hdf.h" int32 ri_id, gr_id, stat, attr_index; int32 attr_values[2]; ... ri_id = GRselect(gr_id, 0); attr_index = GRfindattr(ri_id, "Target attribute"); stat = GRgetattr(ri_id, attr_index, attr_values); ...