Skip to content

Commit e14061e

Browse files
double line removed
1 parent 4dec663 commit e14061e

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

doc/index.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,20 @@ References
293293
initial reference to northern Costa Rica.,, 2006.
294294
295295
296+
Papers/reports using wflow
297+
==========================
298+
299+
Jeuken, A., L. Bouaziz, G. Corzo, and L. Alfonso, 2016: Analyzing Needs for Climate Change Adaptation
300+
in the Magdalena River Basin in Colombia. Climate Change Adaptation, Resilience and Hazards, W.L. Filho,
301+
H. Musa, G. Cavan, P. O’Hare, and J. Seixas, Eds., Climate Change Management, Springer International Publishing,
302+
329–344 http://link.springer.com/chapter/10.1007/978-3-319-39880-8_20 (Accessed September 26, 2016).
303+
304+
Lopez Lopez, P., N. Wanders, J. Schellekens, L. J. Renzullo, E. H. Sutanudjaja, and M. F. P. Bierkens, 2015: Improved
305+
large-scale hydrological modelling through the assimilation of streamflow and downscaled satellite soil moisture
306+
observations. Hydrology and Earth System Sciences Discussions, 12, 10559–10601, doi:10.5194/hessd-12-10559-2015.
307+
308+
309+
296310
TODO
297311
====
298312

wflow-py/wflow/wflow_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def rainfall_interception_modrut(Precipitation,PotEvap,CanopyStorage,CanopyGapFr
120120
Pfrac = (1 - p -pt) * Precipitation
121121

122122
# S cannot be larger than Cmax, no gravity drainage below that
123-
DD = ifthenelse (CanopyStorage > Cmax , Cmax - CanopyStorage , 0.0)
123+
DD = ifthenelse (CanopyStorage > Cmax , CanopyStorage - Cmax , 0.0)
124124
CanopyStorage = CanopyStorage - DD
125125

126126
# Add the precipitation that falls on the canopy to the store

wflow-py/wflow/wflow_sbm.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,10 +1263,9 @@ def dynamic(self):
12631263
self.waterSlope = max(0.000001, slope(self.WaterDem) * celllength() / self.reallength)
12641264
if self.waterdem:
12651265
self.waterLdd = lddcreate(self.WaterDem, 1E35, 1E35, 1E35, 1E35)
1266-
#waterLdd = lddcreate(waterDem,1,1,1,1)
12671266

12681267

1269-
#TODO: We should make a couple ot itterations here...
1268+
#TODO: We should make a couple ot iterations here...
12701269
if self.waterdem:
12711270
Lateral = self.FirstZoneKsatVer * self.FirstZoneKsatHorFrac * self.waterSlope * exp(-self.SaturationDeficit / self.M)
12721271
MaxHor = max(0.0, min(Lateral, self.FirstZoneDepth))
@@ -1300,7 +1299,6 @@ def dynamic(self):
13001299

13011300
Ksat = self.FirstZoneKsatVer * exp(-self.f * self.zi)
13021301

1303-
13041302
# Estimate water that may reinfilt
13051303
SurfaceWater = self.WaterLevel/1000.0 # SurfaceWater (mm)
13061304
self.CumSurfaceWater = self.CumSurfaceWater + SurfaceWater
@@ -1401,8 +1399,6 @@ def dynamic(self):
14011399
self.InflowKinWaveCell = upstream(self.TopoLdd, self.OldSurfaceRunoff)
14021400
deltasup = float(mapmaximum(abs(oldsup - self.SurfaceWaterSupply)))
14031401

1404-
1405-
14061402
if deltasup < self.breakoff or self.nrit >= self.maxitsupply:
14071403
break
14081404

@@ -1501,7 +1497,7 @@ def dynamic(self):
15011497

15021498

15031499
self.SoilWatbal = self.ActInfilt + self.reinfiltwater + CellInFlow - self.Transpiration - self.soilevap -\
1504-
self.ExfiltWater - self.SubCellGWRunoff - self.DeltaStorage -\
1500+
self.ExfiltWater - self.SubCellGWRunoff - self.DeltaStorage -\
15051501
self.FirstZoneFlux
15061502

15071503
self.InterceptionWatBal = self.PrecipitationPlusMelt - self.Interception -self.StemFlow - self.ThroughFall -\

wflow-py/wflow/wflow_sbm2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,9 @@ def resume(self):
10051005
self.logger.info("Setting initial conditions to default")
10061006
self.SatWaterDepth = self.SoilWaterCapacity * 0.85
10071007

1008-
for n in arange(0,self.nrLayers):
1009-
self.UStoreLayerDepth[n]
1008+
#for n in arange(0,self.nrLayers):
1009+
# self.UStoreLayerDepth[n] = self.ZeroMap
1010+
# TODO: move UStoreLayerDepth from initial to here
10101011

10111012
self.WaterLevel = self.ZeroMap
10121013
self.SurfaceRunoff = self.ZeroMap
@@ -1793,6 +1794,7 @@ def dynamic(self):
17931794

17941795
# update/nudge self.UStoreDepth for the whole upstream area,
17951796
# not sure how much this helps or worsens things
1797+
# TODO: FIx this for multiple layers
17961798
UpdSoil = True
17971799
if UpdSoil:
17981800
toadd = (self.UStoreDepth * UpRatioSoil) - self.UStoreDepth

0 commit comments

Comments
 (0)