Skip to content

Commit

Permalink
pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenkamp committed Nov 6, 2024
1 parent 8df078d commit a1b565b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eto/methods/ETo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def eto_fao(self, max_ETo=15, min_ETo=0, interp=False, maxgap=15):

######
## ETo equation
if 'H' in self.freq:
if 'h' in self.freq.lower():
ETo_FAO = (0.408*self.ts_param['delta']*(self.ts_param['R_n'] - self.ts_param['G']) + self.ts_param['gamma']*37/(self.ts_param['T_mean'] + 273)*self.ts_param['U_2']*(self.ts_param['e_mean'] - self.ts_param['e_a']))/(self.ts_param['delta'] + self.ts_param['gamma']*(1 + 0.34*self.ts_param['U_2']))
else:
ETo_FAO = (0.408*self.ts_param['delta']*(self.ts_param['R_n'] - self.ts_param['G']) + self.ts_param['gamma']*900/(self.ts_param['T_mean'] + 273)*self.ts_param['U_2']*(self.ts_param['e_s'] - self.ts_param['e_a']))/(self.ts_param['delta'] + self.ts_param['gamma']*(1 + 0.34*self.ts_param['U_2']))
Expand Down
2 changes: 1 addition & 1 deletion eto/methods/hargreaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def hargreaves(self, max_ETo=15, min_ETo=0, interp=False, maxgap=15):
######
## ETo equation

if 'H' in self.freq:
if 'h' in self.freq.lower():
raise ValueError('Hargreaves should not be calculated at time frequencies of less than a day.')

ETo_Har = 0.0023*(self.ts_param['T_mean'] + 17.8)*((self.ts_param['T_max'] - self.ts_param['T_min']) **0.5)*self.ts_param['R_a']*0.408
Expand Down

0 comments on commit a1b565b

Please sign in to comment.