Skip to contents

Find the position of a particular message (field) insiode a GRIB file.

Usage

Glocate(filename,IntPar=list(),DblPar=list(),StrPar=list(),...)

Arguments

filename

Either a character string (filename) or a GRIBlist object. Anything that has a Ginfo method.

IntPar, StrPar, DblPar

Lists of parameters and their values for the wanted field.

...

Options for Ginfo.

Value

A vector with the message indices of all messages that satisfy the required values of the parameters.

Details

The function works by first calling Ginfo for the list of chosen parameters. Then the list is searched for messages that satisfy all the required values.

See also

Examples

if (FALSE) {
#Find T2m in a file:
Glocate('filename',StrPar=list(shortName="t2"))
}