grib_to_geo
Converts the first field in GRIB data (Fieldset
) into Geopoints
. The result is in ASCII format, and is stored as a set of separate points rather than as a grid. Note that grib_to_geo()
can only converts GRIB data which is in a supported gridded format - for example, data in spherical harmonics cannot be converted. For the reverse computation, see geo_to_grib()
.
Note
This function performs the same task as the Grib To Geopoints icon in Metview’s user interface. It accepts its parameters as keyword arguments, described below.
- grib_to_geo(**kwargs)
Converts GRIB data (
Fieldset
) intoGeopoints
.- Parameters
data (
Fieldset
) – Specifies the GRIB data to be converted. Only the first field will be converted. In the user interface any icon containing or returning GRIB data can be used here (e.g. a GRIB icon or a MARS Retrieval icon etc).geopoints_format ({"traditional", "xyv"}, default: "traditional") – Specifies which of two geopoints_formats should be used for the output - either “traditional” (6 columns including date, time and level) or “xyv” (just 3 columns - longitude, latitude and value). See
Geopoints
for details on these formats.missing_data ({"ignore", "include"}, default: "include") – Specifies whether to include points with missing values from the GRIB field in the resulting
Geopoints
.
- Return type