Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFZ/feature/tws #188

Open
wants to merge 7 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lisflood/Lisflood_dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ def splitlanduse(array1, array2=None, array3=None):
# Calculate water level
self.waterlevel_module.dynamic()

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Calculate water storage
self.waterstorage_module.dynamic()

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# ************************************************************
Expand Down
3 changes: 3 additions & 0 deletions src/lisflood/Lisflood_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
from .hydrological_modules.opensealed import opensealed
from .hydrological_modules.waterbalance import waterbalance
from .hydrological_modules.waterlevel import waterlevel
from .hydrological_modules.waterstorage import waterstorage
from .hydrological_modules.structures import structures

from .global_modules.output import outputTssMap
Expand Down Expand Up @@ -150,6 +151,7 @@ def __init__(self):
self.opensealed_module = opensealed(self)
self.waterbalance_module = waterbalance(self)
self.waterlevel_module = waterlevel(self)
self.waterstorage_module = waterstorage(self)
self.structures_module = structures(self)

self.prescribed_vegetation = self.epic_settings.prescribed_vegetation
Expand Down Expand Up @@ -204,6 +206,7 @@ def __init__(self):
self.reservoir_module.initial()
self.lakes_module.initial()
self.polder_module.initial()
self.waterstorage_module.initial()

self.transmission_module.initial()

Expand Down
9 changes: 9 additions & 0 deletions src/lisflood/global_modules/default_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1597,3 +1597,12 @@
'wateruseRegion': False,
'writeNetcdf': False,
'writeNetcdfStack': False}

default_options['reportedmaps'].update({'TWSMaps' : ReportedMap(name='TWSMaps', output_var='twsstor', unit='m', end=[], steps=['repTWSMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'LakeSMaps' : ReportedMap(name='LakeSMaps', output_var='lakestor', unit='m3', end=[], steps=['repStorageMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'RiverSMaps' : ReportedMap(name='RiverSMaps', output_var='riverstor', unit='m3', end=[], steps=['repStorageMaps','repFlowMomMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'SoilSMaps' : ReportedMap(name='SoilSMaps', output_var='soilstor', unit='m', end=[], steps=['repStorageMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'GWSMaps' : ReportedMap(name='GWSMaps', output_var='gwstor', unit='m', end=[], steps=['repStorageMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'SnowSMaps' : ReportedMap(name='SnowSMaps', output_var='snowstor', unit='m', end=[], steps=['repStorageMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'CumSMaps ' : ReportedMap(name='CumSMaps', output_var='cumstor', unit='m', end=[], steps=['repStorageMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
default_options['reportedmaps'].update({'FlowMomMaps' : ReportedMap(name='FlowMomMaps', output_var='FlowMomentum', unit='kgm/s', end=[], steps=['repFlowMomMaps'], all=[], restrictoption=[], monthly=False, yearly=False)})
1 change: 1 addition & 0 deletions src/lisflood/hydrological_modules/evapowater.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def initial(self):
maskinfo = MaskInfo.instance()
if option['openwaterevapo']:
LakeMask = loadmap('LakeMask', pcr=True)
LakeMask = ifthenelse((LakeMask<0)&(LakeMask>-9999), 0, LakeMask)
# lmask = ifthenelse(LakeMask != 0, self.var.LddStructuresKinematic, 5)
lmask = ifthenelse(LakeMask != 0, self.var.LddStructuresChan, 5)
LddEva = lddrepair(lmask)
Expand Down
5 changes: 5 additions & 0 deletions src/lisflood/hydrological_modules/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,11 @@ def dynamic(self, NoRoutingExecuted):
# if flow is slow, Traveltime=DtSec then TravelDistance=PixelLength
# maximum set to 30km/day for 5km cell, is at DtSec/Traveltime=6, is at Traveltime<DtSec/6

####### added by Robert Dill, 2025/03/13
# calculate momentum map flow velocity * rivermass [kgm/s]
self.var.FlowMomentum = self.var.TotalCrossSectionArea * self.var.ChanLength * 1000 * self.var.FlowVelocity
#######


def KinRouting(self,SideflowChan):
"""Kinematic routing based on a 4-point implicit finite-difference numerical solution of the kinematic wave equations.
Expand Down
Loading
Loading