Write a GRIB message (handle) to a file.
Gwrite.Rd
Writes a GRIB message.
Arguments
- gribhandle
An object of class
GRIBhandle
.- 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
.- append
Logical. If TRUE, the message is appended to the file (if it exists). If FALSE, the complete file is overwritten.
Examples
if (FALSE) {
#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)
}