On-Demand Extremes DT Full Fields Extraction Example¶
This example demonstrates how to extract a Full Field from the On-demand Extemes DT.
In [ ]:
Copied!
import earthkit.data
request = {
'class': 'd1',
'dataset': 'on-demand-extremes-dt',
'expver': '0099',
'stream': 'oper',
'date': '20250616',
'time': 0,
'type': 'fc',
'levtype': 'sfc',
'georef': 'u4usq2',
'step': 12,
'param': 167
}
ds = earthkit.data.from_source("polytope", "destination-earth", request, address="polytope.lumi.apps.dte.destination-earth.eu", stream=False)
import earthkit.data
request = {
'class': 'd1',
'dataset': 'on-demand-extremes-dt',
'expver': '0099',
'stream': 'oper',
'date': '20250616',
'time': 0,
'type': 'fc',
'levtype': 'sfc',
'georef': 'u4usq2',
'step': 12,
'param': 167
}
ds = earthkit.data.from_source("polytope", "destination-earth", request, address="polytope.lumi.apps.dte.destination-earth.eu", stream=False)
In [4]:
Copied!
ds.ls()
ds.ls()
Out[4]:
| centre | shortName | typeOfLevel | level | dataDate | dataTime | stepRange | dataType | number | gridType | |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | ecmf | 2t | heightAboveGround | 2 | 20250616 | 0 | 12 | fc | None | lambert_lam |
Visualise¶
The following visualisation uses earthkit-plots.
In [ ]:
Copied!
import earthkit.plots
chart = earthkit.plots.Map()
chart.block(data)
chart.title(f"Results from on-demand-extremes-dt")
chart.coastlines()
chart.gridlines()
chart.legend()
chart.show()
import earthkit.plots
chart = earthkit.plots.Map()
chart.block(data)
chart.title(f"Results from on-demand-extremes-dt")
chart.coastlines()
chart.gridlines()
chart.legend()
chart.show()
/opt/homebrew/Caskroom/miniforge/base/envs/earthkit-data/lib/python3.12/site-packages/earthkit/plots/components/subplots.py:1392: UserWarning: block is deprecated and will be removed in a future release. Please use grid_cells instead. warnings.warn(
In [ ]:
Copied!