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