Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyet/radiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def hargreaves(tmean, tmax, tmin, lat, k=0.0135, method=0, clip_zero=True):
lat: float/xarray.DataArray
the site latitude [rad].
k: float, optional
calirbation coefficient [-].
calibration coefficient [-].
method: float, optional
0 => after :cite:t:`jensen_evaporation_2016`
1 => after :cite:t:`mcmahon_estimating_2013`.
Expand Down Expand Up @@ -208,10 +208,10 @@ def hargreaves(tmean, tmax, tmin, lat, k=0.0135, method=0, clip_zero=True):
ra = ra.values[:, None, None]
else:
ra = ra.values
chs = 0.00185 * (tmax - tmin) ** 2 - 0.0433 * (tmax - tmin) + 0.4023
if method == 0:
pet = k / 0.0135 * 0.0023 * (tmean + 17.8) * sqrt(tmax - tmin) * ra / lambd
elif method == 1:
chs = 0.00185 * (tmax - tmin) ** 2 - 0.0433 * (tmax - tmin) + 0.4023
pet = k * chs * sqrt(tmax - tmin) * ra / lambd * (tmean + 17.8)
else:
raise Exception("Method can be either 0 or 1.")
Expand Down Expand Up @@ -329,7 +329,7 @@ def makkink(tmean, rs, pressure=None, elevation=None, k=0.65, clip_zero=True):
elevation: float/xarray.DataArray, optional
the site elevation [m].
k: float, optional
calirbation coefficient [-].
calibration coefficient [-].
clip_zero: bool, optional
if True, replace all negative values with 0.

Expand Down