You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Now, repeat the nowcast ensemble members or the nwp models/members until
@@ -172,9 +185,9 @@ def forecast(
172
185
173
186
# Check if dimensions are correct
174
187
assert (
175
-
precip_nwp.shape==precip_nowcast.shape
176
-
), "The dimensions of precip_nowcast and precip_nwp need to be identical: dimension of precip_nwp = {} and dimension of precip_nowcast = {}".format(
177
-
precip_nwp.shape, precip_nowcast.shape
188
+
precip_nwp.shape[-2:]==precip_nowcast.shape[-2:]
189
+
), "The x and y dimensions of precip_nowcast and precip_nwp need to be identical: dimension of precip_nwp = {} and dimension of precip_nowcast = {}".format(
190
+
precip_nwp.shape[-2:], precip_nowcast.shape[-2:]
178
191
)
179
192
180
193
# Ensure we are not working with nans in the bleding.
0 commit comments