[Top] [Prev] [Next] [Bottom]

SDnametoindex/sfn2index

int32 SDnametoindex(int32 sd_id, char *sds_name)
sd_id

IN:

SD interface identifier returned from SDstart

sds_name

IN:

Name of the dataset to index

Purpose

Determines the index assigned to the scientific dataset defined by sds_name.

Return value

Returns an sds_index if successful and FAIL (or -1) otherwise.

Description

The sds_index can be passed to SDselect to return an sds_id for the named dataset. This routine is case sensitive and will not accept wild cards. In addition, this routine will only return the sds_index for the first dataset with the given name.

FORTRAN

integer function sfn2index(sd_id, sds_name)

integer sd_id

character* (*) sds_name



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.