Gwrite | R Documentation |
Writes a GRIB message.
Gwrite(gribhandle,filename,append=TRUE)
gribhandle |
An object of class |
filename |
Character string giving the file name to write the message to. If the file does not yet exist, it is created. If it already exists, behaviour depends on |
append |
Logical. If TRUE, the message is appended to the file (if it exists). If FALSE, the complete file is overwritten. |
NULL
Gdec
, Gopen
, Gmod
## Not run:
#Get first 5 records of a file.
mygrib <-Ghandle('filename',1)
#return level info from all messages in the file:
Gwrite(mygrib,newfile,append=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.