Skip to content

Commit

Permalink
Bug fix: land use type bares soil was (incorrectly) not taken into ac…
Browse files Browse the repository at this point in the history
…count.
  • Loading branch information
RuudHurkmans committed Jan 29, 2021
1 parent e1646f3 commit 4ba4a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion delft3dfmpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Guus Rongen"""
__email__ = '[email protected]'
__version__ = '1.1.0'
__version__ = '1.1.2'

from delft3dfmpy.core.dfm import DFlowFMModel
from delft3dfmpy.core.drr import DFlowRRModel
Expand Down
2 changes: 1 addition & 1 deletion delft3dfmpy/converters/hydamo_to_dflowrr.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def generate_unpaved(catchments, landuse, surface_level, soiltype, surface_stor
#ms = [ms for ms in meteo_areas.itertuples() if ms.geometry.contains(cat.geometry.centroid)]
#ms = ms[0] if ms != [] else meteo_areas.iloc[0,:][0]
mapping = np.zeros(16, dtype=int)
for i in range(1,12):
for i in range(1,13):
if i in lu_counts[num]: mapping[sobek_indices[i-1]-1] = lu_counts[num][i]*px_area
lu_map = ' '.join(map(str,mapping))
elev = mean_elev[num]['median']
Expand Down

0 comments on commit 4ba4a2f

Please sign in to comment.