The GRIB_INDEX_NEW_FROM_FILE function creates a new index from a file. The file is indexed with Keys.
Examples
See GRIB_GET_VALUES for a general example using the GRIB routines.
Syntax
Result = GRIB_INDEX_NEW_FROM_FILE( Filename, Keys)
Return Value
Returns a GRIB file index.
Arguments
Filename
A string giving the name of the message file to be indexed.
Keys
A string array of keys for the index. For example, 'totalLength:d, editionNumber:l, centre:d'. The key type can be explicitly declared by appending ':l' for LONG, ':d' for DOUBLE, and ':s' for STRING to the key name. If the type is not declared explicitly, the native type is assumed.
Version History
See Also
GRIB_INDEX_RELEASE