gr_id
|
IN:
|
General raster interface identifier returned by GRstart
|
n_datasets
|
OUT:
|
Number of datasets in the file
|
n_file_attrs
|
OUT:
|
Number of global attributes in the file
|
#include "hdf.h" int32 gr_id, n_datasets, n_file_attrs, gr_index; ... stat = GRgetfileinfo(gr_id, &n_datasets, &n_file_attrs); for(gr_index = 0; gr_index < n_datasets; gr_index++) { ri_id = GRselect(gr_id, gr_index); ... }
FORTRAN
|
integer function mgfinfo(gr_id, n_datasets, n_file_attrs)
|
|
integer gr_id, n_datasets, n_file_attrs
|