Gopen | R Documentation |
Reads the basic information of a Grib file (not the data itself).
Gopen(filename, IntPar = c(),
DblPar = c(), StrPar = c(),
multi = FALSE, lextra=TRUE)
filename |
A character string pointing at a GRIB file. |
IntPar , DblPar , StrPar |
The list of additional keys (besides the mandatory ones) to be read for all records in the file. |
multi |
If TRUE, multi-field messages are allowed. |
lextra |
If TRUE, the GRIB-1 records not recognized by grib_api are matched to an internal table with some extra table2 versions. |
a data.frame of class GRIBlist
, containing the basic information of the data in the file.
The default keys that are read for every GRIB record are
IntPar_main = c("editionNumber", "dataDate", "dataTime",
"validityDate", "validityTime", "Nx", "Ny",
"table2Version", "indicatorOfParameter",
"parameterCategory", "parameterNumber",
"lavelType", "level"),
DblPar = c(), StrPar = c("shortName", "gridType")
Ginfo
, Gdec
, iview
## Not run:
#Get first 5 records of a file.
mylist <- Gopen('filename')
#one grib record:
mylist[1,]
Gdec(mylist,1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.