Skip to content

Commit

Permalink
small bug fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brown committed Aug 22, 2024
1 parent 69c7c42 commit b443a1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/convert_GEAR_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b443a1e

Please sign in to comment.