From 6dabf077462c3af4f2d66a010e19176f3dab890f Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Thu, 24 Jun 2021 11:14:20 +0200
Subject: [PATCH] Reprojection on daily averaged files.

---
 climax/main/preprocess_ERA5.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/climax/main/preprocess_ERA5.py b/climax/main/preprocess_ERA5.py
index c12efba..44961d1 100644
--- a/climax/main/preprocess_ERA5.py
+++ b/climax/main/preprocess_ERA5.py
@@ -89,7 +89,7 @@ if __name__ == '__main__':
             # days
             LOGGER.info('Computing daily averages ...')
             for src, tmp in zip(source, dlyavg):
-                ds = xr.open_dataset(source)
+                ds = xr.open_dataset(src)
 
                 # compute daily averages
                 ds = ds.resample(time='D').mean(dim='time')
-- 
GitLab