Retrieving data from the ECMWF MARS archiveΒΆ

The ecmwf-open-data source provides access to the ECMWF MARS archive.

[1]:
import earthkit.data as ekd

d = ekd.from_source(
    "mars",
    request=dict(
        param=["2t", "msl"],
        levtype="sfc",
        area=[50, -10, 40, 10],
        grid=[2, 2],
        date="2023-05-10",  # N,W,S,E
    ),
)
d
[1]:
GRIB file

path/var/folders/93/w0p869rx17q98wxk83gn9ys40000gn/T/earthkit-data-cgr/mars-retriever-800da46cbbfad84aa69886ae989816d43a8f31e9510aec55c269ba56b10f6c77.cache
size480
typesfieldlist, pandas, xarray, numpy, array
[2]:
d.to_fieldlist().ls()
[2]:
parameter.variable time.valid_datetime time.base_datetime time.step vertical.level vertical.level_type ensemble.member geography.grid_type
0 2t 2023-05-10 12:00:00 2023-05-10 12:00:00 0 days 0 surface 0 regular_ll
1 msl 2023-05-10 12:00:00 2023-05-10 12:00:00 0 days 0 surface 0 regular_ll
[ ]: