Gfind | R Documentation |
Find the position of a particular message (field) inside a GRIB file.
Gfind(griblist, shortName = "t", level = NULL, levelType = "P",
all = FALSE, ...)
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. |
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.
A vector with the message indices of all messages that satisfy the required values of the parameters.
Glocate
## Not run:
#Find T2m in a file:
Gfind('filename',"z",levelType="P",level=500)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.