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.ls()
[1]:
centre shortName typeOfLevel level dataDate dataTime stepRange dataType number gridType
0 ecmf z isobaricInhPa 500 20200915 0 0 fc 0 sh
1 ecmf z isobaricInhPa 500 20200915 0 12 fc 0 sh
[ ]: