Gdomain: Extract domain from GRIB message

GgridR Documentation

Extract domain from GRIB message

Description

returns the grid specifications for a GRIBhandle. Ggrid is the old name and is obsolete. Do not use it!

Usage

  Gdomain(gribhandle)
  Ggrid(gribhandle)

Arguments

gribhandle

An object of class "GRIBhandle" (or a file name or a GRIBlist, in which case field must be specified as an integer or a name.)

Details

takes an object of class "GRIBhandle" as input and returns the domain specification as a geodomain class. Note that only a limited number of projections are supported.

Value

A geodomain class object describing the grid. The data of the grib handle is not decoded.

See Also

Gdec, Ghandle, GRIBhandle

Examples

## Not run: 
#Get first 5 records of a file.
h1 <- Ghandle('filename',5)
#decode first record
mydata <- Gdec(h1)

## End(Not run)

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