本文整理汇总了Python中JarvisCoefficients.calcEpSnowHour方法的典型用法代码示例。如果您正苦于以下问题:Python JarvisCoefficients.calcEpSnowHour方法的具体用法?Python JarvisCoefficients.calcEpSnowHour怎么用?Python JarvisCoefficients.calcEpSnowHour使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JarvisCoefficients
的用法示例。
在下文中一共展示了JarvisCoefficients.calcEpSnowHour方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: snow_rain_hourlyEp
# 需要导入模块: import JarvisCoefficients [as 别名]
# 或者: from JarvisCoefficients import calcEpSnowHour [as 别名]
def snow_rain_hourlyEp(self,k):
"""
- snow melt based on degree day factor and minimum surface temperature
- meltfactor increases with temperature
"""
JarvisCoefficients.calcEpSnowHour(self,k)
self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0)
self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow
self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k])
self.Ew1 = max(min(self.PotEvaporation, self.Sw[k]),0)
self.Qw1 = max(min(self.Fm2 * (self.Temperature - self.Tm[k]), self.Sw[k]), 0)
self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1
self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0)
self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff
self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff
self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw
self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k])
self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k])
self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k]
self.Ew_[k] = self.Ew
self.Qw_[k] = self.Qw