evapotranspiration 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evapotranspiration/fao.rb +1 -1
- data/lib/evapotranspiration/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c56ad772121b62167d4e9928619ca473713185ed
|
4
|
+
data.tar.gz: 35a3767b8102cf671910dc7aa61ba332375a14cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3505bae7868af1cd9c66e96328e264d0b8a4f24ff278ac20892335d77a2eb4b583cb304910f3c0ce8731bbc8681cd484f60256ffca6c5f749b928a75afc11217
|
7
|
+
data.tar.gz: f4426d57a5114014c12dc614017b6a2baa7c85bbd60701ee34c8b4c4859b61aee521f26066183391d207f19be04254b8e6bc58e7153a0e7331348ad38bd7f54d
|
@@ -254,7 +254,7 @@ module Evapotranspiration
|
|
254
254
|
# @return [Float] Reference evapotranspiration (ETo) from a hypothetical
|
255
255
|
# grass reference surface (mm day-1)
|
256
256
|
def self.fao56_penman_monteith(net_rad, t, ws, svp, avp, delta_svp, psy, shf=0.0)
|
257
|
-
a1 = (0.408 * (net_rad.to_f - shf.to_f) * delta_svp.to_f / delta_svp.to_f + (psy.to_f * (1 + 0.34 * ws.to_f)))
|
257
|
+
a1 = (0.408 * (net_rad.to_f - shf.to_f) * delta_svp.to_f / (delta_svp.to_f + (psy.to_f * (1 + 0.34 * ws.to_f))))
|
258
258
|
a2 = (900 * ws.to_f / t.to_f * (svp.to_f - avp.to_f) * psy.to_f / (delta_svp.to_f + (psy.to_f * (1 + 0.34 * ws.to_f))))
|
259
259
|
return a1.to_f + a2.to_f
|
260
260
|
end
|