Glocate | R Documentation |
Find the position of a particular message (field) insiode a GRIB file.
Glocate(filename,IntPar=list(),DblPar=list(),StrPar=list(),...)
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. |
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.
Gdec
, Gopen
, Ginfo
## Not run:
#Find T2m in a file:
Glocate('filename',StrPar=list(shortName="t2"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.