From aca3f48d130db0d6360d222c701193d5e37221d3 Mon Sep 17 00:00:00 2001 From: ashjbarnes Date: Tue, 30 Apr 2024 10:35:27 +0200 Subject: [PATCH] fix typo and combine all years of era5 into one file --- regional_mom6/regional_mom6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regional_mom6/regional_mom6.py b/regional_mom6/regional_mom6.py index 5466cfff..1cffe309 100644 --- a/regional_mom6/regional_mom6.py +++ b/regional_mom6/regional_mom6.py @@ -1573,7 +1573,7 @@ def setup_era5(self, era5_path): i for i in range(self.date_range[0].year, self.date_range[1].year + 1) ] # construct a list of all paths for all years to use for open_mfdataset - paths_per_year = [Path(f"{era5_path}/{fname}/{year}/") for i in years] + paths_per_year = [Path(f"{era5_path}/{fname}/{year}/") for year in years] all_files = [] for path in paths_per_year: # Use glob to find all files that match the pattern