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))