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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe22de7f8fb700fe5944060729cc7532a6e8b6c5
4
- data.tar.gz: 5279f9560e1bfcac668151c803caab6f44209d56
3
+ metadata.gz: c56ad772121b62167d4e9928619ca473713185ed
4
+ data.tar.gz: 35a3767b8102cf671910dc7aa61ba332375a14cc
5
5
  SHA512:
6
- metadata.gz: 141d14c443b79e2636212c2bd187323e8a38b641fbba4f376f3b0534a07e9f4c9f9a10e2d66e412d46f903021ffea279eb3d00867bba6a4f1d5838a3ea4fa17f
7
- data.tar.gz: 88f97d5e363d2abe28a7ecd53a4758cc13e6cc3c25af23e4696ba6b73172b8632cce9d578199875c2fe53e416c2880de5d45b8416021d2468ee5de24d05dd008
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
@@ -1,3 +1,3 @@
1
1
  module Evapotranspiration
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evapotranspiration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Johnston