Index: wflow/wflow_sbm.py =================================================================== diff -u -r2b7d608e3efc79f925e739aebc0134e9af8f84cc -r98931af4cdb5d0648a9ec78ae4c499319bdfbd69 --- wflow/wflow_sbm.py (.../wflow_sbm.py) (revision 2b7d608e3efc79f925e739aebc0134e9af8f84cc) +++ wflow/wflow_sbm.py (.../wflow_sbm.py) (revision 98931af4cdb5d0648a9ec78ae4c499319bdfbd69) @@ -1368,8 +1368,10 @@ os.path.join(self.Dir, wflow_riverlength_fact), 1.0 ) self.BankfullDepth = pcr.cover( - self.wf_readmap(os.path.join(self.Dir, wflow_bankfulldepth), 0.0), 1.0 + self.wf_readmap(os.path.join(self.Dir, wflow_bankfulldepth), 1.0), 0.0 ) + self.BankfullDepth = pcr.ifthenelse(self.River, self.BankfullDepth, 0.0) + # read landuse and soilmap and make sure there are no missing points related to the # subcatchment map. Currently sets the lu and soil type type to 1 self.LandUse = pcr.ordinal(