From 94968629b618843a067b36a3236f91e27530d61b Mon Sep 17 00:00:00 2001 From: Fabien Maussion Date: Fri, 9 Jun 2023 12:20:55 +0200 Subject: [PATCH] Small bug in distribute 2d --- oggm/sandbox/distribute_2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oggm/sandbox/distribute_2d.py b/oggm/sandbox/distribute_2d.py index eb18e26e8..09e2cdda1 100644 --- a/oggm/sandbox/distribute_2d.py +++ b/oggm/sandbox/distribute_2d.py @@ -245,7 +245,7 @@ def distribute_thickness_from_simulation(gdir, input_filesuffix='', band_ids, counts = np.unique(np.sort(band_index_mask[glacier_mask]), return_counts=True) dx2 = gdir.grid.dx**2 - out_thick = np.empty((len(dg.time), *glacier_mask.shape)) + out_thick = np.zeros((len(dg.time), *glacier_mask.shape)) for i, yr in enumerate(dg.time): dgy = dg.sel(time=yr)