[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SPAM:Low] [dennou-ruby:003024] [bug] Met: numru/met/thermo.rb (q_p2e)



神代です.

電脳Ruby製品 Met の numru/met/thermo.rb で, q_p2e という関数にバグが
ありました. typo だと思います. パッチをつけます.


diff -uNr met-0.0.2_orig/lib/numru/met/thermo.rb met-0.0.2/lib/numru/met/thermo.rb
--- met-0.0.2_orig/lib/numru/met/thermo.rb	2003-12-10 16:03:32.000000000 +0900
+++ met-0.0.2/lib/numru/met/thermo.rb	2009-01-16 17:31:32.000000000 +0900
@@ -60,7 +60,7 @@
     * prs:  pressure[hPa]
     * rratio = R / Rv
     RETURN VALUE
-    * e = prs*q/(rratio+(1-rraio)*q)  ---  water vapor pertial pressure [hPa]
+    * e = prs*q/(rratio+(1-rratio)*q)  ---  water vapor pertial pressure [hPa]
 
 ---lat(tempC)
     Returns the latent heat as a function of temperature
@@ -217,7 +217,7 @@
 	q = __ary_to_real_na(q)
 	prs = __ary_to_real_na(prs)
 	rratio = R / Rv
-	e = prs*q/(rratio+(1-rraio)*q)     # water vapor pertial pressure
+	e = prs*q/(rratio+(1-rratio)*q)     # water vapor pertial pressure
       end
 
       def lat(tempC)