gphys 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/ChangeLog +7414 -0
- data/LICENSE.txt +1 -1
- data/Rakefile +0 -2
- data/doc/derivative/math-doc/document/images.log +385 -0
- data/doc/ep_flux/math-doc/document/images.log +1375 -0
- data/doc/ganalysis/doc/NumRu.html +203 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis.html +931 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/BetaPlane.html +574 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/Fitting.html +576 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/LogP.html +425 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/Met.html +2021 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/MetZ.html +524 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/Planet.html +1047 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG.html +794 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG/Uninitialized.html +215 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG_common.html +603 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere.html +760 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere_common.html +251 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/QG_sphere_div.html +424 -0
- data/doc/ganalysis/doc/NumRu/GAnalysis/SigmaCoord.html +321 -0
- data/doc/ganalysis/doc/NumRu/GGraph.html +334 -0
- data/doc/ganalysis/doc/NumRu/GPhys.html +579 -0
- data/doc/ganalysis/doc/Object.html +210 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/beta_plane_rb.html +60 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/covariance_rb.html +56 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/eof_rb.html +64 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/fitting_rb.html +54 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/histogram_rb.html +58 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/log_p_rb.html +60 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/met_rb.html +60 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/met_z_rb.html +58 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/planet_rb.html +58 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/qg_rb.html +64 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis/sigma_coord_rb.html +56 -0
- data/doc/ganalysis/doc/__/__/lib/numru/ganalysis_rb.html +98 -0
- data/doc/ganalysis/doc/created.rid +13 -0
- data/doc/ganalysis/doc/images/brick.png +0 -0
- data/doc/ganalysis/doc/images/brick_link.png +0 -0
- data/doc/ganalysis/doc/images/bug.png +0 -0
- data/doc/ganalysis/doc/images/bullet_black.png +0 -0
- data/doc/ganalysis/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/ganalysis/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/ganalysis/doc/images/date.png +0 -0
- data/doc/ganalysis/doc/images/find.png +0 -0
- data/doc/ganalysis/doc/images/loadingAnimation.gif +0 -0
- data/doc/ganalysis/doc/images/macFFBgHack.png +0 -0
- data/doc/ganalysis/doc/images/package.png +0 -0
- data/doc/ganalysis/doc/images/page_green.png +0 -0
- data/doc/ganalysis/doc/images/page_white_text.png +0 -0
- data/doc/ganalysis/doc/images/page_white_width.png +0 -0
- data/doc/ganalysis/doc/images/plugin.png +0 -0
- data/doc/ganalysis/doc/images/ruby.png +0 -0
- data/doc/ganalysis/doc/images/tag_green.png +0 -0
- data/doc/ganalysis/doc/images/wrench.png +0 -0
- data/doc/ganalysis/doc/images/wrench_orange.png +0 -0
- data/doc/ganalysis/doc/images/zoom.png +0 -0
- data/doc/ganalysis/doc/index.html +383 -0
- data/doc/ganalysis/doc/js/darkfish.js +118 -0
- data/doc/ganalysis/doc/js/jquery.js +32 -0
- data/doc/ganalysis/doc/js/quicksearch.js +114 -0
- data/doc/ganalysis/doc/js/thickbox-compressed.js +10 -0
- data/doc/ganalysis/doc/rdoc.css +763 -0
- data/ext/numru/gphys/ext_init.c +1 -0
- data/ext/numru/gphys/quad_mesh_sample.c +478 -0
- data/gphys.gemspec +2 -2
- data/lib/numru/dclext.rb +394 -14
- data/lib/numru/derivative.rb +6 -0
- data/lib/numru/ganalysis/qg.rb +6 -4
- data/lib/numru/ggraph.rb +41 -8
- data/lib/numru/gphys/gphys.rb +62 -14
- data/lib/numru/gphys/gphys_io.rb +4 -4
- data/lib/numru/gphys/version.rb +2 -2
- metadata +84 -79
- data/.gitignore +0 -14
- data/TODO_ep_flux +0 -6
- data/gphys-bigmem.gemspec +0 -44
- data/install.rb +0 -130
- data/sample/cira86_to_nc.rb +0 -122
- data/sample/druby_cli1.rb +0 -23
- data/sample/druby_cli2.rb +0 -28
- data/sample/druby_serv1.rb +0 -30
- data/sample/druby_serv2.rb +0 -51
- data/sample/ep_flux/demo_NCEP_1.rb +0 -48
- data/sample/ep_flux/demo_NCEP_2.rb +0 -57
- data/sample/ep_flux/demo_NCEP_3.rb +0 -81
- data/sample/ggraph_latlon_labelling_dr002690.rb +0 -159
- data/sample/ggraph_mapfit-axes_dr002687.rb +0 -131
- data/sample/map_projection.rb +0 -121
- data/sample/ncep_theta_coord.rb +0 -79
- data/test_old/eof_slp.rb +0 -28
- data/test_old/mltbit.dat +0 -0
- data/test_old/test_ep_flux.rb +0 -533
- data/test_old/test_multibitIO.rb +0 -19
|
@@ -0,0 +1,574 @@
|
|
|
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>Class: NumRu::GAnalysis::BetaPlane</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="class">
|
|
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/beta_plane_rb.html?TB_iframe=true&height=550&width=785"
|
|
38
|
+
class="thickbox" title="../../lib/numru/ganalysis/beta_plane.rb">../../lib/numru/ganalysis/beta_plane.rb</a></li>
|
|
39
|
+
|
|
40
|
+
</ul>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div id="class-metadata">
|
|
48
|
+
|
|
49
|
+
<!-- Parent Class -->
|
|
50
|
+
<div id="parent-class-section" class="section">
|
|
51
|
+
<h3 class="section-header">Parent</h3>
|
|
52
|
+
|
|
53
|
+
<p class="link"><a href="../../Object.html">Object</a></p>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<!-- Method Quickref -->
|
|
64
|
+
<div id="method-list-section" class="section">
|
|
65
|
+
<h3 class="section-header">Methods</h3>
|
|
66
|
+
<ul class="link-list">
|
|
67
|
+
|
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
|
69
|
+
|
|
70
|
+
<li><a href="#method-i-div_h">#div_h</a></li>
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-get_x_y">#get_x_y</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-grad_h">#grad_h</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-grad_x">#grad_x</a></li>
|
|
77
|
+
|
|
78
|
+
<li><a href="#method-i-grad_y">#grad_y</a></li>
|
|
79
|
+
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<div id="project-metadata">
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<div id="classindex-section" class="section project-section">
|
|
92
|
+
<h3 class="section-header">Class/Module Index
|
|
93
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
|
94
|
+
height="16" width="16" alt="[+]"
|
|
95
|
+
title="show/hide quicksearch" /></span></h3>
|
|
96
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
97
|
+
<fieldset>
|
|
98
|
+
<legend>Quicksearch</legend>
|
|
99
|
+
<input type="text" name="quicksearch" value=""
|
|
100
|
+
class="quicksearch-field" />
|
|
101
|
+
</fieldset>
|
|
102
|
+
</form>
|
|
103
|
+
|
|
104
|
+
<ul class="link-list">
|
|
105
|
+
|
|
106
|
+
<li><a href="../../NumRu.html">NumRu</a></li>
|
|
107
|
+
|
|
108
|
+
<li><a href="../../NumRu/GAnalysis.html">NumRu::GAnalysis</a></li>
|
|
109
|
+
|
|
110
|
+
<li><a href="../../NumRu/GAnalysis/BetaPlane.html">NumRu::GAnalysis::BetaPlane</a></li>
|
|
111
|
+
|
|
112
|
+
<li><a href="../../NumRu/GAnalysis/Fitting.html">NumRu::GAnalysis::Fitting</a></li>
|
|
113
|
+
|
|
114
|
+
<li><a href="../../NumRu/GAnalysis/LogP.html">NumRu::GAnalysis::LogP</a></li>
|
|
115
|
+
|
|
116
|
+
<li><a href="../../NumRu/GAnalysis/Met.html">NumRu::GAnalysis::Met</a></li>
|
|
117
|
+
|
|
118
|
+
<li><a href="../../NumRu/GAnalysis/MetZ.html">NumRu::GAnalysis::MetZ</a></li>
|
|
119
|
+
|
|
120
|
+
<li><a href="../../NumRu/GAnalysis/Planet.html">NumRu::GAnalysis::Planet</a></li>
|
|
121
|
+
|
|
122
|
+
<li><a href="../../NumRu/GAnalysis/QG.html">NumRu::GAnalysis::QG</a></li>
|
|
123
|
+
|
|
124
|
+
<li><a href="../../NumRu/GAnalysis/QG/Uninitialized.html">NumRu::GAnalysis::QG::Uninitialized</a></li>
|
|
125
|
+
|
|
126
|
+
<li><a href="../../NumRu/GAnalysis/QG_common.html">NumRu::GAnalysis::QG_common</a></li>
|
|
127
|
+
|
|
128
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere.html">NumRu::GAnalysis::QG_sphere</a></li>
|
|
129
|
+
|
|
130
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere_common.html">NumRu::GAnalysis::QG_sphere_common</a></li>
|
|
131
|
+
|
|
132
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere_div.html">NumRu::GAnalysis::QG_sphere_div</a></li>
|
|
133
|
+
|
|
134
|
+
<li><a href="../../NumRu/GAnalysis/SigmaCoord.html">NumRu::GAnalysis::SigmaCoord</a></li>
|
|
135
|
+
|
|
136
|
+
<li><a href="../../NumRu/GGraph.html">NumRu::GGraph</a></li>
|
|
137
|
+
|
|
138
|
+
<li><a href="../../NumRu/GPhys.html">NumRu::GPhys</a></li>
|
|
139
|
+
|
|
140
|
+
<li><a href="../../Object.html">Object</a></li>
|
|
141
|
+
|
|
142
|
+
</ul>
|
|
143
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
<div id="documentation">
|
|
151
|
+
<h1 class="class">NumRu::GAnalysis::BetaPlane</h1>
|
|
152
|
+
|
|
153
|
+
<div id="description" class="description">
|
|
154
|
+
|
|
155
|
+
</div><!-- description -->
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
<!-- Attributes -->
|
|
169
|
+
<div id="attribute-method-details" class="method-section section">
|
|
170
|
+
<h3 class="section-header">Attributes</h3>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<div id="a-attribute-method" class="method-detail">
|
|
174
|
+
<a name="a"></a>
|
|
175
|
+
|
|
176
|
+
<div class="method-heading attribute-method-heading">
|
|
177
|
+
<span class="method-name">a</span><span
|
|
178
|
+
class="attribute-access-type">[R]</span>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div class="method-description">
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<div id="beta-attribute-method" class="method-detail">
|
|
189
|
+
<a name="beta"></a>
|
|
190
|
+
|
|
191
|
+
<div class="method-heading attribute-method-heading">
|
|
192
|
+
<span class="method-name">beta</span><span
|
|
193
|
+
class="attribute-access-type">[R]</span>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<div class="method-description">
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<div id="f0-attribute-method" class="method-detail">
|
|
204
|
+
<a name="f0"></a>
|
|
205
|
+
|
|
206
|
+
<div class="method-heading attribute-method-heading">
|
|
207
|
+
<span class="method-name">f0</span><span
|
|
208
|
+
class="attribute-access-type">[R]</span>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<div class="method-description">
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<div id="lat0-attribute-method" class="method-detail">
|
|
219
|
+
<a name="lat0"></a>
|
|
220
|
+
|
|
221
|
+
<div class="method-heading attribute-method-heading">
|
|
222
|
+
<span class="method-name">lat0</span><span
|
|
223
|
+
class="attribute-access-type">[R]</span>
|
|
224
|
+
</div>
|
|
225
|
+
|
|
226
|
+
<div class="method-description">
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
|
|
233
|
+
<div id="phi0-attribute-method" class="method-detail">
|
|
234
|
+
<a name="phi0"></a>
|
|
235
|
+
|
|
236
|
+
<div class="method-heading attribute-method-heading">
|
|
237
|
+
<span class="method-name">phi0</span><span
|
|
238
|
+
class="attribute-access-type">[R]</span>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
<div class="method-description">
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
</div><!-- attribute-method-details -->
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
<!-- Methods -->
|
|
252
|
+
|
|
253
|
+
<div id="public-class-method-details" class="method-section section">
|
|
254
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<div id="new-method" class="method-detail ">
|
|
258
|
+
<a name="method-c-new"></a>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<div class="method-heading">
|
|
262
|
+
<span class="method-name">new</span><span
|
|
263
|
+
class="method-args">(lat0_or_latary)</span>
|
|
264
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<div class="method-description">
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<div class="method-source-code" id="new-source">
|
|
275
|
+
<pre>
|
|
276
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 11</span>
|
|
277
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">lat0_or_latary</span>)
|
|
278
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">lat0_or_latary</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:mean</span>)
|
|
279
|
+
<span class="ruby-ivar">@lat0</span> = <span class="ruby-identifier">lat0_or_latary</span>.<span class="ruby-identifier">mean</span>.<span class="ruby-identifier">to_f</span>
|
|
280
|
+
<span class="ruby-keyword">else</span>
|
|
281
|
+
<span class="ruby-ivar">@lat0</span> = <span class="ruby-identifier">lat0_or_latary</span>
|
|
282
|
+
<span class="ruby-keyword">end</span>
|
|
283
|
+
<span class="ruby-ivar">@phi0</span> = <span class="ruby-identifier">lat0</span> * <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-constant">PI</span> <span class="ruby-operator">/</span> <span class="ruby-value">180.0</span>
|
|
284
|
+
<span class="ruby-ivar">@f0</span> = <span class="ruby-value">2</span> * <span class="ruby-constant">Planet</span>.<span class="ruby-identifier">omega</span> * <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-identifier">phi0</span>)
|
|
285
|
+
<span class="ruby-ivar">@beta</span> = <span class="ruby-value">2</span> * <span class="ruby-constant">Planet</span>.<span class="ruby-identifier">omega</span> * <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-identifier">phi0</span>) <span class="ruby-operator">/</span> <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">radius</span>
|
|
286
|
+
<span class="ruby-ivar">@a</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">radius</span>
|
|
287
|
+
<span class="ruby-keyword">end</span></pre>
|
|
288
|
+
</div><!-- new-source -->
|
|
289
|
+
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</div><!-- new-method -->
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
</div><!-- public-class-method-details -->
|
|
299
|
+
|
|
300
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
301
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<div id="div_h-method" class="method-detail ">
|
|
305
|
+
<a name="method-i-div_h"></a>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
<div class="method-heading">
|
|
309
|
+
<span class="method-name">div_h</span><span
|
|
310
|
+
class="method-args">(u, v, x=nil, y=nil)</span>
|
|
311
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
<div class="method-description">
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
<div class="method-source-code" id="div_h-source">
|
|
322
|
+
<pre>
|
|
323
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 59</span>
|
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">div_h</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">v</span>, <span class="ruby-identifier">x</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">y</span>=<span class="ruby-keyword">nil</span>)
|
|
325
|
+
<span class="ruby-identifier">lond</span>, <span class="ruby-identifier">latd</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">find_lon_lat_dims</span>(<span class="ruby-identifier">u</span>)
|
|
326
|
+
<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-identifier">get_x_y</span>(<span class="ruby-identifier">u</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">x</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">y</span>
|
|
327
|
+
<span class="ruby-identifier">bc</span> = <span class="ruby-constant">GPhys</span><span class="ruby-operator">::</span><span class="ruby-constant">Derivative</span><span class="ruby-operator">::</span><span class="ruby-constant">CYCLIC_OR_LINEAR</span>
|
|
328
|
+
<span class="ruby-identifier">gx</span> = <span class="ruby-identifier">u</span>.<span class="ruby-identifier">cderiv</span>(<span class="ruby-identifier">lond</span>,<span class="ruby-identifier">bc</span>,<span class="ruby-identifier">x</span>)
|
|
329
|
+
<span class="ruby-identifier">gy</span> = <span class="ruby-identifier">v</span>.<span class="ruby-identifier">threepoint_O2nd_deriv</span>(<span class="ruby-identifier">latd</span>,<span class="ruby-identifier">bc</span>,<span class="ruby-identifier">y</span>)
|
|
330
|
+
<span class="ruby-identifier">div</span> = <span class="ruby-identifier">gx</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">gy</span>
|
|
331
|
+
<span class="ruby-identifier">div</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"div"</span>
|
|
332
|
+
<span class="ruby-identifier">div</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-node">"div(#{u.long_name},#{v.long_name})"</span>
|
|
333
|
+
<span class="ruby-identifier">div</span>
|
|
334
|
+
<span class="ruby-keyword">end</span></pre>
|
|
335
|
+
</div><!-- div_h-source -->
|
|
336
|
+
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
</div><!-- div_h-method -->
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
<div id="get_x_y-method" class="method-detail ">
|
|
346
|
+
<a name="method-i-get_x_y"></a>
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
<div class="method-heading">
|
|
350
|
+
<span class="method-name">get_x_y</span><span
|
|
351
|
+
class="method-args">(gphys)</span>
|
|
352
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
353
|
+
</div>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
<div class="method-description">
|
|
357
|
+
|
|
358
|
+
<p>Derive the x and y from the lon and lat coordinates</p>
|
|
359
|
+
|
|
360
|
+
<p>ARGUMENTS</p>
|
|
361
|
+
<ul><li>
|
|
362
|
+
<p>gphys (<a href="../GPhys.html">GPhys</a>) : a <a
|
|
363
|
+
href="../GPhys.html">GPhys</a> object (having a lon&lat as coordinates)</p>
|
|
364
|
+
</li></ul>
|
|
365
|
+
|
|
366
|
+
<p>RETURN VALUE</p>
|
|
367
|
+
<ul><li><dl class="rdoc-list"><dt>x, y</dt>
|
|
368
|
+
<dd>
|
|
369
|
+
<p>(<a href="../GPhys.html">GPhys</a> objects)</p>
|
|
370
|
+
</dd></dl>
|
|
371
|
+
</li></ul>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
<div class="method-source-code" id="get_x_y-source">
|
|
376
|
+
<pre>
|
|
377
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 32</span>
|
|
378
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_x_y</span>(<span class="ruby-identifier">gphys</span>)
|
|
379
|
+
<span class="ruby-identifier">lam</span>, <span class="ruby-identifier">phi</span>, = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">get_lambda_phi</span>(<span class="ruby-identifier">gphys</span>)
|
|
380
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">lam</span> * (<span class="ruby-ivar">@a</span> * <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@phi0</span>))
|
|
381
|
+
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">units</span> = <span class="ruby-ivar">@a</span>.<span class="ruby-identifier">units</span>
|
|
382
|
+
<span class="ruby-identifier">y</span> = ( <span class="ruby-identifier">phi</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@phi0</span> ) * <span class="ruby-ivar">@a</span>
|
|
383
|
+
<span class="ruby-identifier">y</span>.<span class="ruby-identifier">units</span> = <span class="ruby-ivar">@a</span>.<span class="ruby-identifier">units</span>
|
|
384
|
+
[<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>]
|
|
385
|
+
<span class="ruby-keyword">end</span></pre>
|
|
386
|
+
</div><!-- get_x_y-source -->
|
|
387
|
+
|
|
388
|
+
</div>
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
</div><!-- get_x_y-method -->
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
<div id="grad_h-method" class="method-detail ">
|
|
397
|
+
<a name="method-i-grad_h"></a>
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
<div class="method-heading">
|
|
401
|
+
<span class="method-name">grad_h</span><span
|
|
402
|
+
class="method-args">(gphys, x=nil, y=nil)</span>
|
|
403
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
404
|
+
</div>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
<div class="method-description">
|
|
408
|
+
|
|
409
|
+
<p>Horizontal gradient</p>
|
|
410
|
+
|
|
411
|
+
<p>ARGUMENTS</p>
|
|
412
|
+
<ul><li>
|
|
413
|
+
<p>gphys (<a href="../GPhys.html">GPhys</a>) : a <a
|
|
414
|
+
href="../GPhys.html">GPhys</a> object (having a lon&lat as coordinates)</p>
|
|
415
|
+
</li><li>
|
|
416
|
+
<p>x [<a href="../GPhys.html">GPhys</a> or nil] : the x coordinate, which can
|
|
417
|
+
be obtained by the <a href="BetaPlane.html#method-i-get_x_y">get_x_y</a>
|
|
418
|
+
method. If nil, internally calculated by <a
|
|
419
|
+
href="BetaPlane.html#method-i-get_x_y">get_x_y</a> method.</p>
|
|
420
|
+
</li><li>
|
|
421
|
+
<p>y [<a href="../GPhys.html">GPhys</a> or nil] : the y coordinate, which can
|
|
422
|
+
be obtained by the <a href="BetaPlane.html#method-i-get_x_y">get_x_y</a>
|
|
423
|
+
method. If nil, internally calculated by <a
|
|
424
|
+
href="BetaPlane.html#method-i-get_x_y">get_x_y</a> method.</p>
|
|
425
|
+
</li></ul>
|
|
426
|
+
|
|
427
|
+
<p>RETURN VALUE</p>
|
|
428
|
+
<ul><li><dl class="rdoc-list"><dt><a href="BetaPlane.html#method-i-grad_x">grad_x</a>, <a href="BetaPlane.html#method-i-grad_y">grad_y</a></dt>
|
|
429
|
+
<dd>
|
|
430
|
+
<p>(<a href="../GPhys.html">GPhys</a> objects)</p>
|
|
431
|
+
</dd></dl>
|
|
432
|
+
</li></ul>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
<div class="method-source-code" id="grad_h-source">
|
|
437
|
+
<pre>
|
|
438
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 52</span>
|
|
439
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">grad_h</span>(<span class="ruby-identifier">gphys</span>, <span class="ruby-identifier">x</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">y</span>=<span class="ruby-keyword">nil</span>)
|
|
440
|
+
<span class="ruby-identifier">lond</span>, <span class="ruby-identifier">latd</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">find_lon_lat_dims</span>(<span class="ruby-identifier">gphys</span>)
|
|
441
|
+
<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-identifier">get_x_y</span>(<span class="ruby-identifier">gphys</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">x</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">y</span>
|
|
442
|
+
<span class="ruby-identifier">bc</span> = <span class="ruby-constant">GPhys</span><span class="ruby-operator">::</span><span class="ruby-constant">Derivative</span><span class="ruby-operator">::</span><span class="ruby-constant">CYCLIC_OR_LINEAR</span>
|
|
443
|
+
[ <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">cderiv</span>(<span class="ruby-identifier">lond</span>,<span class="ruby-identifier">bc</span>,<span class="ruby-identifier">x</span>), <span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">threepoint_O2nd_deriv</span>(<span class="ruby-identifier">latd</span>,<span class="ruby-identifier">bc</span>,<span class="ruby-identifier">y</span>) ]
|
|
444
|
+
<span class="ruby-keyword">end</span></pre>
|
|
445
|
+
</div><!-- grad_h-source -->
|
|
446
|
+
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
</div><!-- grad_h-method -->
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
<div id="grad_x-method" class="method-detail ">
|
|
456
|
+
<a name="method-i-grad_x"></a>
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
<div class="method-heading">
|
|
460
|
+
<span class="method-name">grad_x</span><span
|
|
461
|
+
class="method-args">(gphys, x=nil)</span>
|
|
462
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
463
|
+
</div>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<div class="method-description">
|
|
467
|
+
|
|
468
|
+
<p>Gradient in the x direction</p>
|
|
469
|
+
|
|
470
|
+
<p>ARGUMENTS</p>
|
|
471
|
+
<ul><li>
|
|
472
|
+
<p>gphys (<a href="../GPhys.html">GPhys</a>) : a <a
|
|
473
|
+
href="../GPhys.html">GPhys</a> object (having a longitude as a coordinate)</p>
|
|
474
|
+
</li><li>
|
|
475
|
+
<p>x [<a href="../GPhys.html">GPhys</a> or nil] : the x coordinate, which can
|
|
476
|
+
be obtained by the <a href="BetaPlane.html#method-i-get_x_y">get_x_y</a>
|
|
477
|
+
method. If nil, internally calculated by <a
|
|
478
|
+
href="BetaPlane.html#method-i-get_x_y">get_x_y</a> method.</p>
|
|
479
|
+
</li></ul>
|
|
480
|
+
|
|
481
|
+
<p>RETURN VALUE</p>
|
|
482
|
+
<ul><li>
|
|
483
|
+
<p><a href="BetaPlane.html#method-i-grad_x">grad_x</a> (<a
|
|
484
|
+
href="../GPhys.html">GPhys</a> objects)</p>
|
|
485
|
+
</li></ul>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
<div class="method-source-code" id="grad_x-source">
|
|
490
|
+
<pre>
|
|
491
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 80</span>
|
|
492
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">grad_x</span>(<span class="ruby-identifier">gphys</span>, <span class="ruby-identifier">x</span>=<span class="ruby-keyword">nil</span>)
|
|
493
|
+
<span class="ruby-identifier">lond</span>, <span class="ruby-identifier">latd</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">find_lon_lat_dims</span>
|
|
494
|
+
<span class="ruby-identifier">x</span>, = <span class="ruby-identifier">get_x_y</span>(<span class="ruby-identifier">gphys</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">x</span>
|
|
495
|
+
<span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">cderiv</span>(<span class="ruby-identifier">lond</span>,<span class="ruby-identifier">x</span>)
|
|
496
|
+
<span class="ruby-keyword">end</span></pre>
|
|
497
|
+
</div><!-- grad_x-source -->
|
|
498
|
+
|
|
499
|
+
</div>
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
</div><!-- grad_x-method -->
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
<div id="grad_y-method" class="method-detail ">
|
|
508
|
+
<a name="method-i-grad_y"></a>
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
<div class="method-heading">
|
|
512
|
+
<span class="method-name">grad_y</span><span
|
|
513
|
+
class="method-args">(gphys, y=nil)</span>
|
|
514
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
<div class="method-description">
|
|
519
|
+
|
|
520
|
+
<p>Gradient in the y direction</p>
|
|
521
|
+
|
|
522
|
+
<p>ARGUMENTS</p>
|
|
523
|
+
<ul><li>
|
|
524
|
+
<p>gphys (<a href="../GPhys.html">GPhys</a>) : a <a
|
|
525
|
+
href="../GPhys.html">GPhys</a> object (having a latitude as a coordinate)</p>
|
|
526
|
+
</li><li>
|
|
527
|
+
<p>y [<a href="../GPhys.html">GPhys</a> or nil] : the y coordinate, which can
|
|
528
|
+
be obtained by the <a href="BetaPlane.html#method-i-get_x_y">get_x_y</a>
|
|
529
|
+
method. If nil, internally calculated by <a
|
|
530
|
+
href="BetaPlane.html#method-i-get_x_y">get_x_y</a> method.</p>
|
|
531
|
+
</li></ul>
|
|
532
|
+
|
|
533
|
+
<p>RETURN VALUE</p>
|
|
534
|
+
<ul><li>
|
|
535
|
+
<p><a href="BetaPlane.html#method-i-grad_y">grad_y</a> (<a
|
|
536
|
+
href="../GPhys.html">GPhys</a> objects)</p>
|
|
537
|
+
</li></ul>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
<div class="method-source-code" id="grad_y-source">
|
|
542
|
+
<pre>
|
|
543
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/beta_plane.rb, line 95</span>
|
|
544
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">grad_y</span>(<span class="ruby-identifier">gphys</span>, <span class="ruby-identifier">y</span>=<span class="ruby-keyword">nil</span>)
|
|
545
|
+
<span class="ruby-identifier">lond</span>, <span class="ruby-identifier">latd</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">find_lon_lat_dims</span>
|
|
546
|
+
<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-identifier">get_x_y</span>(<span class="ruby-identifier">gphys</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">y</span>
|
|
547
|
+
<span class="ruby-identifier">gphys</span>.<span class="ruby-identifier">threepoint_O2nd_deriv</span>(<span class="ruby-identifier">latd</span>,<span class="ruby-identifier">y</span>)
|
|
548
|
+
<span class="ruby-keyword">end</span></pre>
|
|
549
|
+
</div><!-- grad_y-source -->
|
|
550
|
+
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
</div><!-- grad_y-method -->
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
</div><!-- public-instance-method-details -->
|
|
560
|
+
|
|
561
|
+
</div><!-- 5Buntitled-5D -->
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
</div><!-- documentation -->
|
|
565
|
+
|
|
566
|
+
<div id="validator-badges">
|
|
567
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
568
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
569
|
+
Rdoc Generator</a> 2</small>.</p>
|
|
570
|
+
</div>
|
|
571
|
+
|
|
572
|
+
</body>
|
|
573
|
+
</html>
|
|
574
|
+
|