Gmod | R Documentation |
Modifies parameter entries and/or data in a GRIBhandle.
Gmod(gribhandle,IntPar=list(),DblPar=list(),StrPar=list(),data=NULL,
precision=NULL, nbits=NULL)
gribhandle |
An object of class |
IntPar , DblPar , StrPar |
Lists (or character vectors) giving the names of integer, character (string) and numeric (double) parameters to be modified in the message(s), and the new values. |
data |
Data vector to be encoded in x. |
precision |
Integer value for decimal precision of the GRIB packing. Alternatively, one may fix the number of bits per value. |
nbits |
Bits per value in the GRIB packing. If it is not precisied, GRIB\_API defaults to 24 bits. |
No return value (NULL).
Gdec
, Gopen
, Gmod
, Gwrite
## Not run:
#Get first 5 records of a file.
mygrib <-Gopen('filename')
#return level info from all messages in the file:
a <- Ghandle(mygrib,1)
Gmod(a,IntPar=list(typeOfLevel=105,level=500),data=Gdec(a)*5)
Gwrite(a,file=newfile,append=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.