From 269ddb4b4cf61ee5af9b3b4173cfdfe7c46513fe Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 28 Apr 2023 15:29:36 +0200 Subject: [PATCH] era5: back extension to 1940 https://cds.climate.copernicus.eu/cdsapp\#!/dataset/reanalysis-era5-single-levels\?tab\=overview --- RELEASE_NOTES.rst | 1 + atlite/gis.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 5669e6b8..f4c634ab 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -29,6 +29,7 @@ Upcoming Release A workaround is implemented in `atlite` which reduces the performance when building cutouts, especially for ERA5 cutouts. The `nan` values in `cutouts` which are affected by the bug can not be recoevered and the `cutout` needs to be downloaded again. For more details on the bug, see the `xarray issue tracker `_. +* Support for newly released ERA5 back extension to 1940. Version 0.2.10 ============== diff --git a/atlite/gis.py b/atlite/gis.py index 6ae634e5..1769df44 100644 --- a/atlite/gis.py +++ b/atlite/gis.py @@ -67,7 +67,7 @@ def get_coords(x, y, time, dx=0.25, dy=0.25, dt="h", **kwargs): { "x": np.round(np.arange(-180, 180, dx), 9), "y": np.round(np.arange(-90, 90, dy), 9), - "time": pd.date_range(start="1959", end="now", freq=dt), + "time": pd.date_range(start="1940", end="now", freq=dt), } ) ds = ds.assign_coords(lon=ds.coords["x"], lat=ds.coords["y"])