cdo 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/gemspec +1 -1
- data/test/test_cdo.rb +5 -0
- metadata +2 -2
data/gemspec
CHANGED
data/test/test_cdo.rb
CHANGED
@@ -116,13 +116,18 @@ class TestCdo < Test::Unit::TestCase
|
|
116
116
|
assert_equal(["lon","lat","level","P","T"],vals.var_names)
|
117
117
|
assert_equal(276,vals.var("T").get.flatten.mean.floor)
|
118
118
|
Cdo.unsetReturnArray
|
119
|
+
vals = Cdo.stdatm(25,100,250,500,875,1400,2100,3000,4000,5000,:out => ofile,:options => "-f nc")
|
120
|
+
assert_equal(ofile,vals)
|
119
121
|
end
|
120
122
|
def test_simple_returnArray
|
121
123
|
ofile0, ofile1 = MyTempfile.path, MyTempfile.path
|
122
124
|
sum = Cdo.fldsum(:in => Cdo.stdatm(0,:options => "-f nc"),
|
123
125
|
:returnArray => true).var("P").get
|
124
126
|
assert_equal(1013.25,sum.min)
|
127
|
+
sum = Cdo.fldsum(:in => Cdo.stdatm(0,:options => "-f nc"),:out => ofile0)
|
128
|
+
assert_equal(ofile0,sum)
|
125
129
|
test_returnArray
|
130
|
+
|
126
131
|
end
|
127
132
|
|
128
133
|
def test_thickness
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Easy access to the Climate Data operators
|
15
15
|
email: stark.dreamdetective@gmail.com
|