Locate GRIB message inside a file
Glocate.Rd
Find the position of a particular message (field) insiode a GRIB file.
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.
Examples
if (FALSE) {
#Find T2m in a file:
Glocate('filename',StrPar=list(shortName="t2"))
}