Skip to content

Commit

Permalink
Merge pull request #105 from Deltares/FIX-nodata_manning_subgrid
Browse files Browse the repository at this point in the history
assigned proper nodata value to da_man when constant values applied
  • Loading branch information
DirkEilander authored Jul 12, 2023
2 parents 81b85b8 + 24ed54a commit 159fb42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydromt_sfincs/subgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def build(
da_man = da_man.where(~np.isnan(da_man), da_man0)
else:
da_man = xr.where(da_dep >= rgh_lev_land, manning_land, manning_sea)
da_man.raster.set_nodata(np.nan)
# mask values of inactive cells
da_man = da_man.where(da_mask_sbg > 0, da_man.raster.nodata)
check_nans = np.all(~np.isnan(da_man.values[da_mask_sbg > 0]))
Expand Down

0 comments on commit 159fb42

Please sign in to comment.