gphys 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/ChangeLog +7414 -0
  3. data/LICENSE.txt +1 -1
  4. data/Rakefile +0 -2
  5. data/doc/derivative/math-doc/document/images.log +385 -0
  6. data/doc/ep_flux/math-doc/document/images.log +1375 -0
  7. data/doc/ganalysis/doc/NumRu.html +203 -0
  8. data/doc/ganalysis/doc/NumRu/GAnalysis.html +931 -0
  9. data/doc/ganalysis/doc/NumRu/GAnalysis/BetaPlane.html +574 -0
  10. data/doc/ganalysis/doc/NumRu/GAnalysis/Fitting.html +576 -0
  11. data/doc/ganalysis/doc/NumRu/GAnalysis/LogP.html +425 -0
  12. data/doc/ganalysis/doc/NumRu/GAnalysis/Met.html +2021 -0
  13. data/doc/ganalysis/doc/NumRu/GAnalysis/MetZ.html +524 -0
  14. data/doc/ganalysis/doc/NumRu/GAnalysis/Planet.html +1047 -0
  15. data/doc/ganalysis/doc/NumRu/GAnalysis/QG.html +794 -0
  16. data/doc/ganalysis/doc/NumRu/GAnalysis/QG/Uninitialized.html +215 -0
  17. data/doc/ganalysis/doc/NumRu/GAnalysis/QG_common.html +603 -0
  18. data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere.html +760 -0
  19. data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere_common.html +251 -0
  20. data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere_div.html +424 -0
  21. data/doc/ganalysis/doc/NumRu/GAnalysis/SigmaCoord.html +321 -0
  22. data/doc/ganalysis/doc/NumRu/GGraph.html +334 -0
  23. data/doc/ganalysis/doc/NumRu/GPhys.html +579 -0
  24. data/doc/ganalysis/doc/Object.html +210 -0
  25. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/beta_plane_rb.html +60 -0
  26. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/covariance_rb.html +56 -0
  27. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/eof_rb.html +64 -0
  28. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/fitting_rb.html +54 -0
  29. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/histogram_rb.html +58 -0
  30. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/log_p_rb.html +60 -0
  31. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/met_rb.html +60 -0
  32. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/met_z_rb.html +58 -0
  33. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/planet_rb.html +58 -0
  34. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/qg_rb.html +64 -0
  35. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/sigma_coord_rb.html +56 -0
  36. data/doc/ganalysis/doc/__/__/lib/numru/ganalysis_rb.html +98 -0
  37. data/doc/ganalysis/doc/created.rid +13 -0
  38. data/doc/ganalysis/doc/images/brick.png +0 -0
  39. data/doc/ganalysis/doc/images/brick_link.png +0 -0
  40. data/doc/ganalysis/doc/images/bug.png +0 -0
  41. data/doc/ganalysis/doc/images/bullet_black.png +0 -0
  42. data/doc/ganalysis/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/ganalysis/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/ganalysis/doc/images/date.png +0 -0
  45. data/doc/ganalysis/doc/images/find.png +0 -0
  46. data/doc/ganalysis/doc/images/loadingAnimation.gif +0 -0
  47. data/doc/ganalysis/doc/images/macFFBgHack.png +0 -0
  48. data/doc/ganalysis/doc/images/package.png +0 -0
  49. data/doc/ganalysis/doc/images/page_green.png +0 -0
  50. data/doc/ganalysis/doc/images/page_white_text.png +0 -0
  51. data/doc/ganalysis/doc/images/page_white_width.png +0 -0
  52. data/doc/ganalysis/doc/images/plugin.png +0 -0
  53. data/doc/ganalysis/doc/images/ruby.png +0 -0
  54. data/doc/ganalysis/doc/images/tag_green.png +0 -0
  55. data/doc/ganalysis/doc/images/wrench.png +0 -0
  56. data/doc/ganalysis/doc/images/wrench_orange.png +0 -0
  57. data/doc/ganalysis/doc/images/zoom.png +0 -0
  58. data/doc/ganalysis/doc/index.html +383 -0
  59. data/doc/ganalysis/doc/js/darkfish.js +118 -0
  60. data/doc/ganalysis/doc/js/jquery.js +32 -0
  61. data/doc/ganalysis/doc/js/quicksearch.js +114 -0
  62. data/doc/ganalysis/doc/js/thickbox-compressed.js +10 -0
  63. data/doc/ganalysis/doc/rdoc.css +763 -0
  64. data/ext/numru/gphys/ext_init.c +1 -0
  65. data/ext/numru/gphys/quad_mesh_sample.c +478 -0
  66. data/gphys.gemspec +2 -2
  67. data/lib/numru/dclext.rb +394 -14
  68. data/lib/numru/derivative.rb +6 -0
  69. data/lib/numru/ganalysis/qg.rb +6 -4
  70. data/lib/numru/ggraph.rb +41 -8
  71. data/lib/numru/gphys/gphys.rb +62 -14
  72. data/lib/numru/gphys/gphys_io.rb +4 -4
  73. data/lib/numru/gphys/version.rb +2 -2
  74. metadata +84 -79
  75. data/.gitignore +0 -14
  76. data/TODO_ep_flux +0 -6
  77. data/gphys-bigmem.gemspec +0 -44
  78. data/install.rb +0 -130
  79. data/sample/cira86_to_nc.rb +0 -122
  80. data/sample/druby_cli1.rb +0 -23
  81. data/sample/druby_cli2.rb +0 -28
  82. data/sample/druby_serv1.rb +0 -30
  83. data/sample/druby_serv2.rb +0 -51
  84. data/sample/ep_flux/demo_NCEP_1.rb +0 -48
  85. data/sample/ep_flux/demo_NCEP_2.rb +0 -57
  86. data/sample/ep_flux/demo_NCEP_3.rb +0 -81
  87. data/sample/ggraph_latlon_labelling_dr002690.rb +0 -159
  88. data/sample/ggraph_mapfit-axes_dr002687.rb +0 -131
  89. data/sample/map_projection.rb +0 -121
  90. data/sample/ncep_theta_coord.rb +0 -79
  91. data/test_old/eof_slp.rb +0 -28
  92. data/test_old/mltbit.dat +0 -0
  93. data/test_old/test_ep_flux.rb +0 -533
  94. data/test_old/test_multibitIO.rb +0 -19
@@ -0,0 +1,321 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: NumRu::GAnalysis::SigmaCoord</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../../index.html">Home</a>
25
+ <a href="../../index.html#classes">Classes</a>
26
+ <a href="../../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../../__/__/lib/numru/ganalysis/sigma_coord_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="../../lib/numru/ganalysis/sigma_coord.rb">../../lib/numru/ganalysis/sigma_coord.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ <!-- Method Quickref -->
56
+ <div id="method-list-section" class="section">
57
+ <h3 class="section-header">Methods</h3>
58
+ <ul class="link-list">
59
+
60
+ <li><a href="#method-i-find_sigma_d">#find_sigma_d</a></li>
61
+
62
+ <li><a href="#method-i-sig_ps2p">#sig_ps2p</a></li>
63
+
64
+ </ul>
65
+ </div>
66
+
67
+
68
+
69
+ </div>
70
+
71
+ <div id="project-metadata">
72
+
73
+
74
+
75
+ <div id="classindex-section" class="section project-section">
76
+ <h3 class="section-header">Class/Module Index
77
+ <span class="search-toggle"><img src="../../images/find.png"
78
+ height="16" width="16" alt="[+]"
79
+ title="show/hide quicksearch" /></span></h3>
80
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
81
+ <fieldset>
82
+ <legend>Quicksearch</legend>
83
+ <input type="text" name="quicksearch" value=""
84
+ class="quicksearch-field" />
85
+ </fieldset>
86
+ </form>
87
+
88
+ <ul class="link-list">
89
+
90
+ <li><a href="../../NumRu.html">NumRu</a></li>
91
+
92
+ <li><a href="../../NumRu/GAnalysis.html">NumRu::GAnalysis</a></li>
93
+
94
+ <li><a href="../../NumRu/GAnalysis/BetaPlane.html">NumRu::GAnalysis::BetaPlane</a></li>
95
+
96
+ <li><a href="../../NumRu/GAnalysis/Fitting.html">NumRu::GAnalysis::Fitting</a></li>
97
+
98
+ <li><a href="../../NumRu/GAnalysis/LogP.html">NumRu::GAnalysis::LogP</a></li>
99
+
100
+ <li><a href="../../NumRu/GAnalysis/Met.html">NumRu::GAnalysis::Met</a></li>
101
+
102
+ <li><a href="../../NumRu/GAnalysis/MetZ.html">NumRu::GAnalysis::MetZ</a></li>
103
+
104
+ <li><a href="../../NumRu/GAnalysis/Planet.html">NumRu::GAnalysis::Planet</a></li>
105
+
106
+ <li><a href="../../NumRu/GAnalysis/QG.html">NumRu::GAnalysis::QG</a></li>
107
+
108
+ <li><a href="../../NumRu/GAnalysis/QG/Uninitialized.html">NumRu::GAnalysis::QG::Uninitialized</a></li>
109
+
110
+ <li><a href="../../NumRu/GAnalysis/QG_common.html">NumRu::GAnalysis::QG_common</a></li>
111
+
112
+ <li><a href="../../NumRu/GAnalysis/QG_sphere.html">NumRu::GAnalysis::QG_sphere</a></li>
113
+
114
+ <li><a href="../../NumRu/GAnalysis/QG_sphere_common.html">NumRu::GAnalysis::QG_sphere_common</a></li>
115
+
116
+ <li><a href="../../NumRu/GAnalysis/QG_sphere_div.html">NumRu::GAnalysis::QG_sphere_div</a></li>
117
+
118
+ <li><a href="../../NumRu/GAnalysis/SigmaCoord.html">NumRu::GAnalysis::SigmaCoord</a></li>
119
+
120
+ <li><a href="../../NumRu/GGraph.html">NumRu::GGraph</a></li>
121
+
122
+ <li><a href="../../NumRu/GPhys.html">NumRu::GPhys</a></li>
123
+
124
+ <li><a href="../../Object.html">Object</a></li>
125
+
126
+ </ul>
127
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
128
+ </div>
129
+
130
+
131
+ </div>
132
+ </div>
133
+
134
+ <div id="documentation">
135
+ <h1 class="module">NumRu::GAnalysis::SigmaCoord</h1>
136
+
137
+ <div id="description" class="description">
138
+
139
+ <p>Library to handle the sigma coordinate of atmospheric GCMs</p>
140
+
141
+ </div><!-- description -->
142
+
143
+
144
+
145
+
146
+ <div id="5Buntitled-5D" class="documentation-section">
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <!-- Methods -->
156
+
157
+ <div id="public-instance-method-details" class="method-section section">
158
+ <h3 class="section-header">Public Instance Methods</h3>
159
+
160
+
161
+ <div id="find_sigma_d-method" class="method-detail ">
162
+ <a name="method-i-find_sigma_d"></a>
163
+
164
+
165
+ <div class="method-heading">
166
+ <span class="method-name">find_sigma_d</span><span
167
+ class="method-args">(gphys, error=nil)</span>
168
+ <span class="method-click-advice">click to toggle source</span>
169
+ </div>
170
+
171
+
172
+ <div class="method-description">
173
+
174
+ <p>Find the sigma coordinate in a <a href="../GPhys.html">GPhys</a> object
175
+ (empirically)</p>
176
+
177
+ <p>ARGUMENT</p>
178
+ <ul><li>
179
+ <p>gphys [GPhys]</p>
180
+ </li><li>
181
+ <p>error [nil/false or true] change the behavior if a pressure coordinate is
182
+ not found. Default: returns nil; if error is true, an exception is raised.</p>
183
+ </li></ul>
184
+
185
+ <p>RETURN VALUE</p>
186
+ <ul><li>
187
+ <p>Integer to indicate the dimension of the sigma coordinate, or nil if not
188
+ found (by default; see above)</p>
189
+ </li></ul>
190
+
191
+
192
+
193
+ <div class="method-source-code" id="find_sigma_d-source">
194
+ <pre>
195
+ <span class="ruby-comment"># File ../../lib/numru/ganalysis/sigma_coord.rb, line 24</span>
196
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_sigma_d</span>(<span class="ruby-identifier">gphys</span>, <span class="ruby-identifier">error</span>=<span class="ruby-keyword">nil</span>)
197
+ <span class="ruby-identifier">un0</span> = <span class="ruby-constant">Units</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;1&quot;</span>)
198
+ (<span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">rank</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>).<span class="ruby-identifier">downto</span>(<span class="ruby-value">0</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
199
+ <span class="ruby-identifier">crd</span> = <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">coord</span>(<span class="ruby-identifier">d</span>)
200
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">crd</span>.<span class="ruby-identifier">units</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">un0</span> <span class="ruby-keyword">and</span>
201
+ ( <span class="ruby-identifier">crd</span>.<span class="ruby-identifier">get_att</span>(<span class="ruby-string">'standard_name'</span>)<span class="ruby-operator">==</span><span class="ruby-string">&quot;atmosphere_sigma_coordinate&quot;</span> <span class="ruby-keyword">or</span>
202
+ <span class="ruby-regexp">/sigma/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">crd</span>.<span class="ruby-identifier">long_name</span> <span class="ruby-keyword">or</span> <span class="ruby-regexp">/^sig/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">crd</span>.<span class="ruby-identifier">name</span> )
203
+ <span class="ruby-comment"># then, it's assumed that this is the sigma coordinate</span>
204
+ <span class="ruby-keyword">return</span>(<span class="ruby-identifier">d</span>)
205
+ <span class="ruby-keyword">end</span>
206
+ <span class="ruby-keyword">end</span>
207
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">error</span>
208
+ <span class="ruby-identifier">raise</span>(<span class="ruby-string">&quot;Could not find a pressure coordinate.&quot;</span>)
209
+ <span class="ruby-keyword">else</span>
210
+ <span class="ruby-keyword">nil</span>
211
+ <span class="ruby-keyword">end</span>
212
+ <span class="ruby-keyword">end</span></pre>
213
+ </div><!-- find_sigma_d-source -->
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ </div><!-- find_sigma_d-method -->
221
+
222
+
223
+ <div id="sig_ps2p-method" class="method-detail ">
224
+ <a name="method-i-sig_ps2p"></a>
225
+
226
+
227
+ <div class="method-heading">
228
+ <span class="method-name">sig_ps2p</span><span
229
+ class="method-args">(ps, sig, zdim)</span>
230
+ <span class="method-click-advice">click to toggle source</span>
231
+ </div>
232
+
233
+
234
+ <div class="method-description">
235
+
236
+ <p>Derive pressure from sigma and surface pressure</p>
237
+
238
+ <p>ARGUMENTS</p>
239
+ <ul><li>
240
+ <p>ps [<a href="../GPhys.html">GPhys</a> or VArray or NArray] : surface
241
+ pressure (multi-D)</p>
242
+ </li><li>
243
+ <p>sig [<a href="../GPhys.html">GPhys</a> or VArray or NArray] : sigma (1D)</p>
244
+ </li><li>
245
+ <p>zdim [Integer] : dimension at which the vertical dim is incorpolated</p>
246
+ </li></ul>
247
+
248
+ <p>RETURN VALUE</p>
249
+ <ul><li>
250
+ <p>pressure [<a href="../GPhys.html">GPhys</a> or VArray or NArray depending
251
+ the class of ps]</p>
252
+ </li></ul>
253
+
254
+
255
+
256
+ <div class="method-source-code" id="sig_ps2p-source">
257
+ <pre>
258
+ <span class="ruby-comment"># File ../../lib/numru/ganalysis/sigma_coord.rb, line 50</span>
259
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sig_ps2p</span>(<span class="ruby-identifier">ps</span>, <span class="ruby-identifier">sig</span>, <span class="ruby-identifier">zdim</span>)
260
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">sig</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">VArray</span>) <span class="ruby-keyword">or</span> <span class="ruby-identifier">sig</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">GPhys</span>)
261
+ <span class="ruby-identifier">sigval</span> = <span class="ruby-identifier">sig</span>.<span class="ruby-identifier">val</span>
262
+ <span class="ruby-keyword">else</span>
263
+ <span class="ruby-identifier">sigval</span> = <span class="ruby-identifier">sig</span>
264
+ <span class="ruby-keyword">end</span>
265
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ps</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">VArray</span>) <span class="ruby-keyword">or</span> <span class="ruby-identifier">ps</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">GPhys</span>)
266
+ <span class="ruby-identifier">psval</span> = <span class="ruby-identifier">ps</span>.<span class="ruby-identifier">val</span>
267
+ <span class="ruby-keyword">else</span>
268
+ <span class="ruby-identifier">psval</span> = <span class="ruby-identifier">ps</span>
269
+ <span class="ruby-keyword">end</span>
270
+ <span class="ruby-identifier">psval</span> = <span class="ruby-identifier">psval</span>.<span class="ruby-identifier">newdim</span>(<span class="ruby-identifier">zdim</span>)
271
+ <span class="ruby-identifier">zdim</span>.<span class="ruby-identifier">times</span>{<span class="ruby-identifier">sigval</span> = <span class="ruby-identifier">sigval</span>.<span class="ruby-identifier">newdim</span>(<span class="ruby-value">0</span>)}
272
+ (<span class="ruby-identifier">ps</span>.<span class="ruby-identifier">rank</span><span class="ruby-operator">-</span><span class="ruby-identifier">zdim</span>).<span class="ruby-identifier">times</span>{<span class="ruby-identifier">sigval</span> = <span class="ruby-identifier">sigval</span>.<span class="ruby-identifier">newdim</span>(<span class="ruby-value">-1</span>)}
273
+ <span class="ruby-identifier">pval</span> = <span class="ruby-identifier">psval</span> * <span class="ruby-identifier">sigval</span>
274
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">ps</span>
275
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">VArray</span>, <span class="ruby-constant">GPhys</span>
276
+ <span class="ruby-identifier">p</span> = <span class="ruby-constant">VArray</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">pval</span>,
277
+ {<span class="ruby-string">&quot;long_name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;pressure&quot;</span>,<span class="ruby-string">&quot;units&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">ps</span>.<span class="ruby-identifier">units</span>.<span class="ruby-identifier">to_s</span>}, <span class="ruby-string">&quot;p&quot;</span>)
278
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ps</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">GPhys</span>)
279
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">sig</span>
280
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">GPhys</span>
281
+ <span class="ruby-identifier">sigax</span> = <span class="ruby-identifier">sig</span>.<span class="ruby-identifier">axis</span>(<span class="ruby-value">0</span>)
282
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">VArray</span>
283
+ <span class="ruby-identifier">sigax</span> = <span class="ruby-constant">Axis</span>.<span class="ruby-identifier">new</span>().<span class="ruby-identifier">set_pos</span>(<span class="ruby-identifier">sig</span>)
284
+ <span class="ruby-keyword">else</span>
285
+ <span class="ruby-identifier">sigc</span> = <span class="ruby-constant">VArray</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">sig</span>,{<span class="ruby-string">&quot;units&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;&quot;</span>,<span class="ruby-string">&quot;long_name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;sigma&quot;</span>},<span class="ruby-string">&quot;sigma&quot;</span>)
286
+ <span class="ruby-identifier">sigax</span> = <span class="ruby-constant">Axis</span>.<span class="ruby-identifier">new</span>().<span class="ruby-identifier">set_pos</span>(<span class="ruby-identifier">sigc</span>)
287
+ <span class="ruby-keyword">end</span>
288
+ <span class="ruby-identifier">grid</span> = <span class="ruby-identifier">ps</span>.<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">insert_axis</span>(<span class="ruby-identifier">zdim</span>,<span class="ruby-identifier">sigax</span>)
289
+ <span class="ruby-identifier">p</span> = <span class="ruby-constant">GPhys</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">grid</span>, <span class="ruby-identifier">p</span>)
290
+ <span class="ruby-keyword">end</span>
291
+ <span class="ruby-identifier">p</span>
292
+ <span class="ruby-keyword">else</span>
293
+ <span class="ruby-identifier">pval</span>
294
+ <span class="ruby-keyword">end</span>
295
+ <span class="ruby-keyword">end</span></pre>
296
+ </div><!-- sig_ps2p-source -->
297
+
298
+ </div>
299
+
300
+
301
+
302
+
303
+ </div><!-- sig_ps2p-method -->
304
+
305
+
306
+ </div><!-- public-instance-method-details -->
307
+
308
+ </div><!-- 5Buntitled-5D -->
309
+
310
+
311
+ </div><!-- documentation -->
312
+
313
+ <div id="validator-badges">
314
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
315
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
316
+ Rdoc Generator</a> 2</small>.</p>
317
+ </div>
318
+
319
+ </body>
320
+ </html>
321
+
@@ -0,0 +1,334 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: NumRu::GGraph</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../__/__/lib/numru/ganalysis/histogram_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="../../lib/numru/ganalysis/histogram.rb">../../lib/numru/ganalysis/histogram.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ <!-- Method Quickref -->
56
+ <div id="method-list-section" class="section">
57
+ <h3 class="section-header">Methods</h3>
58
+ <ul class="link-list">
59
+
60
+ <li><a href="#method-i-histogram">#histogram</a></li>
61
+
62
+ <li><a href="#method-i-histogram1D">#histogram1D</a></li>
63
+
64
+ </ul>
65
+ </div>
66
+
67
+
68
+
69
+ </div>
70
+
71
+ <div id="project-metadata">
72
+
73
+
74
+
75
+ <div id="classindex-section" class="section project-section">
76
+ <h3 class="section-header">Class/Module Index
77
+ <span class="search-toggle"><img src="../images/find.png"
78
+ height="16" width="16" alt="[+]"
79
+ title="show/hide quicksearch" /></span></h3>
80
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
81
+ <fieldset>
82
+ <legend>Quicksearch</legend>
83
+ <input type="text" name="quicksearch" value=""
84
+ class="quicksearch-field" />
85
+ </fieldset>
86
+ </form>
87
+
88
+ <ul class="link-list">
89
+
90
+ <li><a href="../NumRu.html">NumRu</a></li>
91
+
92
+ <li><a href="../NumRu/GAnalysis.html">NumRu::GAnalysis</a></li>
93
+
94
+ <li><a href="../NumRu/GAnalysis/BetaPlane.html">NumRu::GAnalysis::BetaPlane</a></li>
95
+
96
+ <li><a href="../NumRu/GAnalysis/Fitting.html">NumRu::GAnalysis::Fitting</a></li>
97
+
98
+ <li><a href="../NumRu/GAnalysis/LogP.html">NumRu::GAnalysis::LogP</a></li>
99
+
100
+ <li><a href="../NumRu/GAnalysis/Met.html">NumRu::GAnalysis::Met</a></li>
101
+
102
+ <li><a href="../NumRu/GAnalysis/MetZ.html">NumRu::GAnalysis::MetZ</a></li>
103
+
104
+ <li><a href="../NumRu/GAnalysis/Planet.html">NumRu::GAnalysis::Planet</a></li>
105
+
106
+ <li><a href="../NumRu/GAnalysis/QG.html">NumRu::GAnalysis::QG</a></li>
107
+
108
+ <li><a href="../NumRu/GAnalysis/QG/Uninitialized.html">NumRu::GAnalysis::QG::Uninitialized</a></li>
109
+
110
+ <li><a href="../NumRu/GAnalysis/QG_common.html">NumRu::GAnalysis::QG_common</a></li>
111
+
112
+ <li><a href="../NumRu/GAnalysis/QG_sphere.html">NumRu::GAnalysis::QG_sphere</a></li>
113
+
114
+ <li><a href="../NumRu/GAnalysis/QG_sphere_common.html">NumRu::GAnalysis::QG_sphere_common</a></li>
115
+
116
+ <li><a href="../NumRu/GAnalysis/QG_sphere_div.html">NumRu::GAnalysis::QG_sphere_div</a></li>
117
+
118
+ <li><a href="../NumRu/GAnalysis/SigmaCoord.html">NumRu::GAnalysis::SigmaCoord</a></li>
119
+
120
+ <li><a href="../NumRu/GGraph.html">NumRu::GGraph</a></li>
121
+
122
+ <li><a href="../NumRu/GPhys.html">NumRu::GPhys</a></li>
123
+
124
+ <li><a href="../Object.html">Object</a></li>
125
+
126
+ </ul>
127
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
128
+ </div>
129
+
130
+
131
+ </div>
132
+ </div>
133
+
134
+ <div id="documentation">
135
+ <h1 class="module">NumRu::GGraph</h1>
136
+
137
+ <div id="description" class="description">
138
+
139
+ </div><!-- description -->
140
+
141
+
142
+
143
+
144
+ <div id="5Buntitled-5D" class="documentation-section">
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ <div id="public-instance-method-details" class="method-section section">
156
+ <h3 class="section-header">Public Instance Methods</h3>
157
+
158
+
159
+ <div id="histogram-method" class="method-detail ">
160
+ <a name="method-i-histogram"></a>
161
+
162
+
163
+ <div class="method-heading">
164
+ <span class="method-name">histogram</span><span
165
+ class="method-args">(gphys, newframe=true, options=nil)</span>
166
+ <span class="method-click-advice">click to toggle source</span>
167
+ </div>
168
+
169
+
170
+ <div class="method-description">
171
+
172
+
173
+
174
+
175
+
176
+ <div class="method-source-code" id="histogram-source">
177
+ <pre>
178
+ <span class="ruby-comment"># File ../../lib/numru/ganalysis/histogram.rb, line 171</span>
179
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">histogram</span>(<span class="ruby-identifier">gphys</span>, <span class="ruby-identifier">newframe</span>=<span class="ruby-keyword">true</span>, <span class="ruby-identifier">options</span>=<span class="ruby-keyword">nil</span>)
180
+ <span class="ruby-identifier">gropn_1_if_not_yet</span>
181
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">newframe!</span>=<span class="ruby-keyword">true</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">newframe!</span>=<span class="ruby-keyword">false</span>
182
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;2nd arg (newframe) must be true of false&quot;</span>
183
+ <span class="ruby-keyword">end</span>
184
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">rank</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
185
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;rank of gphys must be 1&quot;</span>
186
+ <span class="ruby-keyword">end</span>
187
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">axis</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">cell?</span>
188
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;axis must be cell type&quot;</span>
189
+ <span class="ruby-keyword">end</span>
190
+ <span class="ruby-comment"># if window is specified via GGraph#fig or GGraph#set_fig, use it.</span>
191
+ <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">@@histogram_options</span>.<span class="ruby-identifier">interpret</span>(<span class="ruby-identifier">options</span>)
192
+ <span class="ruby-identifier">exchange</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;exchange&quot;</span>]
193
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;Option 'window' must be an Array of length == 4&quot;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;window&quot;</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;window&quot;</span>].<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">4</span>
194
+ <span class="ruby-identifier">window</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;window&quot;</span>].<span class="ruby-identifier">dup</span>
195
+ <span class="ruby-value">4</span>.<span class="ruby-identifier">times</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">window</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">@@fig</span>[<span class="ruby-string">'window'</span>][<span class="ruby-identifier">i</span>]} <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@fig</span>[<span class="ruby-string">'window'</span>]
196
+ <span class="ruby-value">4</span>.<span class="ruby-identifier">times</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">window</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">sgqwnd</span>[<span class="ruby-identifier">i</span>]} <span class="ruby-keyword">unless</span> <span class="ruby-identifier">newframe</span>
197
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">exchange</span>
198
+ <span class="ruby-identifier">x</span> = <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">axis</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">cell_bounds</span>
199
+ <span class="ruby-identifier">y</span> = <span class="ruby-identifier">gphys</span>
200
+ <span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
201
+ <span class="ruby-keyword">else</span>
202
+ <span class="ruby-identifier">y</span> = <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">axis</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">cell_bounds</span>
203
+ <span class="ruby-identifier">x</span> = <span class="ruby-identifier">gphys</span>
204
+ <span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
205
+ <span class="ruby-keyword">end</span>
206
+ <span class="ruby-identifier">itr</span> = <span class="ruby-identifier">@@fig</span>[<span class="ruby-string">'itr'</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">sgpget</span>(<span class="ruby-string">&quot;itr&quot;</span>)
207
+ <span class="ruby-keyword">if</span> (<span class="ruby-identifier">itr</span><span class="ruby-operator">==</span><span class="ruby-value">2</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">itr</span><span class="ruby-operator">==</span><span class="ruby-value">4</span>)
208
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-identifier">y</span>.<span class="ruby-identifier">val</span>
209
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span> * <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">max</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>
210
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span>.<span class="ruby-identifier">abs</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">max</span>
211
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">lt</span>(<span class="ruby-value">0</span>)
212
+ <span class="ruby-keyword">else</span>
213
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">gt</span>(<span class="ruby-value">0</span>)
214
+ <span class="ruby-keyword">end</span>
215
+ <span class="ruby-keyword">else</span>
216
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">ne</span>(<span class="ruby-value">0</span>)
217
+ <span class="ruby-keyword">end</span>
218
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NArrayMiss</span>)
219
+ <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">set_mask</span>(<span class="ruby-identifier">mask</span> * <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">get_mask</span>)
220
+ <span class="ruby-keyword">else</span>
221
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-constant">NArrayMiss</span>.<span class="ruby-identifier">to_nam_no_dup</span>(<span class="ruby-identifier">tmp</span>, <span class="ruby-identifier">mask</span>)
222
+ <span class="ruby-keyword">end</span>
223
+ <span class="ruby-identifier">y</span>.<span class="ruby-identifier">replace_val</span>(<span class="ruby-identifier">tmp</span>)
224
+ <span class="ruby-keyword">if</span>(<span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)
225
+ <span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>] = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">min</span> * (<span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">-1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>)
226
+ <span class="ruby-keyword">end</span>
227
+ <span class="ruby-keyword">end</span>
228
+ <span class="ruby-keyword">if</span> (<span class="ruby-identifier">itr</span><span class="ruby-operator">==</span><span class="ruby-value">3</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">itr</span><span class="ruby-operator">==</span><span class="ruby-value">4</span>)
229
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-identifier">x</span>.<span class="ruby-identifier">val</span>
230
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span> * <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">max</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>
231
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span>.<span class="ruby-identifier">abs</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">max</span>
232
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">lt</span>(<span class="ruby-value">0</span>)
233
+ <span class="ruby-keyword">else</span>
234
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">gt</span>(<span class="ruby-value">0</span>)
235
+ <span class="ruby-keyword">end</span>
236
+ <span class="ruby-keyword">else</span>
237
+ <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">ne</span>(<span class="ruby-value">0</span>)
238
+ <span class="ruby-keyword">end</span>
239
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NArrayMiss</span>)
240
+ <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">set_mask</span>(<span class="ruby-identifier">mask</span> * <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">get_mask</span>)
241
+ <span class="ruby-keyword">else</span>
242
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-constant">NArrayMiss</span>.<span class="ruby-identifier">to_nam_no_dup</span>(<span class="ruby-identifier">tmp</span>, <span class="ruby-identifier">mask</span>)
243
+ <span class="ruby-keyword">end</span>
244
+ <span class="ruby-identifier">x</span>.<span class="ruby-identifier">replace_val</span>(<span class="ruby-identifier">tmp</span>)
245
+ <span class="ruby-keyword">if</span>(<span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)
246
+ <span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">min</span> * (<span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">min</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">-1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>)
247
+ <span class="ruby-keyword">end</span>
248
+ <span class="ruby-keyword">end</span>
249
+ <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;window&quot;</span>] = <span class="ruby-identifier">window</span>
250
+
251
+ <span class="ruby-identifier">fig</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-string">&quot;window&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">window</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">newframe</span>
252
+ <span class="ruby-identifier">lmiss</span> = <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">gllget</span>(<span class="ruby-string">&quot;lmiss&quot;</span>)
253
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">gllset</span>(<span class="ruby-string">&quot;lmiss&quot;</span>, <span class="ruby-keyword">true</span>)
254
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;fill&quot;</span>]
255
+ <span class="ruby-identifier">itps</span> = <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uuqarp</span>
256
+ <span class="ruby-identifier">itps</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">itps</span>[<span class="ruby-value">1</span>] = <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;fill_pattern&quot;</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;fill_pattern&quot;</span>]
257
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uusarp</span>(*<span class="ruby-identifier">itps</span>)
258
+ <span class="ruby-keyword">end</span>
259
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">exchange</span>
260
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;fill&quot;</span>]
261
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uvbxa</span>(<span class="ruby-identifier">x</span>.<span class="ruby-identifier">val</span>, [<span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>]] * <span class="ruby-identifier">y</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">y</span>.<span class="ruby-identifier">val</span>)
262
+ <span class="ruby-keyword">end</span>
263
+ <span class="ruby-identifier">bottom</span> = [<span class="ruby-identifier">window</span>[<span class="ruby-value">2</span>]] * <span class="ruby-identifier">y</span>.<span class="ruby-identifier">length</span>
264
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uvbxf</span>(<span class="ruby-identifier">x</span>.<span class="ruby-identifier">val</span>, <span class="ruby-identifier">bottom</span>, <span class="ruby-identifier">y</span>.<span class="ruby-identifier">val</span>)
265
+ <span class="ruby-keyword">else</span>
266
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;fill&quot;</span>]
267
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uhbxa</span>([<span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>]] * <span class="ruby-identifier">x</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">val</span>, <span class="ruby-identifier">y</span>.<span class="ruby-identifier">val</span>)
268
+ <span class="ruby-keyword">end</span>
269
+ <span class="ruby-identifier">bottom</span> = [<span class="ruby-identifier">window</span>[<span class="ruby-value">0</span>]] * <span class="ruby-identifier">x</span>.<span class="ruby-identifier">length</span>
270
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">uhbxf</span>(<span class="ruby-identifier">bottom</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">val</span>, <span class="ruby-identifier">y</span>.<span class="ruby-identifier">val</span>)
271
+ <span class="ruby-keyword">end</span>
272
+ <span class="ruby-constant">DCL</span><span class="ruby-operator">::</span><span class="ruby-identifier">gllset</span>(<span class="ruby-string">&quot;lmiss&quot;</span>, <span class="ruby-identifier">lmiss</span>)
273
+ <span class="ruby-identifier">axes</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-string">&quot;title&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">&quot;title&quot;</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">newframe</span>
274
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
275
+ <span class="ruby-keyword">end</span></pre>
276
+ </div><!-- histogram-source -->
277
+
278
+ </div>
279
+
280
+
281
+ <div class="aliases">
282
+ Also aliased as: <a href="GGraph.html#method-i-histogram1D">histogram1D</a>
283
+ </div>
284
+
285
+
286
+
287
+ </div><!-- histogram-method -->
288
+
289
+
290
+ <div id="histogram1D-method" class="method-detail method-alias">
291
+ <a name="method-i-histogram1D"></a>
292
+
293
+
294
+ <div class="method-heading">
295
+ <span class="method-name">histogram1D</span><span
296
+ class="method-args">(gphys, newframe=true, options=nil)</span>
297
+ <span class="method-click-advice">click to toggle source</span>
298
+ </div>
299
+
300
+
301
+ <div class="method-description">
302
+
303
+
304
+
305
+
306
+
307
+ </div>
308
+
309
+
310
+
311
+
312
+ <div class="aliases">
313
+ Alias for: <a href="GGraph.html#method-i-histogram">histogram</a>
314
+ </div>
315
+
316
+ </div><!-- histogram1D-method -->
317
+
318
+
319
+ </div><!-- public-instance-method-details -->
320
+
321
+ </div><!-- 5Buntitled-5D -->
322
+
323
+
324
+ </div><!-- documentation -->
325
+
326
+ <div id="validator-badges">
327
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
328
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
329
+ Rdoc Generator</a> 2</small>.</p>
330
+ </div>
331
+
332
+ </body>
333
+ </html>
334
+