grib_open | R Documentation |
grib_open
opens a GRIB file for reading or writing and returns a GRIB
class object.
grib_open(file)
file |
|
grib_open
is the constructor function for the S3 GRIB class object.
The GRIB object is list with three elements: file
, handle
, and
isMultiMessage
. file
is the path to the opened file,
handle
is an externalptr
to the file
in memory, and
isMultiMessage
is a logical
indicating if there are multiple
entries in any of the file
's messages.
Returns a GRIB
class object: see 'Details'.
grib_close
g <- grib_open(system.file("extdata", "lfpw.grib1", package = "gribr"))
g # shows status
grib_close(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.