From 97370b927143046b5d225d7c0767c08fa1e66309 Mon Sep 17 00:00:00 2001 From: Simon Grasse <s.grasse@fz-juelich.de> Date: Wed, 29 Nov 2023 17:29:17 +0100 Subject: [PATCH] fix: initialisation of empty grids --- toargridding/grids.py | 1 + 1 file changed, 1 insertion(+) diff --git a/toargridding/grids.py b/toargridding/grids.py index cb14067..fe7cd23 100644 --- a/toargridding/grids.py +++ b/toargridding/grids.py @@ -144,6 +144,7 @@ class RegularGrid(GridDefinition): def create_gridded_statistics(self, time, grouped_timeseries): values = np.empty((self.lat.size, self.lon.size, time.size)) + values[...] = self.fill_value index = self._as_xy_index[grouped_timeseries.index] values[index.T[0], index.T[1]] = grouped_timeseries.values.reshape( -- GitLab