Skip to content

Commit e36951d

Browse files
committed
Fix error in nlmod.lake.clip_meteorological_data_from_ds
when there is no time dimension in meteorological variables
1 parent 0f0062c commit e36951d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nlmod/gwf/lake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _copy_da_from_ds(gdf, ds, variable, boundname_column=None, set_to_0_in_ds=Fa
405405
else:
406406
da_cells = ds[variable].loc[cellids].copy()
407407
if set_to_0_in_ds:
408-
ds[variable][:, cellids] = 0.0
408+
ds[variable][cellids] = 0.0
409409
# calculate thea area-weighted mean
410410
df[column] = float((da_cells * area).sum("icell2d") / area.sum())
411411
return df

0 commit comments

Comments
 (0)