Locate GRIB message inside a file
Gfind.Rd
Find the position of a particular message (field) inside a GRIB file.
Arguments
- griblist
Either a character string (filename) or a GRIBlist object. Anything that has a Ginfo method.
- shortName
A character to be matched to the "shortName" field, or an integer to be matched to the parameter index. Currently, table2Version is not taken into account. Use Glocate for more detailed searches.
- level, levelType
An integer according to the GRIB level type. It may also be a character similar to FA files ("P"=100,"H"=105 or "S"=107). This is only taken into account if level!=NULL.
- all
If TRUE, all fields are returned. if FALSE, only the position(s)
- ...
Not used. Added for HARP compatibility.
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.