From b443a1ec558237c3e72c0faf7dbb7793b5c55df7 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Thu, 22 Aug 2024 18:15:28 +0100 Subject: [PATCH] small bug fix #3 --- scripts/convert_GEAR_beam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/convert_GEAR_beam.py b/scripts/convert_GEAR_beam.py index 20e68be..adfbe9d 100644 --- a/scripts/convert_GEAR_beam.py +++ b/scripts/convert_GEAR_beam.py @@ -24,15 +24,15 @@ suf = ".nc" td = "/work/scratch-pw2/mattjbr" tn = "gear_1hrly_fulloutput_yearly_100km_chunks.zarr" -target_chunks = {"time": 365.25*24, "y": 100, "x": 100} +target_chunks = {"time": int(365.25*24), "y": 100, "x": 100} #nprocs = 64 prune = 12 # no. of files to process, set to 0 to use all if not os.path.exists(td): os.makedirs(td) -def make_path(yearmonth): - filename = pre + yearmonth + suf +def make_path(time): + filename = pre + time + suf return os.path.join(indir, filename) years = list(range(startyear, endyear + 1))