Skip to content

Commit

Permalink
fix typo and combine all years of era5 into one file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjbarnes committed Apr 30, 2024
1 parent 53dcec0 commit aca3f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aca3f48

Please sign in to comment.