mdarray 0.5.5.2-java → 0.5.6-java
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.
- checksums.yaml +4 -4
- data/config.rb +29 -95
- data/doc/BinaryOperator.html +20 -21
- data/doc/BitwiseOperators.html +18 -8
- data/doc/BitwiseOperators/BinaryAnd.html +189 -0
- data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
- data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
- data/doc/BitwiseOperators/BinaryOr.html +189 -0
- data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
- data/doc/BitwiseOperators/BinaryXor.html +189 -0
- data/doc/BooleanFunctions.html +18 -8
- data/doc/BooleanFunctions/And.html +189 -0
- data/doc/BooleanFunctions/Not.html +189 -0
- data/doc/BooleanFunctions/Or.html +189 -0
- data/doc/BooleanMDArray.html +10 -10
- data/doc/ByteMDArray.html +73 -14
- data/doc/CernDoubleFunctions.html +208 -0
- data/doc/CernFloatFunctions.html +208 -0
- data/doc/CernFunctions.html +828 -0
- data/doc/CernIntFunctions.html +208 -0
- data/doc/CernLongFunctions.html +208 -0
- data/doc/CharMDArray.html +181 -0
- data/doc/Colt.html +18 -20
- data/doc/ComparisonOperators.html +18 -8
- data/doc/ComparisonOperators/Eq.html +189 -0
- data/doc/ComparisonOperators/Ge.html +189 -0
- data/doc/ComparisonOperators/Gt.html +189 -0
- data/doc/ComparisonOperators/Le.html +189 -0
- data/doc/ComparisonOperators/Lt.html +189 -0
- data/doc/Const.html +107 -47
- data/doc/Csv.html +325 -113
- data/doc/Csv/Dimension.html +771 -0
- data/doc/Csv/Dimensions.html +654 -0
- data/doc/DDescriptive.html +573 -625
- data/doc/DoubleMDArray.html +40 -172
- data/doc/DoubleStatList.html +19 -20
- data/doc/FastBinaryOperator.html +166 -148
- data/doc/FastUnaryOperator.html +104 -109
- data/doc/FloatMDArray.html +55 -16
- data/doc/FunctionCreation.html +53 -273
- data/doc/FunctionMap.html +381 -93
- data/doc/GenericFunctions.html +18 -8
- data/doc/GenericFunctions/Null.html +187 -0
- data/doc/IntMDArray.html +77 -16
- data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
- data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
- data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
- data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
- data/doc/LazyBinaryOperator.html +714 -0
- data/doc/LazyMDArray.html +990 -0
- data/doc/LazyMDArray/BinaryComp.html +282 -0
- data/doc/LazyMDArray/UnaryComp.html +280 -0
- data/doc/LazyUnaryOperator.html +537 -0
- data/doc/LongMDArray.html +59 -15
- data/doc/MDArray.html +3223 -2181
- data/doc/MDArray/Counter.html +321 -1233
- data/doc/MDArray/IteratorFast.html +177 -116
- data/doc/MDArray/IteratorFastBoolean.html +37 -41
- data/doc/MDArray/IteratorFastByte.html +46 -39
- data/doc/MDArray/IteratorFastChar.html +37 -41
- data/doc/MDArray/IteratorFastDouble.html +37 -41
- data/doc/MDArray/IteratorFastFloat.html +37 -41
- data/doc/MDArray/IteratorFastInt.html +37 -41
- data/doc/MDArray/IteratorFastLong.html +37 -41
- data/doc/MDArray/IteratorFastShort.html +37 -41
- data/doc/MDArray/Section.html +561 -0
- data/doc/Nashorn.html +1407 -0
- data/doc/NetCDF.html +749 -0
- data/doc/NetCDF/Attribute.html +875 -0
- data/doc/NetCDF/AttributeWriter.html +286 -0
- data/doc/NetCDF/CDMNode.html +460 -0
- data/doc/NetCDF/Dimension.html +559 -0
- data/doc/NetCDF/DimensionWriter.html +642 -0
- data/doc/NetCDF/File.html +1593 -0
- data/doc/NetCDF/FileParent.html +674 -0
- data/doc/NetCDF/FileWriter.html +2875 -0
- data/doc/NetCDF/Group.html +685 -0
- data/doc/NetCDF/GroupWriter.html +851 -0
- data/doc/NetCDF/TimeVariable.html +646 -0
- data/doc/NetCDF/Variable.html +2994 -0
- data/doc/NetCDF/VariableWriter.html +420 -0
- data/doc/NonNumericalMDArray.html +11 -11
- data/doc/NumericFunctions.html +38 -30
- data/doc/NumericFunctions/Abs.html +189 -0
- data/doc/NumericFunctions/Add.html +189 -0
- data/doc/NumericFunctions/Ceil.html +189 -0
- data/doc/NumericFunctions/Cube.html +189 -0
- data/doc/NumericFunctions/Div.html +189 -0
- data/doc/NumericFunctions/Floor.html +189 -0
- data/doc/NumericFunctions/Fourth.html +189 -0
- data/doc/NumericFunctions/IsZero.html +189 -0
- data/doc/NumericFunctions/Max.html +189 -0
- data/doc/NumericFunctions/Min.html +189 -0
- data/doc/NumericFunctions/Mul.html +189 -0
- data/doc/NumericFunctions/Power.html +189 -0
- data/doc/NumericFunctions/Square.html +189 -0
- data/doc/NumericFunctions/Sub.html +189 -0
- data/doc/NumericFunctions/Truncate.html +189 -0
- data/doc/NumericalMDArray.html +14 -15
- data/doc/Operator.html +318 -109
- data/doc/Proc.html +120 -129
- data/doc/RubyBinaryOperator.html +66 -70
- data/doc/RubyFunctions.html +572 -27
- data/doc/RubyMath.html +18 -8
- data/doc/RubyMath/Acos.html +189 -0
- data/doc/RubyMath/Acosh.html +189 -0
- data/doc/RubyMath/Asin.html +189 -0
- data/doc/RubyMath/Asinh.html +189 -0
- data/doc/RubyMath/Atan.html +189 -0
- data/doc/RubyMath/Atan2.html +189 -0
- data/doc/RubyMath/Atanh.html +189 -0
- data/doc/RubyMath/Cbrt.html +189 -0
- data/doc/RubyMath/Cos.html +189 -0
- data/doc/RubyMath/Cosh.html +189 -0
- data/doc/RubyMath/Erf.html +189 -0
- data/doc/RubyMath/Erfc.html +189 -0
- data/doc/RubyMath/Exp.html +189 -0
- data/doc/RubyMath/Gamma.html +189 -0
- data/doc/RubyMath/Hypot.html +189 -0
- data/doc/RubyMath/Ldexp.html +189 -0
- data/doc/RubyMath/Log.html +189 -0
- data/doc/RubyMath/Log10.html +189 -0
- data/doc/RubyMath/Log2.html +189 -0
- data/doc/RubyMath/Neg.html +189 -0
- data/doc/RubyMath/Sin.html +189 -0
- data/doc/RubyMath/Sinh.html +189 -0
- data/doc/RubyMath/Sqrt.html +189 -0
- data/doc/RubyMath/Tan.html +189 -0
- data/doc/RubyMath/Tanh.html +189 -0
- data/doc/RubyStats.html +8 -8
- data/doc/RubyUnaryOperator.html +61 -65
- data/doc/ShortMDArray.html +69 -14
- data/doc/Sol.html +700 -0
- data/doc/Sol/BarChart.html +181 -0
- data/doc/Sol/BaseChart.html +800 -0
- data/doc/Sol/Bootstrap.html +1137 -0
- data/doc/Sol/Bridge.html +586 -0
- data/doc/Sol/Chart.html +1162 -0
- data/doc/Sol/CoordinateChart.html +679 -0
- data/doc/Sol/Dashboard.html +2094 -0
- data/doc/Sol/Dashboard/DCFX.html +786 -0
- data/doc/Sol/Dashboard/MyHandle.html +338 -0
- data/doc/Sol/Dashboard/MyService.html +202 -0
- data/doc/Sol/Dashboard/MyTask.html +291 -0
- data/doc/Sol/Interval.html +1213 -0
- data/doc/Sol/LineChart.html +346 -0
- data/doc/Sol/LinearScale.html +334 -0
- data/doc/Sol/Margins.html +219 -0
- data/doc/Sol/OrdinalScale.html +263 -0
- data/doc/Sol/Scale.html +462 -0
- data/doc/Sol/Stack.html +199 -0
- data/doc/Sol/TimeScale.html +397 -0
- data/doc/StatList.html +110 -125
- data/doc/StringMDArray.html +10 -10
- data/doc/StructureMDArray.html +10 -10
- data/doc/UnaryOperator.html +20 -21
- data/doc/UserFunction.html +51 -49
- data/doc/_index.html +881 -106
- data/doc/class_list.html +8 -3
- data/doc/css/style.css +2 -1
- data/doc/file.README.html +455 -104
- data/doc/file_list.html +7 -2
- data/doc/frames.html +5 -7
- data/doc/index.html +455 -104
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +11 -3
- data/doc/method_list.html +3170 -1233
- data/doc/top-level-namespace.html +31 -8
- data/lib/colt/matrix/algebra.rb +5 -5
- data/lib/mdarray.rb +6 -3
- data/lib/mdarray/csv.rb +25 -5
- data/lib/mdarray/fast_operators.rb +1 -1
- data/lib/mdarray/function_creation.rb +3 -1
- data/lib/mdarray/hierarchy.rb +2 -0
- data/lib/mdarray/operators.rb +1 -1
- data/lib/mdarray/ruby_functions.rb +8 -4
- data/lib/mdarray/ruby_math.rb +0 -28
- data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
- data/test/complete.rb +4 -4
- data/test/mdarray/PETR4_2014.csv +249 -0
- data/test/mdarray/VALE_2014.csv +253 -0
- data/test/mdarray/VALE_PETR4.csv +501 -0
- data/test/mdarray/arithmetic_casting.rb +1 -0
- data/test/mdarray/test_access.rb +1 -0
- data/test/mdarray/test_boolean.rb +1 -0
- data/test/mdarray/test_comparison.rb +1 -0
- data/test/mdarray/test_complete.rb +2 -5
- data/test/mdarray/test_counter.rb +1 -0
- data/test/mdarray/test_creation.rb +1 -0
- data/test/mdarray/test_csv.rb +51 -0
- data/test/mdarray/test_error.rb +1 -0
- data/test/mdarray/test_non_numeric.rb +1 -1
- data/test/mdarray/test_operator.rb +31 -14
- data/test/mdarray/test_performance.rb +2 -1
- data/test/mdarray/test_printing.rb +1 -0
- data/test/mdarray/test_sections.rb +1 -0
- data/test/mdarray/test_shape.rb +1 -0
- data/test/mdarray/test_trigonometry.rb +1 -0
- data/test/mdarray/test_views.rb +1 -0
- data/vendor/mdarray.jar +0 -0
- data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
- data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
- data/version.rb +1 -1
- metadata +247 -139
- data/lib/env.rb +0 -12
- data/lib/mdarray/lazy_mdarray.rb +0 -315
- data/lib/mdarray/lazy_operators.rb +0 -174
- data/test/env.rb +0 -8
- data/test/mdarray/test_lazy.rb +0 -306
|
@@ -0,0 +1,2875 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: NetCDF::FileWriter
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!NetCDF/FileWriter.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (F)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../NetCDF.html" title="NetCDF (class)">NetCDF</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">FileWriter</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: NetCDF::FileWriter
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="FileParent.html" title="NetCDF::FileParent (class)">FileParent</a></span></span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next"><span class='object_link'><a href="FileParent.html" title="NetCDF::FileParent (class)">FileParent</a></span></li>
|
|
82
|
+
|
|
83
|
+
<li class="next">NetCDF::FileWriter</li>
|
|
84
|
+
|
|
85
|
+
</ul>
|
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
87
|
+
|
|
88
|
+
</dd>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
|
99
|
+
<dd class="r2 last">lib/netcdf/file_writer.rb</dd>
|
|
100
|
+
|
|
101
|
+
</dl>
|
|
102
|
+
<div class="clear"></div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
109
|
+
<ul class="summary">
|
|
110
|
+
|
|
111
|
+
<li class="public ">
|
|
112
|
+
<span class="summary_signature">
|
|
113
|
+
|
|
114
|
+
<a href="#reader-instance_method" title="#reader (instance method)">- (Object) <strong>reader</strong> </a>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</span>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<span class="note title readonly">readonly</span>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<span class="summary_desc"><div class='inline'>
|
|
134
|
+
<p>Opens the same file just for reading.</p>
|
|
135
|
+
</div></span>
|
|
136
|
+
|
|
137
|
+
</li>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<li class="public ">
|
|
141
|
+
<span class="summary_signature">
|
|
142
|
+
|
|
143
|
+
<a href="#version-instance_method" title="#version (instance method)">- (Object) <strong>version</strong> </a>
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</span>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<span class="note title readonly">readonly</span>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<span class="summary_desc"><div class='inline'>
|
|
163
|
+
<p>Returns the value of attribute version.</p>
|
|
164
|
+
</div></span>
|
|
165
|
+
|
|
166
|
+
</li>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
</ul>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FileParent.html" title="NetCDF::FileParent (class)">FileParent</a></span></h3>
|
|
176
|
+
<p class="inherited"><span class='object_link'><a href="FileParent.html#file_name-instance_method" title="NetCDF::FileParent#file_name (method)">#file_name</a></span>, <span class='object_link'><a href="FileParent.html#home_dir-instance_method" title="NetCDF::FileParent#home_dir (method)">#home_dir</a></span>, <span class='object_link'><a href="FileParent.html#netcdf_elmt-instance_method" title="NetCDF::FileParent#netcdf_elmt (method)">#netcdf_elmt</a></span>, <span class='object_link'><a href="FileParent.html#outside_scope-instance_method" title="NetCDF::FileParent#outside_scope (method)">#outside_scope</a></span>, <span class='object_link'><a href="FileParent.html#root_group-instance_method" title="NetCDF::FileParent#root_group (method)">#root_group</a></span></p>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<h2>
|
|
181
|
+
Class Method Summary
|
|
182
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
183
|
+
</h2>
|
|
184
|
+
|
|
185
|
+
<ul class="summary">
|
|
186
|
+
|
|
187
|
+
<li class="public ">
|
|
188
|
+
<span class="summary_signature">
|
|
189
|
+
|
|
190
|
+
<a href="#existing_file-class_method" title="existing_file (class method)">+ (Object) <strong>existing_file</strong>(home_dir, name, outside_scope = nil) </a>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</span>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<span class="summary_desc"><div class='inline'>
|
|
205
|
+
<p>------------------------------------------------------------------------------------
|
|
206
|
+
Writer for an existing NetCDF file
|
|
207
|
+
------------------------------------------------------------------------------------.</p>
|
|
208
|
+
</div></span>
|
|
209
|
+
|
|
210
|
+
</li>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
<li class="public ">
|
|
214
|
+
<span class="summary_signature">
|
|
215
|
+
|
|
216
|
+
<a href="#new_file-class_method" title="new_file (class method)">+ (Object) <strong>new_file</strong>(home_dir, name, version, outside_scope = nil) </a>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
</span>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
|
231
|
+
<p>------------------------------------------------------------------------------------
|
|
232
|
+
Writer for a new NetCDF file
|
|
233
|
+
------------------------------------------------------------------------------------.</p>
|
|
234
|
+
</div></span>
|
|
235
|
+
|
|
236
|
+
</li>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
</ul>
|
|
240
|
+
|
|
241
|
+
<h2>
|
|
242
|
+
Instance Method Summary
|
|
243
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
244
|
+
</h2>
|
|
245
|
+
|
|
246
|
+
<ul class="summary">
|
|
247
|
+
|
|
248
|
+
<li class="public ">
|
|
249
|
+
<span class="summary_signature">
|
|
250
|
+
|
|
251
|
+
<a href="#add_dimension-instance_method" title="#add_dimension (instance method)">- (Object) <strong>add_dimension</strong>(name, size, is_shared = true) </a>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
</span>
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
<span class="summary_desc"><div class='inline'>
|
|
266
|
+
<p>------------------------------------------------------------------------------------
|
|
267
|
+
Add a Dimension to the file.</p>
|
|
268
|
+
</div></span>
|
|
269
|
+
|
|
270
|
+
</li>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
<li class="public ">
|
|
274
|
+
<span class="summary_signature">
|
|
275
|
+
|
|
276
|
+
<a href="#add_global_att-instance_method" title="#add_global_att (instance method)">- (Object) <strong>add_global_att</strong>(name, value, type) </a>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</span>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<span class="summary_desc"><div class='inline'>
|
|
291
|
+
<p>------------------------------------------------------------------------------------
|
|
292
|
+
Adds a global attribute
|
|
293
|
+
------------------------------------------------------------------------------------.</p>
|
|
294
|
+
</div></span>
|
|
295
|
+
|
|
296
|
+
</li>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
<li class="public ">
|
|
300
|
+
<span class="summary_signature">
|
|
301
|
+
|
|
302
|
+
<a href="#add_group-instance_method" title="#add_group (instance method)">- (Object) <strong>add_group</strong>(parent, name) </a>
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
</span>
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
<span class="summary_desc"><div class='inline'>
|
|
317
|
+
<p>------------------------------------------------------------------------------------
|
|
318
|
+
Adds a new group to the file.</p>
|
|
319
|
+
</div></span>
|
|
320
|
+
|
|
321
|
+
</li>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
<li class="public ">
|
|
325
|
+
<span class="summary_signature">
|
|
326
|
+
|
|
327
|
+
<a href="#add_group_att-instance_method" title="#add_group_att (instance method)">- (Object) <strong>add_group_att</strong>(group, attribute) </a>
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
</span>
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
<span class="summary_desc"><div class='inline'>
|
|
342
|
+
<p>------------------------------------------------------------------------------------
|
|
343
|
+
Adds a group attribute
|
|
344
|
+
------------------------------------------------------------------------------------.</p>
|
|
345
|
+
</div></span>
|
|
346
|
+
|
|
347
|
+
</li>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
<li class="public ">
|
|
351
|
+
<span class="summary_signature">
|
|
352
|
+
|
|
353
|
+
<a href="#add_root_group-instance_method" title="#add_root_group (instance method)">- (Object) <strong>add_root_group</strong> </a>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</span>
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
<span class="summary_desc"><div class='inline'>
|
|
368
|
+
<p>------------------------------------------------------------------------------------
|
|
369
|
+
Adds the root group to the file.</p>
|
|
370
|
+
</div></span>
|
|
371
|
+
|
|
372
|
+
</li>
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
<li class="public ">
|
|
376
|
+
<span class="summary_signature">
|
|
377
|
+
|
|
378
|
+
<a href="#add_variable-instance_method" title="#add_variable (instance method)">- (Object) <strong>add_variable</strong>(var_name, type, dims, *args) </a>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
</span>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
<span class="summary_desc"><div class='inline'>
|
|
393
|
+
<p>------------------------------------------------------------------------------------
|
|
394
|
+
Add a variable to the file.</p>
|
|
395
|
+
</div></span>
|
|
396
|
+
|
|
397
|
+
</li>
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
<li class="public ">
|
|
401
|
+
<span class="summary_signature">
|
|
402
|
+
|
|
403
|
+
<a href="#add_variable_att-instance_method" title="#add_variable_att (instance method)">- (Object) <strong>add_variable_att</strong>(variable, name, value) </a>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
</span>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
<span class="summary_desc"><div class='inline'>
|
|
418
|
+
<p>------------------------------------------------------------------------------------
|
|
419
|
+
Adds a variable attribute
|
|
420
|
+
------------------------------------------------------------------------------------.</p>
|
|
421
|
+
</div></span>
|
|
422
|
+
|
|
423
|
+
</li>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
<li class="public ">
|
|
427
|
+
<span class="summary_signature">
|
|
428
|
+
|
|
429
|
+
<a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
</span>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
<span class="summary_desc"><div class='inline'>
|
|
444
|
+
<p>------------------------------------------------------------------------------------
|
|
445
|
+
closes the file
|
|
446
|
+
------------------------------------------------------------------------------------.</p>
|
|
447
|
+
</div></span>
|
|
448
|
+
|
|
449
|
+
</li>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
<li class="public ">
|
|
453
|
+
<span class="summary_signature">
|
|
454
|
+
|
|
455
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong> </a>
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
</span>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
<span class="summary_desc"><div class='inline'>
|
|
470
|
+
<p>------------------------------------------------------------------------------------
|
|
471
|
+
After you have added all of the Dimensions, Variables, and Attributes, call
|
|
472
|
+
create to actually create the file.</p>
|
|
473
|
+
</div></span>
|
|
474
|
+
|
|
475
|
+
</li>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
<li class="public ">
|
|
479
|
+
<span class="summary_signature">
|
|
480
|
+
|
|
481
|
+
<a href="#define_mode%3F-instance_method" title="#define_mode? (instance method)">- (Boolean) <strong>define_mode?</strong> </a>
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
</span>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
<span class="summary_desc"><div class='inline'>
|
|
496
|
+
<p>------------------------------------------------------------------------------------
|
|
497
|
+
Returns true if the file is in define mode
|
|
498
|
+
------------------------------------------------------------------------------------.</p>
|
|
499
|
+
</div></span>
|
|
500
|
+
|
|
501
|
+
</li>
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
<li class="public ">
|
|
505
|
+
<span class="summary_signature">
|
|
506
|
+
|
|
507
|
+
<a href="#delete_global_att-instance_method" title="#delete_global_att (instance method)">- (Object) <strong>delete_global_att</strong>(attribute_name) </a>
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
</span>
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
<span class="summary_desc"><div class='inline'>
|
|
522
|
+
<p>------------------------------------------------------------------------------------
|
|
523
|
+
Deletes a global attribute
|
|
524
|
+
------------------------------------------------------------------------------------.</p>
|
|
525
|
+
</div></span>
|
|
526
|
+
|
|
527
|
+
</li>
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
<li class="public ">
|
|
531
|
+
<span class="summary_signature">
|
|
532
|
+
|
|
533
|
+
<a href="#delete_variable_att-instance_method" title="#delete_variable_att (instance method)">- (Object) <strong>delete_variable_att</strong>(variable, att_name) </a>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
</span>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
<span class="summary_desc"><div class='inline'>
|
|
548
|
+
<p>------------------------------------------------------------------------------------
|
|
549
|
+
Deletes a variable attribute
|
|
550
|
+
------------------------------------------------------------------------------------.</p>
|
|
551
|
+
</div></span>
|
|
552
|
+
|
|
553
|
+
</li>
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
<li class="public ">
|
|
557
|
+
<span class="summary_signature">
|
|
558
|
+
|
|
559
|
+
<a href="#dimension-instance_method" title="#dimension (instance method)">- (Object) <strong>dimension</strong>(name, size, is_shared = true) </a>
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
</span>
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
<span class="summary_desc"><div class='inline'>
|
|
574
|
+
<p>------------------------------------------------------------------------------------
|
|
575
|
+
Adds a new dimension.</p>
|
|
576
|
+
</div></span>
|
|
577
|
+
|
|
578
|
+
</li>
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
<li class="public ">
|
|
582
|
+
<span class="summary_signature">
|
|
583
|
+
|
|
584
|
+
<a href="#fill%3D-instance_method" title="#fill= (instance method)">- (Object) <strong>fill=</strong>(bool) </a>
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
</span>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
<span class="summary_desc"><div class='inline'>
|
|
599
|
+
<p>------------------------------------------------------------------------------------
|
|
600
|
+
Set the fill flag.</p>
|
|
601
|
+
</div></span>
|
|
602
|
+
|
|
603
|
+
</li>
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
<li class="public ">
|
|
607
|
+
<span class="summary_signature">
|
|
608
|
+
|
|
609
|
+
<a href="#find_global_attribute-instance_method" title="#find_global_attribute (instance method)">- (Object) <strong>find_global_attribute</strong>(name, ignore_case = false) </a>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
</span>
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
<span class="summary_desc"><div class='inline'>
|
|
624
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
625
|
+
</div></span>
|
|
626
|
+
|
|
627
|
+
</li>
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
<li class="public ">
|
|
631
|
+
<span class="summary_signature">
|
|
632
|
+
|
|
633
|
+
<a href="#find_variable-instance_method" title="#find_variable (instance method)">- (Object) <strong>find_variable</strong>(name) </a>
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
</span>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
<span class="summary_desc"><div class='inline'>
|
|
648
|
+
<p>------------------------------------------------------------------------------------
|
|
649
|
+
Finds a variable in the file
|
|
650
|
+
------------------------------------------------------------------------------------.</p>
|
|
651
|
+
</div></span>
|
|
652
|
+
|
|
653
|
+
</li>
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
<li class="public ">
|
|
657
|
+
<span class="summary_signature">
|
|
658
|
+
|
|
659
|
+
<a href="#flush-instance_method" title="#flush (instance method)">- (Object) <strong>flush</strong> </a>
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
</span>
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
<span class="summary_desc"><div class='inline'>
|
|
674
|
+
<p>------------------------------------------------------------------------------------
|
|
675
|
+
Flush anything written to disk
|
|
676
|
+
------------------------------------------------------------------------------------.</p>
|
|
677
|
+
</div></span>
|
|
678
|
+
|
|
679
|
+
</li>
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
<li class="public ">
|
|
683
|
+
<span class="summary_signature">
|
|
684
|
+
|
|
685
|
+
<a href="#get_file_type_description-instance_method" title="#get_file_type_description (instance method)">- (Object) <strong>get_file_type_description</strong> </a>
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
</span>
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
<span class="summary_desc"><div class='inline'>
|
|
700
|
+
<p>------------------------------------------------------------------------------------
|
|
701
|
+
Get a human-readable description for this file type.</p>
|
|
702
|
+
</div></span>
|
|
703
|
+
|
|
704
|
+
</li>
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
<li class="public ">
|
|
708
|
+
<span class="summary_signature">
|
|
709
|
+
|
|
710
|
+
<a href="#global_att-instance_method" title="#global_att (instance method)">- (Object) <strong>global_att</strong>(name, value, type = "int") </a>
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
</span>
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
<span class="summary_desc"><div class='inline'>
|
|
725
|
+
<p>------------------------------------------------------------------------------------
|
|
726
|
+
Adds new global attribute.</p>
|
|
727
|
+
</div></span>
|
|
728
|
+
|
|
729
|
+
</li>
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
<li class="public ">
|
|
733
|
+
<span class="summary_signature">
|
|
734
|
+
|
|
735
|
+
<a href="#large_file%3D-instance_method" title="#large_file= (instance method)">- (Object) <strong>large_file=</strong>(bool) </a>
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
</span>
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
<span class="summary_desc"><div class='inline'>
|
|
750
|
+
<p>------------------------------------------------------------------------------------
|
|
751
|
+
Set if this should be a "large file" (64-bit offset) format.</p>
|
|
752
|
+
</div></span>
|
|
753
|
+
|
|
754
|
+
</li>
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
<li class="public ">
|
|
758
|
+
<span class="summary_signature">
|
|
759
|
+
|
|
760
|
+
<a href="#open-instance_method" title="#open (instance method)">- (Object) <strong>open</strong> </a>
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
</span>
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
<span class="summary_desc"><div class='inline'>
|
|
775
|
+
<p>------------------------------------------------------------------------------------
|
|
776
|
+
Opens a netCDF file.</p>
|
|
777
|
+
</div></span>
|
|
778
|
+
|
|
779
|
+
</li>
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
<li class="public ">
|
|
783
|
+
<span class="summary_signature">
|
|
784
|
+
|
|
785
|
+
<a href="#redefine%3D-instance_method" title="#redefine= (instance method)">- (Object) <strong>redefine=</strong>(bool) </a>
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
</span>
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
<span class="summary_desc"><div class='inline'>
|
|
800
|
+
<p>------------------------------------------------------------------------------------
|
|
801
|
+
Switches redefine mode.</p>
|
|
802
|
+
</div></span>
|
|
803
|
+
|
|
804
|
+
</li>
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
<li class="public ">
|
|
808
|
+
<span class="summary_signature">
|
|
809
|
+
|
|
810
|
+
<a href="#rename_dimension-instance_method" title="#rename_dimension (instance method)">- (Object) <strong>rename_dimension</strong>(old_name, new_name) </a>
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
</span>
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
<span class="summary_desc"><div class='inline'>
|
|
825
|
+
<p>------------------------------------------------------------------------------------
|
|
826
|
+
Rename a Dimension.</p>
|
|
827
|
+
</div></span>
|
|
828
|
+
|
|
829
|
+
</li>
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
<li class="public ">
|
|
833
|
+
<span class="summary_signature">
|
|
834
|
+
|
|
835
|
+
<a href="#rename_global_att-instance_method" title="#rename_global_att (instance method)">- (Object) <strong>rename_global_att</strong>(old_name, new_name) </a>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
</span>
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
<span class="summary_desc"><div class='inline'>
|
|
850
|
+
<p>------------------------------------------------------------------------------------
|
|
851
|
+
Rename a global Attribute.</p>
|
|
852
|
+
</div></span>
|
|
853
|
+
|
|
854
|
+
</li>
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
<li class="public ">
|
|
858
|
+
<span class="summary_signature">
|
|
859
|
+
|
|
860
|
+
<a href="#rename_variable-instance_method" title="#rename_variable (instance method)">- (Object) <strong>rename_variable</strong>(old_name, new_name) </a>
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
</span>
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
<span class="summary_desc"><div class='inline'>
|
|
875
|
+
<p>------------------------------------------------------------------------------------
|
|
876
|
+
Rename a Variable.</p>
|
|
877
|
+
</div></span>
|
|
878
|
+
|
|
879
|
+
</li>
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
<li class="public ">
|
|
883
|
+
<span class="summary_signature">
|
|
884
|
+
|
|
885
|
+
<a href="#rename_variable_att-instance_method" title="#rename_variable_att (instance method)">- (Object) <strong>rename_variable_att</strong>(variable, att_name, new_name) </a>
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
</span>
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
<span class="summary_desc"><div class='inline'>
|
|
900
|
+
<p>------------------------------------------------------------------------------------
|
|
901
|
+
Renames a variable attribute
|
|
902
|
+
------------------------------------------------------------------------------------.</p>
|
|
903
|
+
</div></span>
|
|
904
|
+
|
|
905
|
+
</li>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
<li class="public ">
|
|
909
|
+
<span class="summary_signature">
|
|
910
|
+
|
|
911
|
+
<a href="#variable-instance_method" title="#variable (instance method)">- (Object) <strong>variable</strong>(name, type, dims, *args) </a>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
</span>
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
<span class="summary_desc"><div class='inline'>
|
|
926
|
+
<p>------------------------------------------------------------------------------------
|
|
927
|
+
Adds new variable
|
|
928
|
+
------------------------------------------------------------------------------------.</p>
|
|
929
|
+
</div></span>
|
|
930
|
+
|
|
931
|
+
</li>
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
<li class="public ">
|
|
935
|
+
<span class="summary_signature">
|
|
936
|
+
|
|
937
|
+
<a href="#variable_att-instance_method" title="#variable_att (instance method)">- (Object) <strong>variable_att</strong>(variable, att_name, value) </a>
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
</span>
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<span class="summary_desc"><div class='inline'>
|
|
952
|
+
<p>------------------------------------------------------------------------------------
|
|
953
|
+
Adds new variable attribute
|
|
954
|
+
------------------------------------------------------------------------------------.</p>
|
|
955
|
+
</div></span>
|
|
956
|
+
|
|
957
|
+
</li>
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
<li class="public ">
|
|
961
|
+
<span class="summary_signature">
|
|
962
|
+
|
|
963
|
+
<a href="#write-instance_method" title="#write (instance method)">- (Object) <strong>write</strong>(variable, values, origin = nil) </a>
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
</span>
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
<span class="summary_desc"><div class='inline'>
|
|
978
|
+
<p>------------------------------------------------------------------------------------
|
|
979
|
+
writes the given data with the given layout on variable at origin
|
|
980
|
+
@nc_i.write(, , , ) if data is not given, then it is assumed to be all
|
|
981
|
+
zeroes @nc_i.write(, , ) var_name Name of the variable in which to write
|
|
982
|
+
type type of the data.</p>
|
|
983
|
+
</div></span>
|
|
984
|
+
|
|
985
|
+
</li>
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
<li class="public ">
|
|
989
|
+
<span class="summary_signature">
|
|
990
|
+
|
|
991
|
+
<a href="#write_string-instance_method" title="#write_string (instance method)">- (Object) <strong>write_string</strong>(variable, values, origin = nil) </a>
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
</span>
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
<span class="summary_desc"><div class='inline'>
|
|
1006
|
+
<p>------------------------------------------------------------------------------------
|
|
1007
|
+
writes a string data to the variable at origin if data is not given, then
|
|
1008
|
+
it is assumed to be all zeroes var_name Name of the variable in which to
|
|
1009
|
+
write type type of the data.</p>
|
|
1010
|
+
</div></span>
|
|
1011
|
+
|
|
1012
|
+
</li>
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
<li class="public ">
|
|
1016
|
+
<span class="summary_signature">
|
|
1017
|
+
|
|
1018
|
+
<a href="#write_time-instance_method" title="#write_time (instance method)">- (Object) <strong>write_time</strong>(var_name, layout, data, origin = nil) </a>
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
</span>
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
<span class="summary_desc"><div class='inline'>
|
|
1033
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
1034
|
+
</div></span>
|
|
1035
|
+
|
|
1036
|
+
</li>
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
</ul>
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FileParent.html" title="NetCDF::FileParent (class)">FileParent</a></span></h3>
|
|
1052
|
+
<p class="inherited"><span class='object_link'><a href="FileParent.html#global_attributes-instance_method" title="NetCDF::FileParent#global_attributes (method)">#global_attributes</a></span></p>
|
|
1053
|
+
|
|
1054
|
+
<div id="instance_attr_details" class="attr_details">
|
|
1055
|
+
<h2>Instance Attribute Details</h2>
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
<span id=""></span>
|
|
1059
|
+
<div class="method_details first">
|
|
1060
|
+
<h3 class="signature first" id="reader-instance_method">
|
|
1061
|
+
|
|
1062
|
+
- (<tt>Object</tt>) <strong>reader</strong> <span class="extras">(readonly)</span>
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
</h3><div class="docstring">
|
|
1069
|
+
<div class="discussion">
|
|
1070
|
+
|
|
1071
|
+
<p>Opens the same file just for reading. I don't know it this will work
|
|
1072
|
+
properly. Needed as the API for FileWriter lacks some interesting features.
|
|
1073
|
+
Or maybe not! I don't know... I might just be confused!</p>
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
</div>
|
|
1077
|
+
</div>
|
|
1078
|
+
<div class="tags">
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
</div><table class="source_code">
|
|
1082
|
+
<tr>
|
|
1083
|
+
<td>
|
|
1084
|
+
<pre class="lines">
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
32
|
|
1088
|
+
33
|
|
1089
|
+
34</pre>
|
|
1090
|
+
</td>
|
|
1091
|
+
<td>
|
|
1092
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 32</span>
|
|
1093
|
+
|
|
1094
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reader'>reader</span>
|
|
1095
|
+
<span class='ivar'>@reader</span>
|
|
1096
|
+
<span class='kw'>end</span></pre>
|
|
1097
|
+
</td>
|
|
1098
|
+
</tr>
|
|
1099
|
+
</table>
|
|
1100
|
+
</div>
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<span id=""></span>
|
|
1104
|
+
<div class="method_details ">
|
|
1105
|
+
<h3 class="signature " id="version-instance_method">
|
|
1106
|
+
|
|
1107
|
+
- (<tt>Object</tt>) <strong>version</strong> <span class="extras">(readonly)</span>
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
</h3><div class="docstring">
|
|
1114
|
+
<div class="discussion">
|
|
1115
|
+
|
|
1116
|
+
<p>Returns the value of attribute version</p>
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
</div>
|
|
1120
|
+
</div>
|
|
1121
|
+
<div class="tags">
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
</div><table class="source_code">
|
|
1125
|
+
<tr>
|
|
1126
|
+
<td>
|
|
1127
|
+
<pre class="lines">
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
28
|
|
1131
|
+
29
|
|
1132
|
+
30</pre>
|
|
1133
|
+
</td>
|
|
1134
|
+
<td>
|
|
1135
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 28</span>
|
|
1136
|
+
|
|
1137
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span>
|
|
1138
|
+
<span class='ivar'>@version</span>
|
|
1139
|
+
<span class='kw'>end</span></pre>
|
|
1140
|
+
</td>
|
|
1141
|
+
</tr>
|
|
1142
|
+
</table>
|
|
1143
|
+
</div>
|
|
1144
|
+
|
|
1145
|
+
</div>
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
<div id="class_method_details" class="method_details_list">
|
|
1149
|
+
<h2>Class Method Details</h2>
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
<div class="method_details first">
|
|
1153
|
+
<h3 class="signature first" id="existing_file-class_method">
|
|
1154
|
+
|
|
1155
|
+
+ (<tt>Object</tt>) <strong>existing_file</strong>(home_dir, name, outside_scope = nil)
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
</h3><div class="docstring">
|
|
1162
|
+
<div class="discussion">
|
|
1163
|
+
<hr>
|
|
1164
|
+
|
|
1165
|
+
<p>Writer for an existing NetCDF file</p>
|
|
1166
|
+
<hr>
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
</div>
|
|
1170
|
+
</div>
|
|
1171
|
+
<div class="tags">
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
</div><table class="source_code">
|
|
1175
|
+
<tr>
|
|
1176
|
+
<td>
|
|
1177
|
+
<pre class="lines">
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
46
|
|
1181
|
+
47
|
|
1182
|
+
48</pre>
|
|
1183
|
+
</td>
|
|
1184
|
+
<td>
|
|
1185
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 46</span>
|
|
1186
|
+
|
|
1187
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_existing_file'>existing_file</span><span class='lparen'>(</span><span class='id identifier rubyid_home_dir'>home_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_outside_scope'>outside_scope</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1188
|
+
<span class='const'>FileWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_home_dir'>home_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_outside_scope'>outside_scope</span><span class='rparen'>)</span>
|
|
1189
|
+
<span class='kw'>end</span></pre>
|
|
1190
|
+
</td>
|
|
1191
|
+
</tr>
|
|
1192
|
+
</table>
|
|
1193
|
+
</div>
|
|
1194
|
+
|
|
1195
|
+
<div class="method_details ">
|
|
1196
|
+
<h3 class="signature " id="new_file-class_method">
|
|
1197
|
+
|
|
1198
|
+
+ (<tt>Object</tt>) <strong>new_file</strong>(home_dir, name, version, outside_scope = nil)
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
</h3><div class="docstring">
|
|
1205
|
+
<div class="discussion">
|
|
1206
|
+
<hr>
|
|
1207
|
+
|
|
1208
|
+
<p>Writer for a new NetCDF file</p>
|
|
1209
|
+
<hr>
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
</div>
|
|
1213
|
+
</div>
|
|
1214
|
+
<div class="tags">
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
</div><table class="source_code">
|
|
1218
|
+
<tr>
|
|
1219
|
+
<td>
|
|
1220
|
+
<pre class="lines">
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
38
|
|
1224
|
+
39
|
|
1225
|
+
40</pre>
|
|
1226
|
+
</td>
|
|
1227
|
+
<td>
|
|
1228
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 38</span>
|
|
1229
|
+
|
|
1230
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new_file'>new_file</span><span class='lparen'>(</span><span class='id identifier rubyid_home_dir'>home_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_version'>version</span><span class='comma'>,</span> <span class='id identifier rubyid_outside_scope'>outside_scope</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1231
|
+
<span class='const'>FileWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_home_dir'>home_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_version'>version</span><span class='comma'>,</span> <span class='id identifier rubyid_outside_scope'>outside_scope</span><span class='rparen'>)</span>
|
|
1232
|
+
<span class='kw'>end</span></pre>
|
|
1233
|
+
</td>
|
|
1234
|
+
</tr>
|
|
1235
|
+
</table>
|
|
1236
|
+
</div>
|
|
1237
|
+
|
|
1238
|
+
</div>
|
|
1239
|
+
|
|
1240
|
+
<div id="instance_method_details" class="method_details_list">
|
|
1241
|
+
<h2>Instance Method Details</h2>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<div class="method_details first">
|
|
1245
|
+
<h3 class="signature first" id="add_dimension-instance_method">
|
|
1246
|
+
|
|
1247
|
+
- (<tt>Object</tt>) <strong>add_dimension</strong>(name, size, is_shared = true)
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
</h3><div class="docstring">
|
|
1254
|
+
<div class="discussion">
|
|
1255
|
+
<hr>
|
|
1256
|
+
|
|
1257
|
+
<p>Add a Dimension to the file. Must be in define mode. <code>dimName</code>
|
|
1258
|
+
name of dimension (string) <code>length</code> size of dimension (int). If
|
|
1259
|
+
size == 0, dimension is unlimited <tt> is_shared<tt> if
|
|
1260
|
+
dimension is shared (boolean) if size == -1, then this is a variable_length
|
|
1261
|
+
dimension if size == 0, this is an unlimited dimension NetCDF3 only
|
|
1262
|
+
supports shared dimensions.</p>
|
|
1263
|
+
<hr>
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
</div>
|
|
1267
|
+
</div>
|
|
1268
|
+
<div class="tags">
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
</div><table class="source_code">
|
|
1272
|
+
<tr>
|
|
1273
|
+
<td>
|
|
1274
|
+
<pre class="lines">
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
150
|
|
1278
|
+
151
|
|
1279
|
+
152
|
|
1280
|
+
153
|
|
1281
|
+
154
|
|
1282
|
+
155
|
|
1283
|
+
156
|
|
1284
|
+
157
|
|
1285
|
+
158
|
|
1286
|
+
159
|
|
1287
|
+
160
|
|
1288
|
+
161
|
|
1289
|
+
162
|
|
1290
|
+
163
|
|
1291
|
+
164
|
|
1292
|
+
165
|
|
1293
|
+
166</pre>
|
|
1294
|
+
</td>
|
|
1295
|
+
<td>
|
|
1296
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 150</span>
|
|
1297
|
+
|
|
1298
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_dimension'>add_dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_is_shared'>is_shared</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1299
|
+
|
|
1300
|
+
<span class='id identifier rubyid_is_unlimited'>is_unlimited</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
1301
|
+
<span class='id identifier rubyid_is_variable_length'>is_variable_length</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
1302
|
+
<span class='id identifier rubyid_dim'>dim</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
1303
|
+
|
|
1304
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='op'>-</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
1305
|
+
<span class='id identifier rubyid_is_variable_length'>is_variable_length</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
1306
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>0</span><span class='rparen'>)</span>
|
|
1307
|
+
<span class='id identifier rubyid_is_unlimited'>is_unlimited</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
1308
|
+
<span class='kw'>end</span>
|
|
1309
|
+
|
|
1310
|
+
<span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>DimensionWriter</span><span class='period'>
|
|
1311
|
+
</span><span class='id identifier rubyid_ .new'> .new</span><span class='lparen'>(</span><span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_addDimension'>addDimension</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span>
|
|
1312
|
+
<span class='id identifier rubyid_is_shared'>is_shared</span><span class='comma'>,</span> <span class='id identifier rubyid_is_unlimited'>is_unlimited</span><span class='comma'>,</span> <span class='id identifier rubyid_is_variable_length'>is_variable_length</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1313
|
+
|
|
1314
|
+
<span class='kw'>end</span></pre>
|
|
1315
|
+
</td>
|
|
1316
|
+
</tr>
|
|
1317
|
+
</table>
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
<div class="method_details ">
|
|
1321
|
+
<h3 class="signature " id="add_global_att-instance_method">
|
|
1322
|
+
|
|
1323
|
+
- (<tt>Object</tt>) <strong>add_global_att</strong>(name, value, type)
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
</h3><div class="docstring">
|
|
1330
|
+
<div class="discussion">
|
|
1331
|
+
<hr>
|
|
1332
|
+
|
|
1333
|
+
<p>Adds a global attribute</p>
|
|
1334
|
+
<hr>
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
</div>
|
|
1338
|
+
</div>
|
|
1339
|
+
<div class="tags">
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
</div><table class="source_code">
|
|
1343
|
+
<tr>
|
|
1344
|
+
<td>
|
|
1345
|
+
<pre class="lines">
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
104
|
|
1349
|
+
105
|
|
1350
|
+
106
|
|
1351
|
+
107</pre>
|
|
1352
|
+
</td>
|
|
1353
|
+
<td>
|
|
1354
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 104</span>
|
|
1355
|
+
|
|
1356
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_global_att'>add_global_att</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
1357
|
+
<span class='id identifier rubyid_attribute'>attribute</span> <span class='op'>=</span> <span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>AttributeWriter</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
1358
|
+
<span class='id identifier rubyid_add_group_att'>add_group_att</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='comma'>,</span> <span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span>
|
|
1359
|
+
<span class='kw'>end</span></pre>
|
|
1360
|
+
</td>
|
|
1361
|
+
</tr>
|
|
1362
|
+
</table>
|
|
1363
|
+
</div>
|
|
1364
|
+
|
|
1365
|
+
<div class="method_details ">
|
|
1366
|
+
<h3 class="signature " id="add_group-instance_method">
|
|
1367
|
+
|
|
1368
|
+
- (<tt>Object</tt>) <strong>add_group</strong>(parent, name)
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
</h3><div class="docstring">
|
|
1375
|
+
<div class="discussion">
|
|
1376
|
+
<hr>
|
|
1377
|
+
|
|
1378
|
+
<p>Adds a new group to the file.</p>
|
|
1379
|
+
<hr>
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
</div>
|
|
1383
|
+
</div>
|
|
1384
|
+
<div class="tags">
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
</div><table class="source_code">
|
|
1388
|
+
<tr>
|
|
1389
|
+
<td>
|
|
1390
|
+
<pre class="lines">
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
79
|
|
1394
|
+
80
|
|
1395
|
+
81</pre>
|
|
1396
|
+
</td>
|
|
1397
|
+
<td>
|
|
1398
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 79</span>
|
|
1399
|
+
|
|
1400
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_group'>add_group</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
1401
|
+
<span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>GroupWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_addGroup'>addGroup</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1402
|
+
<span class='kw'>end</span></pre>
|
|
1403
|
+
</td>
|
|
1404
|
+
</tr>
|
|
1405
|
+
</table>
|
|
1406
|
+
</div>
|
|
1407
|
+
|
|
1408
|
+
<div class="method_details ">
|
|
1409
|
+
<h3 class="signature " id="add_group_att-instance_method">
|
|
1410
|
+
|
|
1411
|
+
- (<tt>Object</tt>) <strong>add_group_att</strong>(group, attribute)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
</h3><div class="docstring">
|
|
1418
|
+
<div class="discussion">
|
|
1419
|
+
<hr>
|
|
1420
|
+
|
|
1421
|
+
<p>Adds a group attribute</p>
|
|
1422
|
+
<hr>
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
</div>
|
|
1426
|
+
</div>
|
|
1427
|
+
<div class="tags">
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
</div><table class="source_code">
|
|
1431
|
+
<tr>
|
|
1432
|
+
<td>
|
|
1433
|
+
<pre class="lines">
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
95
|
|
1437
|
+
96
|
|
1438
|
+
97
|
|
1439
|
+
98</pre>
|
|
1440
|
+
</td>
|
|
1441
|
+
<td>
|
|
1442
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 95</span>
|
|
1443
|
+
|
|
1444
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_group_att'>add_group_att</span><span class='lparen'>(</span><span class='id identifier rubyid_group'>group</span><span class='comma'>,</span> <span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span>
|
|
1445
|
+
<span class='id identifier rubyid_group'>group</span><span class='period'>.</span><span class='id identifier rubyid_add_attribute'>add_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span>
|
|
1446
|
+
<span class='id identifier rubyid_attribute'>attribute</span>
|
|
1447
|
+
<span class='kw'>end</span></pre>
|
|
1448
|
+
</td>
|
|
1449
|
+
</tr>
|
|
1450
|
+
</table>
|
|
1451
|
+
</div>
|
|
1452
|
+
|
|
1453
|
+
<div class="method_details ">
|
|
1454
|
+
<h3 class="signature " id="add_root_group-instance_method">
|
|
1455
|
+
|
|
1456
|
+
- (<tt>Object</tt>) <strong>add_root_group</strong>
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
</h3><div class="docstring">
|
|
1463
|
+
<div class="discussion">
|
|
1464
|
+
<hr>
|
|
1465
|
+
|
|
1466
|
+
<p>Adds the root group to the file.</p>
|
|
1467
|
+
<hr>
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
</div>
|
|
1471
|
+
</div>
|
|
1472
|
+
<div class="tags">
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
</div><table class="source_code">
|
|
1476
|
+
<tr>
|
|
1477
|
+
<td>
|
|
1478
|
+
<pre class="lines">
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
87
|
|
1482
|
+
88
|
|
1483
|
+
89</pre>
|
|
1484
|
+
</td>
|
|
1485
|
+
<td>
|
|
1486
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 87</span>
|
|
1487
|
+
|
|
1488
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_root_group'>add_root_group</span>
|
|
1489
|
+
<span class='ivar'>@root_group</span> <span class='op'>=</span> <span class='id identifier rubyid_add_group'>add_group</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>root</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1490
|
+
<span class='kw'>end</span></pre>
|
|
1491
|
+
</td>
|
|
1492
|
+
</tr>
|
|
1493
|
+
</table>
|
|
1494
|
+
</div>
|
|
1495
|
+
|
|
1496
|
+
<div class="method_details ">
|
|
1497
|
+
<h3 class="signature " id="add_variable-instance_method">
|
|
1498
|
+
|
|
1499
|
+
- (<tt>Object</tt>) <strong>add_variable</strong>(var_name, type, dims, *args)
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
</h3><div class="docstring">
|
|
1506
|
+
<div class="discussion">
|
|
1507
|
+
<hr>
|
|
1508
|
+
|
|
1509
|
+
<p>Add a variable to the file.</p>
|
|
1510
|
+
<hr>
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
</div>
|
|
1514
|
+
</div>
|
|
1515
|
+
<div class="tags">
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
</div><table class="source_code">
|
|
1519
|
+
<tr>
|
|
1520
|
+
<td>
|
|
1521
|
+
<pre class="lines">
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
181
|
|
1525
|
+
182
|
|
1526
|
+
183
|
|
1527
|
+
184
|
|
1528
|
+
185
|
|
1529
|
+
186
|
|
1530
|
+
187
|
|
1531
|
+
188
|
|
1532
|
+
189
|
|
1533
|
+
190
|
|
1534
|
+
191
|
|
1535
|
+
192
|
|
1536
|
+
193
|
|
1537
|
+
194
|
|
1538
|
+
195
|
|
1539
|
+
196
|
|
1540
|
+
197
|
|
1541
|
+
198
|
|
1542
|
+
199
|
|
1543
|
+
200
|
|
1544
|
+
201
|
|
1545
|
+
202
|
|
1546
|
+
203
|
|
1547
|
+
204
|
|
1548
|
+
205</pre>
|
|
1549
|
+
</td>
|
|
1550
|
+
<td>
|
|
1551
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 181</span>
|
|
1552
|
+
|
|
1553
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_variable'>add_variable</span><span class='lparen'>(</span><span class='id identifier rubyid_var_name'>var_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_dims'>dims</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
1554
|
+
|
|
1555
|
+
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='const'>Map</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
1556
|
+
<span class='id identifier rubyid_max_strlen'>max_strlen</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:max_strlen</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='op'>=></span><span class='int'>250</span><span class='rparen'>)</span>
|
|
1557
|
+
|
|
1558
|
+
<span class='comment'># if dims is an array then make a java dimension list
|
|
1559
|
+
</span> <span class='id identifier rubyid_dim_list'>dim_list</span> <span class='op'>=</span> <span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_util'>util</span><span class='period'>.</span><span class='const'>ArrayList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
1560
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_dims'>dims</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span><span class='rparen'>)</span>
|
|
1561
|
+
<span class='id identifier rubyid_dims'>dims</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dim'>dim</span><span class='op'>|</span>
|
|
1562
|
+
<span class='id identifier rubyid_dim_list'>dim_list</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_dim'>dim</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='rparen'>)</span>
|
|
1563
|
+
<span class='kw'>end</span>
|
|
1564
|
+
<span class='kw'>end</span>
|
|
1565
|
+
|
|
1566
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_type'>type</span>
|
|
1567
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>string</span><span class='tstring_end'>"</span></span>
|
|
1568
|
+
<span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>VariableWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@netcdf_elmt</span><span class='period'>
|
|
1569
|
+
</span><span class='id identifier rubyid_ .addStringVariable'> .addStringVariable</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_var_name'>var_name</span><span class='comma'>,</span>
|
|
1570
|
+
<span class='id identifier rubyid_dim_list'>dim_list</span><span class='comma'>,</span> <span class='id identifier rubyid_max_strlen'>max_strlen</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1571
|
+
<span class='kw'>else</span>
|
|
1572
|
+
<span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>VariableWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@netcdf_elmt</span><span class='period'>
|
|
1573
|
+
</span><span class='id identifier rubyid_ .addVariable'> .addVariable</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_var_name'>var_name</span><span class='comma'>,</span>
|
|
1574
|
+
<span class='const'>DataType</span><span class='period'>.</span><span class='id identifier rubyid_valueOf'>valueOf</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_dim_list'>dim_list</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1575
|
+
<span class='kw'>end</span>
|
|
1576
|
+
|
|
1577
|
+
<span class='kw'>end</span></pre>
|
|
1578
|
+
</td>
|
|
1579
|
+
</tr>
|
|
1580
|
+
</table>
|
|
1581
|
+
</div>
|
|
1582
|
+
|
|
1583
|
+
<div class="method_details ">
|
|
1584
|
+
<h3 class="signature " id="add_variable_att-instance_method">
|
|
1585
|
+
|
|
1586
|
+
- (<tt>Object</tt>) <strong>add_variable_att</strong>(variable, name, value)
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
</h3><div class="docstring">
|
|
1593
|
+
<div class="discussion">
|
|
1594
|
+
<hr>
|
|
1595
|
+
|
|
1596
|
+
<p>Adds a variable attribute</p>
|
|
1597
|
+
<hr>
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
</div>
|
|
1601
|
+
</div>
|
|
1602
|
+
<div class="tags">
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
</div><table class="source_code">
|
|
1606
|
+
<tr>
|
|
1607
|
+
<td>
|
|
1608
|
+
<pre class="lines">
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
229
|
|
1612
|
+
230
|
|
1613
|
+
231
|
|
1614
|
+
232
|
|
1615
|
+
233</pre>
|
|
1616
|
+
</td>
|
|
1617
|
+
<td>
|
|
1618
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 229</span>
|
|
1619
|
+
|
|
1620
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_variable_att'>add_variable_att</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
1621
|
+
<span class='id identifier rubyid_attribute'>attribute</span> <span class='op'>=</span> <span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>AttributeWriter</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
1622
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_addVariableAttribute'>addVariableAttribute</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_attribute'>attribute</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='rparen'>)</span>
|
|
1623
|
+
<span class='id identifier rubyid_attribute'>attribute</span>
|
|
1624
|
+
<span class='kw'>end</span></pre>
|
|
1625
|
+
</td>
|
|
1626
|
+
</tr>
|
|
1627
|
+
</table>
|
|
1628
|
+
</div>
|
|
1629
|
+
|
|
1630
|
+
<div class="method_details ">
|
|
1631
|
+
<h3 class="signature " id="close-instance_method">
|
|
1632
|
+
|
|
1633
|
+
- (<tt>Object</tt>) <strong>close</strong>
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
</h3><div class="docstring">
|
|
1640
|
+
<div class="discussion">
|
|
1641
|
+
<hr>
|
|
1642
|
+
|
|
1643
|
+
<p>closes the file</p>
|
|
1644
|
+
<hr>
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
</div>
|
|
1648
|
+
</div>
|
|
1649
|
+
<div class="tags">
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
</div><table class="source_code">
|
|
1653
|
+
<tr>
|
|
1654
|
+
<td>
|
|
1655
|
+
<pre class="lines">
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
316
|
|
1659
|
+
317
|
|
1660
|
+
318</pre>
|
|
1661
|
+
</td>
|
|
1662
|
+
<td>
|
|
1663
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 316</span>
|
|
1664
|
+
|
|
1665
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
|
1666
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
|
|
1667
|
+
<span class='kw'>end</span></pre>
|
|
1668
|
+
</td>
|
|
1669
|
+
</tr>
|
|
1670
|
+
</table>
|
|
1671
|
+
</div>
|
|
1672
|
+
|
|
1673
|
+
<div class="method_details ">
|
|
1674
|
+
<h3 class="signature " id="create-instance_method">
|
|
1675
|
+
|
|
1676
|
+
- (<tt>Object</tt>) <strong>create</strong>
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
</h3><div class="docstring">
|
|
1683
|
+
<div class="discussion">
|
|
1684
|
+
<hr>
|
|
1685
|
+
|
|
1686
|
+
<p>After you have added all of the Dimensions, Variables, and Attributes, call
|
|
1687
|
+
create to actually create the file. You must be in define mode. After this
|
|
1688
|
+
call, you are no longer in define mode.</p>
|
|
1689
|
+
<hr>
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
</div>
|
|
1693
|
+
</div>
|
|
1694
|
+
<div class="tags">
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
</div><table class="source_code">
|
|
1698
|
+
<tr>
|
|
1699
|
+
<td>
|
|
1700
|
+
<pre class="lines">
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
301
|
|
1704
|
+
302
|
|
1705
|
+
303
|
|
1706
|
+
304
|
|
1707
|
+
305
|
|
1708
|
+
306
|
|
1709
|
+
307
|
|
1710
|
+
308
|
|
1711
|
+
309
|
|
1712
|
+
310</pre>
|
|
1713
|
+
</td>
|
|
1714
|
+
<td>
|
|
1715
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 301</span>
|
|
1716
|
+
|
|
1717
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span>
|
|
1718
|
+
|
|
1719
|
+
<span class='kw'>begin</span>
|
|
1720
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span>
|
|
1721
|
+
<span class='kw'>rescue</span> <span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='const'>IOException</span> <span class='op'>=></span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
1722
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Error accessing file: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@file_name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
1723
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
1724
|
+
<span class='kw'>end</span>
|
|
1725
|
+
|
|
1726
|
+
<span class='kw'>end</span></pre>
|
|
1727
|
+
</td>
|
|
1728
|
+
</tr>
|
|
1729
|
+
</table>
|
|
1730
|
+
</div>
|
|
1731
|
+
|
|
1732
|
+
<div class="method_details ">
|
|
1733
|
+
<h3 class="signature " id="define_mode?-instance_method">
|
|
1734
|
+
|
|
1735
|
+
- (<tt>Boolean</tt>) <strong>define_mode?</strong>
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
</h3><div class="docstring">
|
|
1742
|
+
<div class="discussion">
|
|
1743
|
+
<hr>
|
|
1744
|
+
|
|
1745
|
+
<p>Returns true if the file is in define mode</p>
|
|
1746
|
+
<hr>
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
</div>
|
|
1750
|
+
</div>
|
|
1751
|
+
<div class="tags">
|
|
1752
|
+
|
|
1753
|
+
<p class="tag_title">Returns:</p>
|
|
1754
|
+
<ul class="return">
|
|
1755
|
+
|
|
1756
|
+
<li>
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
</li>
|
|
1764
|
+
|
|
1765
|
+
</ul>
|
|
1766
|
+
|
|
1767
|
+
</div><table class="source_code">
|
|
1768
|
+
<tr>
|
|
1769
|
+
<td>
|
|
1770
|
+
<pre class="lines">
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
340
|
|
1774
|
+
341
|
|
1775
|
+
342</pre>
|
|
1776
|
+
</td>
|
|
1777
|
+
<td>
|
|
1778
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 340</span>
|
|
1779
|
+
|
|
1780
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_define_mode?'>define_mode?</span>
|
|
1781
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_isDefineMode'>isDefineMode</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
1782
|
+
<span class='kw'>end</span></pre>
|
|
1783
|
+
</td>
|
|
1784
|
+
</tr>
|
|
1785
|
+
</table>
|
|
1786
|
+
</div>
|
|
1787
|
+
|
|
1788
|
+
<div class="method_details ">
|
|
1789
|
+
<h3 class="signature " id="delete_global_att-instance_method">
|
|
1790
|
+
|
|
1791
|
+
- (<tt>Object</tt>) <strong>delete_global_att</strong>(attribute_name)
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
</h3><div class="docstring">
|
|
1798
|
+
<div class="discussion">
|
|
1799
|
+
<hr>
|
|
1800
|
+
|
|
1801
|
+
<p>Deletes a global attribute</p>
|
|
1802
|
+
<hr>
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
</div>
|
|
1806
|
+
</div>
|
|
1807
|
+
<div class="tags">
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
</div><table class="source_code">
|
|
1811
|
+
<tr>
|
|
1812
|
+
<td>
|
|
1813
|
+
<pre class="lines">
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
249
|
|
1817
|
+
250
|
|
1818
|
+
251</pre>
|
|
1819
|
+
</td>
|
|
1820
|
+
<td>
|
|
1821
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 249</span>
|
|
1822
|
+
|
|
1823
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete_global_att'>delete_global_att</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='rparen'>)</span>
|
|
1824
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_deleteGroupAttribute'>deleteGroupAttribute</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='rparen'>)</span>
|
|
1825
|
+
<span class='kw'>end</span></pre>
|
|
1826
|
+
</td>
|
|
1827
|
+
</tr>
|
|
1828
|
+
</table>
|
|
1829
|
+
</div>
|
|
1830
|
+
|
|
1831
|
+
<div class="method_details ">
|
|
1832
|
+
<h3 class="signature " id="delete_variable_att-instance_method">
|
|
1833
|
+
|
|
1834
|
+
- (<tt>Object</tt>) <strong>delete_variable_att</strong>(variable, att_name)
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
</h3><div class="docstring">
|
|
1841
|
+
<div class="discussion">
|
|
1842
|
+
<hr>
|
|
1843
|
+
|
|
1844
|
+
<p>Deletes a variable attribute</p>
|
|
1845
|
+
<hr>
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
</div>
|
|
1849
|
+
</div>
|
|
1850
|
+
<div class="tags">
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
</div><table class="source_code">
|
|
1854
|
+
<tr>
|
|
1855
|
+
<td>
|
|
1856
|
+
<pre class="lines">
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
283
|
|
1860
|
+
284
|
|
1861
|
+
285</pre>
|
|
1862
|
+
</td>
|
|
1863
|
+
<td>
|
|
1864
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 283</span>
|
|
1865
|
+
|
|
1866
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete_variable_att'>delete_variable_att</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='rparen'>)</span>
|
|
1867
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_deleteVariableAttribute'>deleteVariableAttribute</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='rparen'>)</span>
|
|
1868
|
+
<span class='kw'>end</span></pre>
|
|
1869
|
+
</td>
|
|
1870
|
+
</tr>
|
|
1871
|
+
</table>
|
|
1872
|
+
</div>
|
|
1873
|
+
|
|
1874
|
+
<div class="method_details ">
|
|
1875
|
+
<h3 class="signature " id="dimension-instance_method">
|
|
1876
|
+
|
|
1877
|
+
- (<tt>Object</tt>) <strong>dimension</strong>(name, size, is_shared = true)
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
</h3><div class="docstring">
|
|
1884
|
+
<div class="discussion">
|
|
1885
|
+
<hr>
|
|
1886
|
+
|
|
1887
|
+
<p>Adds a new dimension.</p>
|
|
1888
|
+
<hr>
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
</div>
|
|
1892
|
+
</div>
|
|
1893
|
+
<div class="tags">
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
</div><table class="source_code">
|
|
1897
|
+
<tr>
|
|
1898
|
+
<td>
|
|
1899
|
+
<pre class="lines">
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
172
|
|
1903
|
+
173
|
|
1904
|
+
174
|
|
1905
|
+
175</pre>
|
|
1906
|
+
</td>
|
|
1907
|
+
<td>
|
|
1908
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 172</span>
|
|
1909
|
+
|
|
1910
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_dimension'>dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_is_shared'>is_shared</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1911
|
+
<span class='id identifier rubyid_symbol'>symbol</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>dim_</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
1912
|
+
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_add_dimension'>add_dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_is_shared'>is_shared</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
1913
|
+
<span class='kw'>end</span></pre>
|
|
1914
|
+
</td>
|
|
1915
|
+
</tr>
|
|
1916
|
+
</table>
|
|
1917
|
+
</div>
|
|
1918
|
+
|
|
1919
|
+
<div class="method_details ">
|
|
1920
|
+
<h3 class="signature " id="fill=-instance_method">
|
|
1921
|
+
|
|
1922
|
+
- (<tt>Object</tt>) <strong>fill=</strong>(bool)
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
</h3><div class="docstring">
|
|
1929
|
+
<div class="discussion">
|
|
1930
|
+
<hr>
|
|
1931
|
+
|
|
1932
|
+
<p>Set the fill flag. If fill flag is set then variable data is filled with
|
|
1933
|
+
fill value</p>
|
|
1934
|
+
<hr>
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
</div>
|
|
1938
|
+
</div>
|
|
1939
|
+
<div class="tags">
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
</div><table class="source_code">
|
|
1943
|
+
<tr>
|
|
1944
|
+
<td>
|
|
1945
|
+
<pre class="lines">
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
349
|
|
1949
|
+
350
|
|
1950
|
+
351</pre>
|
|
1951
|
+
</td>
|
|
1952
|
+
<td>
|
|
1953
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 349</span>
|
|
1954
|
+
|
|
1955
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fill='>fill=</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
1956
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_setFill'>setFill</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
1957
|
+
<span class='kw'>end</span></pre>
|
|
1958
|
+
</td>
|
|
1959
|
+
</tr>
|
|
1960
|
+
</table>
|
|
1961
|
+
</div>
|
|
1962
|
+
|
|
1963
|
+
<div class="method_details ">
|
|
1964
|
+
<h3 class="signature " id="find_global_attribute-instance_method">
|
|
1965
|
+
|
|
1966
|
+
- (<tt>Object</tt>) <strong>find_global_attribute</strong>(name, ignore_case = false)
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
</h3><div class="docstring">
|
|
1973
|
+
<div class="discussion">
|
|
1974
|
+
<hr>
|
|
1975
|
+
<hr>
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
</div>
|
|
1979
|
+
</div>
|
|
1980
|
+
<div class="tags">
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
</div><table class="source_code">
|
|
1984
|
+
<tr>
|
|
1985
|
+
<td>
|
|
1986
|
+
<pre class="lines">
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
124
|
|
1990
|
+
125
|
|
1991
|
+
126
|
|
1992
|
+
127
|
|
1993
|
+
128
|
|
1994
|
+
129
|
|
1995
|
+
130
|
|
1996
|
+
131
|
|
1997
|
+
132
|
|
1998
|
+
133
|
|
1999
|
+
134
|
|
2000
|
+
135
|
|
2001
|
+
136
|
|
2002
|
+
137
|
|
2003
|
+
138</pre>
|
|
2004
|
+
</td>
|
|
2005
|
+
<td>
|
|
2006
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 124</span>
|
|
2007
|
+
|
|
2008
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find_global_attribute'>find_global_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_ignore_case'>ignore_case</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
|
2009
|
+
|
|
2010
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_ignore_case'>ignore_case</span><span class='rparen'>)</span>
|
|
2011
|
+
<span class='id identifier rubyid_att'>att</span> <span class='op'>=</span> <span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_findAttributeIgnoreCase'>findAttributeIgnoreCase</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
2012
|
+
<span class='kw'>else</span>
|
|
2013
|
+
<span class='id identifier rubyid_att'>att</span> <span class='op'>=</span> <span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_findAttribute'>findAttribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
2014
|
+
<span class='kw'>end</span>
|
|
2015
|
+
|
|
2016
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_att'>att</span> <span class='op'>!=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2017
|
+
<span class='kw'>return</span> <span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>AttributeWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_att'>att</span><span class='rparen'>)</span>
|
|
2018
|
+
<span class='kw'>end</span>
|
|
2019
|
+
|
|
2020
|
+
<span class='kw'>nil</span>
|
|
2021
|
+
|
|
2022
|
+
<span class='kw'>end</span></pre>
|
|
2023
|
+
</td>
|
|
2024
|
+
</tr>
|
|
2025
|
+
</table>
|
|
2026
|
+
</div>
|
|
2027
|
+
|
|
2028
|
+
<div class="method_details ">
|
|
2029
|
+
<h3 class="signature " id="find_variable-instance_method">
|
|
2030
|
+
|
|
2031
|
+
- (<tt>Object</tt>) <strong>find_variable</strong>(name)
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
</h3><div class="docstring">
|
|
2038
|
+
<div class="discussion">
|
|
2039
|
+
<hr>
|
|
2040
|
+
|
|
2041
|
+
<p>Finds a variable in the file</p>
|
|
2042
|
+
<hr>
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
</div>
|
|
2046
|
+
</div>
|
|
2047
|
+
<div class="tags">
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
</div><table class="source_code">
|
|
2051
|
+
<tr>
|
|
2052
|
+
<td>
|
|
2053
|
+
<pre class="lines">
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
220
|
|
2057
|
+
221
|
|
2058
|
+
222
|
|
2059
|
+
223</pre>
|
|
2060
|
+
</td>
|
|
2061
|
+
<td>
|
|
2062
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 220</span>
|
|
2063
|
+
|
|
2064
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find_variable'>find_variable</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
2065
|
+
<span class='id identifier rubyid_var'>var</span> <span class='op'>=</span> <span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_findVariable'>findVariable</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
2066
|
+
<span class='id identifier rubyid_var'>var</span> <span class='op'>?</span> <span class='const'>NetCDF</span><span class='op'>::</span><span class='const'>VariableWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_var'>var</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
|
2067
|
+
<span class='kw'>end</span></pre>
|
|
2068
|
+
</td>
|
|
2069
|
+
</tr>
|
|
2070
|
+
</table>
|
|
2071
|
+
</div>
|
|
2072
|
+
|
|
2073
|
+
<div class="method_details ">
|
|
2074
|
+
<h3 class="signature " id="flush-instance_method">
|
|
2075
|
+
|
|
2076
|
+
- (<tt>Object</tt>) <strong>flush</strong>
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
</h3><div class="docstring">
|
|
2083
|
+
<div class="discussion">
|
|
2084
|
+
<hr>
|
|
2085
|
+
|
|
2086
|
+
<p>Flush anything written to disk</p>
|
|
2087
|
+
<hr>
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
</div>
|
|
2091
|
+
</div>
|
|
2092
|
+
<div class="tags">
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
</div><table class="source_code">
|
|
2096
|
+
<tr>
|
|
2097
|
+
<td>
|
|
2098
|
+
<pre class="lines">
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
332
|
|
2102
|
+
333
|
|
2103
|
+
334</pre>
|
|
2104
|
+
</td>
|
|
2105
|
+
<td>
|
|
2106
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 332</span>
|
|
2107
|
+
|
|
2108
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
|
|
2109
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_flush'>flush</span>
|
|
2110
|
+
<span class='kw'>end</span></pre>
|
|
2111
|
+
</td>
|
|
2112
|
+
</tr>
|
|
2113
|
+
</table>
|
|
2114
|
+
</div>
|
|
2115
|
+
|
|
2116
|
+
<div class="method_details ">
|
|
2117
|
+
<h3 class="signature " id="get_file_type_description-instance_method">
|
|
2118
|
+
|
|
2119
|
+
- (<tt>Object</tt>) <strong>get_file_type_description</strong>
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
</h3><div class="docstring">
|
|
2126
|
+
<div class="discussion">
|
|
2127
|
+
<hr>
|
|
2128
|
+
|
|
2129
|
+
<p>Get a human-readable description for this file type.</p>
|
|
2130
|
+
<hr>
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
</div>
|
|
2134
|
+
</div>
|
|
2135
|
+
<div class="tags">
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
</div><table class="source_code">
|
|
2139
|
+
<tr>
|
|
2140
|
+
<td>
|
|
2141
|
+
<pre class="lines">
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
357
|
|
2145
|
+
358
|
|
2146
|
+
359</pre>
|
|
2147
|
+
</td>
|
|
2148
|
+
<td>
|
|
2149
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 357</span>
|
|
2150
|
+
|
|
2151
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_file_type_description'>get_file_type_description</span>
|
|
2152
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_getFileTypeDescription'>getFileTypeDescription</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
2153
|
+
<span class='kw'>end</span></pre>
|
|
2154
|
+
</td>
|
|
2155
|
+
</tr>
|
|
2156
|
+
</table>
|
|
2157
|
+
</div>
|
|
2158
|
+
|
|
2159
|
+
<div class="method_details ">
|
|
2160
|
+
<h3 class="signature " id="global_att-instance_method">
|
|
2161
|
+
|
|
2162
|
+
- (<tt>Object</tt>) <strong>global_att</strong>(name, value, type = "int")
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
</h3><div class="docstring">
|
|
2169
|
+
<div class="discussion">
|
|
2170
|
+
<hr>
|
|
2171
|
+
|
|
2172
|
+
<p>Adds new global attribute. A global attribute is a attribute added to the
|
|
2173
|
+
root group. In NetCDF 3 there is only the root group.</p>
|
|
2174
|
+
<hr>
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
</div>
|
|
2178
|
+
</div>
|
|
2179
|
+
<div class="tags">
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
</div><table class="source_code">
|
|
2183
|
+
<tr>
|
|
2184
|
+
<td>
|
|
2185
|
+
<pre class="lines">
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
114
|
|
2189
|
+
115
|
|
2190
|
+
116
|
|
2191
|
+
117
|
|
2192
|
+
118</pre>
|
|
2193
|
+
</td>
|
|
2194
|
+
<td>
|
|
2195
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 114</span>
|
|
2196
|
+
|
|
2197
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_global_att'>global_att</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>int</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
2198
|
+
<span class='id identifier rubyid_symbol'>symbol</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ga_</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
2199
|
+
<span class='id identifier rubyid_att'>att</span> <span class='op'>=</span> <span class='id identifier rubyid_add_global_att'>add_global_att</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
2200
|
+
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_att'>att</span><span class='rparen'>)</span>
|
|
2201
|
+
<span class='kw'>end</span></pre>
|
|
2202
|
+
</td>
|
|
2203
|
+
</tr>
|
|
2204
|
+
</table>
|
|
2205
|
+
</div>
|
|
2206
|
+
|
|
2207
|
+
<div class="method_details ">
|
|
2208
|
+
<h3 class="signature " id="large_file=-instance_method">
|
|
2209
|
+
|
|
2210
|
+
- (<tt>Object</tt>) <strong>large_file=</strong>(bool)
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
</h3><div class="docstring">
|
|
2217
|
+
<div class="discussion">
|
|
2218
|
+
<hr>
|
|
2219
|
+
|
|
2220
|
+
<p>Set if this should be a "large file" (64-bit offset) format.</p>
|
|
2221
|
+
<hr>
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
</div>
|
|
2225
|
+
</div>
|
|
2226
|
+
<div class="tags">
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
</div><table class="source_code">
|
|
2230
|
+
<tr>
|
|
2231
|
+
<td>
|
|
2232
|
+
<pre class="lines">
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
324
|
|
2236
|
+
325
|
|
2237
|
+
326</pre>
|
|
2238
|
+
</td>
|
|
2239
|
+
<td>
|
|
2240
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 324</span>
|
|
2241
|
+
|
|
2242
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_large_file='>large_file=</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
2243
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_setLargeFile'>setLargeFile</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
2244
|
+
<span class='kw'>end</span></pre>
|
|
2245
|
+
</td>
|
|
2246
|
+
</tr>
|
|
2247
|
+
</table>
|
|
2248
|
+
</div>
|
|
2249
|
+
|
|
2250
|
+
<div class="method_details ">
|
|
2251
|
+
<h3 class="signature " id="open-instance_method">
|
|
2252
|
+
|
|
2253
|
+
- (<tt>Object</tt>) <strong>open</strong>
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
</h3><div class="docstring">
|
|
2260
|
+
<div class="discussion">
|
|
2261
|
+
<hr>
|
|
2262
|
+
|
|
2263
|
+
<p>Opens a netCDF file.</p>
|
|
2264
|
+
<ul><li>
|
|
2265
|
+
<p>TODO: Check the case when reading should be shared</p>
|
|
2266
|
+
</li><li>
|
|
2267
|
+
<p><code>fill</code> If true, or anything but false, the data is first written
|
|
2268
|
+
with fill</p>
|
|
2269
|
+
</li></ul>
|
|
2270
|
+
|
|
2271
|
+
<p>values. Default is fill = false. Leave false if you expect to write all
|
|
2272
|
+
data values, set to true if you want to be sure that unwritten data values
|
|
2273
|
+
have the fill value in it.</p>
|
|
2274
|
+
<hr>
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
</div>
|
|
2278
|
+
</div>
|
|
2279
|
+
<div class="tags">
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
</div><table class="source_code">
|
|
2283
|
+
<tr>
|
|
2284
|
+
<td>
|
|
2285
|
+
<pre class="lines">
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
59
|
|
2289
|
+
60
|
|
2290
|
+
61
|
|
2291
|
+
62
|
|
2292
|
+
63
|
|
2293
|
+
64
|
|
2294
|
+
65
|
|
2295
|
+
66
|
|
2296
|
+
67
|
|
2297
|
+
68
|
|
2298
|
+
69
|
|
2299
|
+
70
|
|
2300
|
+
71
|
|
2301
|
+
72
|
|
2302
|
+
73</pre>
|
|
2303
|
+
</td>
|
|
2304
|
+
<td>
|
|
2305
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 59</span>
|
|
2306
|
+
|
|
2307
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span>
|
|
2308
|
+
|
|
2309
|
+
<span class='kw'>begin</span>
|
|
2310
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@version</span><span class='rparen'>)</span>
|
|
2311
|
+
<span class='ivar'>@netcdf_elmt</span> <span class='op'>=</span> <span class='const'>NetcdfFileWriter</span><span class='period'>.</span><span class='id identifier rubyid_createNew'>createNew</span><span class='lparen'>(</span><span class='ivar'>@version</span><span class='comma'>,</span> <span class='ivar'>@file_name</span><span class='rparen'>)</span>
|
|
2312
|
+
<span class='id identifier rubyid_add_root_group'>add_root_group</span>
|
|
2313
|
+
<span class='kw'>else</span>
|
|
2314
|
+
<span class='ivar'>@netcdf_elmt</span> <span class='op'>=</span> <span class='const'>NetcdfFileWriter</span><span class='period'>.</span><span class='id identifier rubyid_openExisting'>openExisting</span><span class='lparen'>(</span><span class='ivar'>@file_name</span><span class='rparen'>)</span>
|
|
2315
|
+
<span class='kw'>end</span>
|
|
2316
|
+
<span class='kw'>rescue</span> <span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='const'>IOException</span> <span class='op'>=></span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
2317
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Cannot open file: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@file_name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
2318
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
2319
|
+
<span class='kw'>end</span>
|
|
2320
|
+
|
|
2321
|
+
<span class='kw'>end</span></pre>
|
|
2322
|
+
</td>
|
|
2323
|
+
</tr>
|
|
2324
|
+
</table>
|
|
2325
|
+
</div>
|
|
2326
|
+
|
|
2327
|
+
<div class="method_details ">
|
|
2328
|
+
<h3 class="signature " id="redefine=-instance_method">
|
|
2329
|
+
|
|
2330
|
+
- (<tt>Object</tt>) <strong>redefine=</strong>(bool)
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
</h3><div class="docstring">
|
|
2337
|
+
<div class="discussion">
|
|
2338
|
+
<hr>
|
|
2339
|
+
|
|
2340
|
+
<p>Switches redefine mode. if true allows data to be redefined, if false,
|
|
2341
|
+
redefine mode is closed. <code>Returns</code> true if it had to rewrite the
|
|
2342
|
+
entire file, false if it wrote the header in place</p>
|
|
2343
|
+
<hr>
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
</div>
|
|
2347
|
+
</div>
|
|
2348
|
+
<div class="tags">
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
</div><table class="source_code">
|
|
2352
|
+
<tr>
|
|
2353
|
+
<td>
|
|
2354
|
+
<pre class="lines">
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
368
|
|
2358
|
+
369
|
|
2359
|
+
370
|
|
2360
|
+
371
|
|
2361
|
+
372
|
|
2362
|
+
373
|
|
2363
|
+
374
|
|
2364
|
+
375
|
|
2365
|
+
376
|
|
2366
|
+
377</pre>
|
|
2367
|
+
</td>
|
|
2368
|
+
<td>
|
|
2369
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 368</span>
|
|
2370
|
+
|
|
2371
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_redefine='>redefine=</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
2372
|
+
|
|
2373
|
+
<span class='kw'>begin</span>
|
|
2374
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_setRedefineMode'>setRedefineMode</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span>
|
|
2375
|
+
<span class='kw'>rescue</span> <span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='const'>IOException</span> <span class='op'>=></span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
2376
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Error accessing file: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@file_name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
2377
|
+
<span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_ioe'>ioe</span>
|
|
2378
|
+
<span class='kw'>end</span>
|
|
2379
|
+
|
|
2380
|
+
<span class='kw'>end</span></pre>
|
|
2381
|
+
</td>
|
|
2382
|
+
</tr>
|
|
2383
|
+
</table>
|
|
2384
|
+
</div>
|
|
2385
|
+
|
|
2386
|
+
<div class="method_details ">
|
|
2387
|
+
<h3 class="signature " id="rename_dimension-instance_method">
|
|
2388
|
+
|
|
2389
|
+
- (<tt>Object</tt>) <strong>rename_dimension</strong>(old_name, new_name)
|
|
2390
|
+
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
</h3><div class="docstring">
|
|
2396
|
+
<div class="discussion">
|
|
2397
|
+
<hr>
|
|
2398
|
+
|
|
2399
|
+
<p>Rename a Dimension.</p>
|
|
2400
|
+
<hr>
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
</div>
|
|
2404
|
+
</div>
|
|
2405
|
+
<div class="tags">
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
</div><table class="source_code">
|
|
2409
|
+
<tr>
|
|
2410
|
+
<td>
|
|
2411
|
+
<pre class="lines">
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
265
|
|
2415
|
+
266
|
|
2416
|
+
267</pre>
|
|
2417
|
+
</td>
|
|
2418
|
+
<td>
|
|
2419
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 265</span>
|
|
2420
|
+
|
|
2421
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rename_dimension'>rename_dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2422
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_renameDimension'>renameDimension</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2423
|
+
<span class='kw'>end</span></pre>
|
|
2424
|
+
</td>
|
|
2425
|
+
</tr>
|
|
2426
|
+
</table>
|
|
2427
|
+
</div>
|
|
2428
|
+
|
|
2429
|
+
<div class="method_details ">
|
|
2430
|
+
<h3 class="signature " id="rename_global_att-instance_method">
|
|
2431
|
+
|
|
2432
|
+
- (<tt>Object</tt>) <strong>rename_global_att</strong>(old_name, new_name)
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
</h3><div class="docstring">
|
|
2439
|
+
<div class="discussion">
|
|
2440
|
+
<hr>
|
|
2441
|
+
|
|
2442
|
+
<p>Rename a global Attribute. Does not seem to work on NetCDF-3 files.</p>
|
|
2443
|
+
<hr>
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
</div>
|
|
2447
|
+
</div>
|
|
2448
|
+
<div class="tags">
|
|
2449
|
+
|
|
2450
|
+
|
|
2451
|
+
</div><table class="source_code">
|
|
2452
|
+
<tr>
|
|
2453
|
+
<td>
|
|
2454
|
+
<pre class="lines">
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
257
|
|
2458
|
+
258
|
|
2459
|
+
259</pre>
|
|
2460
|
+
</td>
|
|
2461
|
+
<td>
|
|
2462
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 257</span>
|
|
2463
|
+
|
|
2464
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rename_global_att'>rename_global_att</span><span class='lparen'>(</span><span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2465
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_renameGlobalAttribute'>renameGlobalAttribute</span><span class='lparen'>(</span><span class='ivar'>@root_group</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2466
|
+
<span class='kw'>end</span></pre>
|
|
2467
|
+
</td>
|
|
2468
|
+
</tr>
|
|
2469
|
+
</table>
|
|
2470
|
+
</div>
|
|
2471
|
+
|
|
2472
|
+
<div class="method_details ">
|
|
2473
|
+
<h3 class="signature " id="rename_variable-instance_method">
|
|
2474
|
+
|
|
2475
|
+
- (<tt>Object</tt>) <strong>rename_variable</strong>(old_name, new_name)
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
</h3><div class="docstring">
|
|
2482
|
+
<div class="discussion">
|
|
2483
|
+
<hr>
|
|
2484
|
+
|
|
2485
|
+
<p>Rename a Variable.</p>
|
|
2486
|
+
<hr>
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
</div>
|
|
2490
|
+
</div>
|
|
2491
|
+
<div class="tags">
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
</div><table class="source_code">
|
|
2495
|
+
<tr>
|
|
2496
|
+
<td>
|
|
2497
|
+
<pre class="lines">
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
275
|
|
2501
|
+
276
|
|
2502
|
+
277</pre>
|
|
2503
|
+
</td>
|
|
2504
|
+
<td>
|
|
2505
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 275</span>
|
|
2506
|
+
|
|
2507
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rename_variable'>rename_variable</span><span class='lparen'>(</span><span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2508
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_renameVariable'>renameVariable</span><span class='lparen'>(</span><span class='id identifier rubyid_old_name'>old_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2509
|
+
<span class='kw'>end</span></pre>
|
|
2510
|
+
</td>
|
|
2511
|
+
</tr>
|
|
2512
|
+
</table>
|
|
2513
|
+
</div>
|
|
2514
|
+
|
|
2515
|
+
<div class="method_details ">
|
|
2516
|
+
<h3 class="signature " id="rename_variable_att-instance_method">
|
|
2517
|
+
|
|
2518
|
+
- (<tt>Object</tt>) <strong>rename_variable_att</strong>(variable, att_name, new_name)
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
</h3><div class="docstring">
|
|
2525
|
+
<div class="discussion">
|
|
2526
|
+
<hr>
|
|
2527
|
+
|
|
2528
|
+
<p>Renames a variable attribute</p>
|
|
2529
|
+
<hr>
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
</div>
|
|
2533
|
+
</div>
|
|
2534
|
+
<div class="tags">
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
</div><table class="source_code">
|
|
2538
|
+
<tr>
|
|
2539
|
+
<td>
|
|
2540
|
+
<pre class="lines">
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
291
|
|
2544
|
+
292
|
|
2545
|
+
293</pre>
|
|
2546
|
+
</td>
|
|
2547
|
+
<td>
|
|
2548
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 291</span>
|
|
2549
|
+
|
|
2550
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rename_variable_att'>rename_variable_att</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2551
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_renameVariableAttribute'>renameVariableAttribute</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='comma'>,</span> <span class='id identifier rubyid_new_name'>new_name</span><span class='rparen'>)</span>
|
|
2552
|
+
<span class='kw'>end</span></pre>
|
|
2553
|
+
</td>
|
|
2554
|
+
</tr>
|
|
2555
|
+
</table>
|
|
2556
|
+
</div>
|
|
2557
|
+
|
|
2558
|
+
<div class="method_details ">
|
|
2559
|
+
<h3 class="signature " id="variable-instance_method">
|
|
2560
|
+
|
|
2561
|
+
- (<tt>Object</tt>) <strong>variable</strong>(name, type, dims, *args)
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
</h3><div class="docstring">
|
|
2568
|
+
<div class="discussion">
|
|
2569
|
+
<hr>
|
|
2570
|
+
|
|
2571
|
+
<p>Adds new variable</p>
|
|
2572
|
+
<hr>
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
</div>
|
|
2576
|
+
</div>
|
|
2577
|
+
<div class="tags">
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
</div><table class="source_code">
|
|
2581
|
+
<tr>
|
|
2582
|
+
<td>
|
|
2583
|
+
<pre class="lines">
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
211
|
|
2587
|
+
212
|
|
2588
|
+
213
|
|
2589
|
+
214</pre>
|
|
2590
|
+
</td>
|
|
2591
|
+
<td>
|
|
2592
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 211</span>
|
|
2593
|
+
|
|
2594
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_variable'>variable</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_dims'>dims</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
2595
|
+
<span class='id identifier rubyid_symbol'>symbol</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>var_</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
2596
|
+
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_add_variable'>add_variable</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_dims'>dims</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
2597
|
+
<span class='kw'>end</span></pre>
|
|
2598
|
+
</td>
|
|
2599
|
+
</tr>
|
|
2600
|
+
</table>
|
|
2601
|
+
</div>
|
|
2602
|
+
|
|
2603
|
+
<div class="method_details ">
|
|
2604
|
+
<h3 class="signature " id="variable_att-instance_method">
|
|
2605
|
+
|
|
2606
|
+
- (<tt>Object</tt>) <strong>variable_att</strong>(variable, att_name, value)
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
</h3><div class="docstring">
|
|
2613
|
+
<div class="discussion">
|
|
2614
|
+
<hr>
|
|
2615
|
+
|
|
2616
|
+
<p>Adds new variable attribute</p>
|
|
2617
|
+
<hr>
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
</div>
|
|
2621
|
+
</div>
|
|
2622
|
+
<div class="tags">
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
</div><table class="source_code">
|
|
2626
|
+
<tr>
|
|
2627
|
+
<td>
|
|
2628
|
+
<pre class="lines">
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
239
|
|
2632
|
+
240
|
|
2633
|
+
241
|
|
2634
|
+
242
|
|
2635
|
+
243</pre>
|
|
2636
|
+
</td>
|
|
2637
|
+
<td>
|
|
2638
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 239</span>
|
|
2639
|
+
|
|
2640
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_variable_att'>variable_att</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
2641
|
+
<span class='id identifier rubyid_symbol'>symbol</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>va_</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
2642
|
+
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
2643
|
+
<span class='id identifier rubyid_add_variable_att'>add_variable_att</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_att_name'>att_name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
2644
|
+
<span class='kw'>end</span></pre>
|
|
2645
|
+
</td>
|
|
2646
|
+
</tr>
|
|
2647
|
+
</table>
|
|
2648
|
+
</div>
|
|
2649
|
+
|
|
2650
|
+
<div class="method_details ">
|
|
2651
|
+
<h3 class="signature " id="write-instance_method">
|
|
2652
|
+
|
|
2653
|
+
- (<tt>Object</tt>) <strong>write</strong>(variable, values, origin = nil)
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
</h3><div class="docstring">
|
|
2660
|
+
<div class="discussion">
|
|
2661
|
+
<hr>
|
|
2662
|
+
|
|
2663
|
+
<p>writes the given data with the given layout on variable at origin
|
|
2664
|
+
@nc_i.write(<variable>, <layout>, <origin>, <data>)
|
|
2665
|
+
if data is not given, then it is assumed to be all zeroes
|
|
2666
|
+
@nc_i.write(<variable>, <layout>, <origin>)
|
|
2667
|
+
<code>var_name</code> Name of the variable in which to write
|
|
2668
|
+
<code>type</code> type of the data. <code>layout</code> layout of the data
|
|
2669
|
+
represented by a rank array <code>origin</code> origin in the var in which
|
|
2670
|
+
to write the data. If origin = nil, then origin is <0>
|
|
2671
|
+
<code>data</code> data to write. If data = nil, then an all zeroes data is
|
|
2672
|
+
assumed.</p>
|
|
2673
|
+
<hr>
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
</div>
|
|
2677
|
+
</div>
|
|
2678
|
+
<div class="tags">
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
</div><table class="source_code">
|
|
2682
|
+
<tr>
|
|
2683
|
+
<td>
|
|
2684
|
+
<pre class="lines">
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
392
|
|
2688
|
+
393
|
|
2689
|
+
394
|
|
2690
|
+
395
|
|
2691
|
+
396
|
|
2692
|
+
397
|
|
2693
|
+
398
|
|
2694
|
+
399
|
|
2695
|
+
400
|
|
2696
|
+
401
|
|
2697
|
+
402
|
|
2698
|
+
403
|
|
2699
|
+
404
|
|
2700
|
+
405
|
|
2701
|
+
406
|
|
2702
|
+
407
|
|
2703
|
+
408
|
|
2704
|
+
409</pre>
|
|
2705
|
+
</td>
|
|
2706
|
+
<td>
|
|
2707
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 392</span>
|
|
2708
|
+
|
|
2709
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2710
|
+
|
|
2711
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Numeric</span><span class='rparen'>)</span>
|
|
2712
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_scalar?'>scalar?</span><span class='rparen'>)</span>
|
|
2713
|
+
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_get_data_type'>get_data_type</span>
|
|
2714
|
+
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
2715
|
+
<span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_set_scalar'>set_scalar</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
|
2716
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2717
|
+
<span class='kw'>else</span>
|
|
2718
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Variable </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> is not a scalar variable</span><span class='tstring_end'>"</span></span>
|
|
2719
|
+
<span class='kw'>end</span>
|
|
2720
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='rparen'>)</span>
|
|
2721
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2722
|
+
<span class='kw'>else</span>
|
|
2723
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2724
|
+
<span class='kw'>end</span>
|
|
2725
|
+
|
|
2726
|
+
<span class='kw'>end</span></pre>
|
|
2727
|
+
</td>
|
|
2728
|
+
</tr>
|
|
2729
|
+
</table>
|
|
2730
|
+
</div>
|
|
2731
|
+
|
|
2732
|
+
<div class="method_details ">
|
|
2733
|
+
<h3 class="signature " id="write_string-instance_method">
|
|
2734
|
+
|
|
2735
|
+
- (<tt>Object</tt>) <strong>write_string</strong>(variable, values, origin = nil)
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
</h3><div class="docstring">
|
|
2742
|
+
<div class="discussion">
|
|
2743
|
+
<hr>
|
|
2744
|
+
|
|
2745
|
+
<p>writes a string data to the variable at origin if data is not given, then
|
|
2746
|
+
it is assumed to be all zeroes <code>var_name</code> Name of the variable
|
|
2747
|
+
in which to write <code>type</code> type of the data. <code>layout</code>
|
|
2748
|
+
layout of the data represented by a rank array <code>origin</code> origin
|
|
2749
|
+
in the var in which to write the data. If origin = nil, then origin is
|
|
2750
|
+
<0> <code>data</code> data to write. If data = nil, then an all
|
|
2751
|
+
zeroes data is assumed.</p>
|
|
2752
|
+
<hr>
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
</div>
|
|
2756
|
+
</div>
|
|
2757
|
+
<div class="tags">
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
</div><table class="source_code">
|
|
2761
|
+
<tr>
|
|
2762
|
+
<td>
|
|
2763
|
+
<pre class="lines">
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
422
|
|
2767
|
+
423
|
|
2768
|
+
424
|
|
2769
|
+
425
|
|
2770
|
+
426
|
|
2771
|
+
427
|
|
2772
|
+
428
|
|
2773
|
+
429
|
|
2774
|
+
430
|
|
2775
|
+
431
|
|
2776
|
+
432
|
|
2777
|
+
433
|
|
2778
|
+
434
|
|
2779
|
+
435
|
|
2780
|
+
436</pre>
|
|
2781
|
+
</td>
|
|
2782
|
+
<td>
|
|
2783
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 422</span>
|
|
2784
|
+
|
|
2785
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_write_string'>write_string</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2786
|
+
|
|
2787
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span><span class='rparen'>)</span>
|
|
2788
|
+
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_values'>values</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
2789
|
+
<span class='kw'>return</span> <span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_writeStringData'>writeStringData</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2790
|
+
<span class='kw'>end</span>
|
|
2791
|
+
|
|
2792
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='rparen'>)</span>
|
|
2793
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_writeStringData'>writeStringData</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
2794
|
+
<span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2795
|
+
<span class='kw'>else</span>
|
|
2796
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_writeStringData'>writeStringData</span><span class='lparen'>(</span><span class='id identifier rubyid_variable'>variable</span><span class='period'>.</span><span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='rparen'>)</span>
|
|
2797
|
+
<span class='kw'>end</span>
|
|
2798
|
+
|
|
2799
|
+
<span class='kw'>end</span></pre>
|
|
2800
|
+
</td>
|
|
2801
|
+
</tr>
|
|
2802
|
+
</table>
|
|
2803
|
+
</div>
|
|
2804
|
+
|
|
2805
|
+
<div class="method_details ">
|
|
2806
|
+
<h3 class="signature " id="write_time-instance_method">
|
|
2807
|
+
|
|
2808
|
+
- (<tt>Object</tt>) <strong>write_time</strong>(var_name, layout, data, origin = nil)
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
</h3><div class="docstring">
|
|
2815
|
+
<div class="discussion">
|
|
2816
|
+
<hr>
|
|
2817
|
+
<hr>
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
</div>
|
|
2821
|
+
</div>
|
|
2822
|
+
<div class="tags">
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
</div><table class="source_code">
|
|
2826
|
+
<tr>
|
|
2827
|
+
<td>
|
|
2828
|
+
<pre class="lines">
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
442
|
|
2832
|
+
443
|
|
2833
|
+
444
|
|
2834
|
+
445
|
|
2835
|
+
446
|
|
2836
|
+
447
|
|
2837
|
+
448
|
|
2838
|
+
449
|
|
2839
|
+
450
|
|
2840
|
+
451
|
|
2841
|
+
452
|
|
2842
|
+
453</pre>
|
|
2843
|
+
</td>
|
|
2844
|
+
<td>
|
|
2845
|
+
<pre class="code"><span class="info file"># File 'lib/netcdf/file_writer.rb', line 442</span>
|
|
2846
|
+
|
|
2847
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_write_time'>write_time</span><span class='lparen'>(</span><span class='id identifier rubyid_var_name'>var_name</span><span class='comma'>,</span> <span class='id identifier rubyid_layout'>layout</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2848
|
+
|
|
2849
|
+
<span class='id identifier rubyid_var'>var</span> <span class='op'>=</span> <span class='id identifier rubyid_find_variable'>find_variable</span><span class='lparen'>(</span><span class='id identifier rubyid_var_name'>var_name</span><span class='rparen'>)</span>
|
|
2850
|
+
|
|
2851
|
+
<span class='id identifier rubyid_write_data'>write_data</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
2852
|
+
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_iso_date'>iso_date</span><span class='op'>|</span>
|
|
2853
|
+
<span class='id identifier rubyid_write_data'>write_data</span> <span class='op'><<</span> <span class='id identifier rubyid_var'>var</span><span class='period'>.</span><span class='id identifier rubyid_to_msec'>to_msec</span><span class='lparen'>(</span><span class='id identifier rubyid_iso_date'>iso_date</span><span class='rparen'>)</span>
|
|
2854
|
+
<span class='kw'>end</span>
|
|
2855
|
+
|
|
2856
|
+
<span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_var_name'>var_name</span><span class='comma'>,</span> <span class='id identifier rubyid_layout'>layout</span><span class='comma'>,</span> <span class='id identifier rubyid_write_data'>write_data</span><span class='comma'>,</span> <span class='id identifier rubyid_origin'>origin</span><span class='rparen'>)</span>
|
|
2857
|
+
|
|
2858
|
+
<span class='kw'>end</span></pre>
|
|
2859
|
+
</td>
|
|
2860
|
+
</tr>
|
|
2861
|
+
</table>
|
|
2862
|
+
</div>
|
|
2863
|
+
|
|
2864
|
+
</div>
|
|
2865
|
+
|
|
2866
|
+
</div>
|
|
2867
|
+
|
|
2868
|
+
<div id="footer">
|
|
2869
|
+
Generated on Tue Jul 14 18:09:13 2015 by
|
|
2870
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2871
|
+
0.8.7.6 (ruby-1.9.3).
|
|
2872
|
+
</div>
|
|
2873
|
+
|
|
2874
|
+
</body>
|
|
2875
|
+
</html>
|