iconPlot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/gemspec +1 -1
- data/lib/iconPlot.rb +3 -3
- metadata +2 -2
data/gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.unshift File.join(File.dirname(__FILE__),"..","lib")
|
|
3
3
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
s.name = "iconPlot"
|
6
|
-
s.version = '0.0.
|
6
|
+
s.version = '0.0.2'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.files = ["lib/iconPlot.rb"] + ["gemspec"] + ["contrib/nclsh"] + Dir.glob("lib/*ncl")
|
9
9
|
s.test_file = "test/test_iconPlot.rb"
|
data/lib/iconPlot.rb
CHANGED
@@ -21,18 +21,18 @@ class IconPlot < Struct.new(:caller,:plotter,:libdir,:otype,:display,:cdo,:debug
|
|
21
21
|
}
|
22
22
|
self.each_pair {|k,v| self[k] = defaults[k] if v.nil? }
|
23
23
|
end
|
24
|
-
def plot(ifile,ofile,varname,vartype='scalar',opts=
|
24
|
+
def plot(ifile,ofile,varname,vartype='scalar',opts={})
|
25
25
|
unless File.exists?(ifile)
|
26
26
|
warn "Input file #{ifile} dows NOT exist!"
|
27
27
|
exit
|
28
28
|
end
|
29
|
-
varIdent = case vartype
|
29
|
+
varIdent = case vartype.to_s
|
30
30
|
when 'scalar' then "-varName=#{varname}"
|
31
31
|
when 'vector' then "-vecVars=#{varname.split(' ').join(',')}"
|
32
32
|
when 'scatter' then "-plotMode=scatter -vecVars#{varname.split(' ').join(',')}"
|
33
33
|
else
|
34
34
|
warn "Wrong variable type #{vartype}"
|
35
|
-
|
35
|
+
raise ArgumentError
|
36
36
|
end
|
37
37
|
|
38
38
|
opts[:tStrg] =ofile
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iconPlot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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-05-
|
12
|
+
date: 2012-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Plot with ncl via Ruby: requires NCL 6.* and CDO 1.5.*'
|
15
15
|
email: stark.dreamdetective@gmail.com
|