Temperature and pressure
[1]:
import earthkit.data
import earthkit.plots
import cartopy.crs as ccrs
temperature, pressure = earthkit.data.from_source(
'cds',
'reanalysis-era5-single-levels',
{
'product_type': 'reanalysis',
'variable': [
'2m_temperature',
"mean_sea_level_pressure",
],
'year': '1985',
'month': '12',
'day': '25',
'time': '12:00',
},
)
2025-02-18 14:28:41,069 INFO [2024-09-26T00:00:00] Watch our [Forum](https://forum.ecmwf.int/) for Announcements, news and other discussed topics.
2025-02-18 14:28:41,069 WARNING [2024-06-16T00:00:00] CDS API syntax is changed and some keys or parameter names may have also changed. To avoid requests failing, please use the "Show API request code" tool on the dataset Download Form to check you are using the correct syntax for your API request.
[2]:
chart = earthkit.plots.Map(domain="Europe")
chart.plot(temperature, units="celsius")
chart.plot(pressure, units="hPa")
chart.legend(location="right")
chart.coastlines()
chart.title()
chart.gridlines()
chart.show()