judithberner / climpred_CESM1_S2S

MIT License
3 stars 1 forks source link

Get ERA5 via climelab #12

Closed aaronspring closed 3 years ago

aaronspring commented 3 years ago

https://climetlab.readthedocs.io/en/latest/examples/03-source-cds.html

aaronspring commented 3 years ago

implemented here: https://nbviewer.jupyter.org/github/pangeo-data/climpred/blob/7ebdbb05e269f976737b69a1d531423ea9c729f4/docs/source/examples/NWP/NWP_GEFS_6h_forecasts.ipynb

obs = climetlab.load_source(
    "cds",
    "reanalysis-era5-single-levels",
    product_type="reanalysis",
    time=["00:00", "06:00", "12:00", "18:00"],
    grid=[1.0, 1.0],
    param="2t",
    date=[
        "2020-08-29",
        "2020-08-30",
        "2020-08-31",
        "2020-09-01",
        "2020-09-02",
        "2020-09-03",
    ],
).to_xarray()

fiels are cached locally, so only need to download once. software from ECMWF.