Gopen: Open a Grib file

GopenR Documentation

Open a Grib file

Description

Reads the basic information of a Grib file (not the data itself).

Usage

  Gopen(filename, IntPar = c(), 
    DblPar = c(), StrPar = c(),
    multi = FALSE, lextra=TRUE) 

Arguments

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.

Value

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")

See Also

Ginfo, Gdec, iview

Examples

## Not run: 
#Get first 5 records of a file.
mylist <- Gopen('filename')
#one grib record:
mylist[1,]
Gdec(mylist,1)

## End(Not run)

harphub/Rgrib2 documentation built on June 4, 2024, 7:27 a.m.