Routines (alphabetical) > Routines: G > GRIB Routines > GRIB_INDEX_GET_SIZE

GRIB_INDEX_GET_SIZE

The GRIB_INDEX_GET_SIZE function returns the number of distinct values of the Key contained in Gindex. Key must belong to Gindex.

Syntax

Result = GRIB_INDEX_GET_SIZE(Gindex, Key)

Return Value

Returns the number of distinct values in Gindex. 

Arguments

Gindex

A GRIB index created from a file. The index must have been created with Key.

Key

A case-sensitive string containing the key name whose number of values is to be determined.

Examples

See GRIB_GET_VALUESfor a general example using the GRIB routines.

Version History

8.1

Introduced