Retrieving fields with polytopeΒΆ

The polytope source provides access to the Polytope web services.

The following example retrieves data from the ECMWF MARS archive using polytope. The dataset was prepared for the OGC GeoDataCubes working group, see details here.

[1]:
import earthkit.data as ekd

request = {
    "stream": "oper",
    "levtype": "pl",
    "levellist": "500",
    "param": "129.128",
    "step": "0/12",
    "time": "00",
    "date": "20200915",
    "type": "fc",
    "class": "rd",
    "expver": "hsvs",
    "domain": "g",
}

ds = ekd.from_source("polytope", "ecmwf-mars", request, stream=False)
ds.to_fieldlist().ls()
[1]:
parameter.variable time.valid_datetime time.base_datetime time.step vertical.level vertical.level_type ensemble.member geography.grid_type
0 z 2020-09-15 00:00:00 2020-09-15 0 days 00:00:00 500 pressure 0 None
1 z 2020-09-15 12:00:00 2020-09-15 0 days 12:00:00 500 pressure 0 None
[ ]: