All Topics |
    Topic: “Result is than minimum of 0. E.g (-0.2)”
  
  
  
    
  
  
  | Author | Message | 
|---|
| 
             
              Subject: Result is than minimum of 0. E.g (-0.2)    
            Posted: 4/14/2022 Viewed: 8071 times 
              Input:
  
          ReadFromFile(Q_Prelez2015.txt) *3.986/14.2-MonthlyValues( Jan, 0.687, Feb, 0.893, Mar, 0.893, Apr, 0.893, May, 0.893, Jun, 0.687, Jul, 0.687, Aug, 0.687, Sep, 0.687, Oct, 0.687, Nov, 0.687, Dec, 0.687 ) When I go to Go to View result strimflow,apper: Error. Expression result is less than minimum of 0.The value was -0.204 After that view result not work. Previous versions of WEAP worked even when the difference between the two parameter values was negative.  | 
        
| 
             
              Subject: Re: Result is than minimum of 0. E.g (-0.2)    
            Posted: 4/14/2022 Viewed: 7891 times 
              Hi Shigeri,
  
          I would suggest that you make your streamflow input into a "Maximum" expression. The software will then choose the higher value between Zero and your expression, thus avoiding any negative values. Max(0, ReadFromFile(Q_Prelez2015.txt) *3.986/14.2-MonthlyValues( Jan, 0.687, Feb, 0.893, Mar, 0.893, Apr, 0.893, May, 0.893, Jun, 0.687, Jul, 0.687, Aug, 0.687, Sep, 0.687, Oct, 0.687, Nov, 0.687, Dec, 0.687 )) Anne  | 
        
      Topic: “Result is than minimum of 0. E.g (-0.2)”