gphys 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,251 @@
|
|
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::QG_sphere_common</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/qg_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="../../lib/numru/ganalysis/qg.rb">../../lib/numru/ganalysis/qg.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-f">#f</a></li>
|
61
|
+
|
62
|
+
<li><a href="#method-i-f_mask0">#f_mask0</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::QG_sphere_common</h1>
|
136
|
+
|
137
|
+
<div id="description" class="description">
|
138
|
+
|
139
|
+
<p>Collection of common methods for <a href="QG_sphere.html">QG_sphere</a> and
|
140
|
+
<a href="QG_sphere_div.html">QG_sphere_div</a></p>
|
141
|
+
|
142
|
+
</div><!-- description -->
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<!-- Methods -->
|
157
|
+
|
158
|
+
<div id="public-instance-method-details" class="method-section section">
|
159
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
160
|
+
|
161
|
+
|
162
|
+
<div id="f-method" class="method-detail ">
|
163
|
+
<a name="method-i-f"></a>
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<span class="method-name">f</span><span
|
168
|
+
class="method-args">(gphys)</span>
|
169
|
+
<span class="method-click-advice">click to toggle source</span>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
|
175
|
+
<p>Coriolis parameter f</p>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<div class="method-source-code" id="f-source">
|
180
|
+
<pre>
|
181
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 225</span>
|
182
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">f</span>(<span class="ruby-identifier">gphys</span>)
|
183
|
+
<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>)
|
184
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-identifier">phi</span>.<span class="ruby-identifier">sin</span> * (<span class="ruby-value">2</span>*<span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">omega</span>)
|
185
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"f"</span>
|
186
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-string">"Coriolis parameter"</span>
|
187
|
+
<span class="ruby-identifier">f</span>
|
188
|
+
<span class="ruby-keyword">end</span></pre>
|
189
|
+
</div><!-- f-source -->
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
</div><!-- f-method -->
|
197
|
+
|
198
|
+
|
199
|
+
<div id="f_mask0-method" class="method-detail ">
|
200
|
+
<a name="method-i-f_mask0"></a>
|
201
|
+
|
202
|
+
|
203
|
+
<div class="method-heading">
|
204
|
+
<span class="method-name">f_mask0</span><span
|
205
|
+
class="method-args">(gphys)</span>
|
206
|
+
<span class="method-click-advice">click to toggle source</span>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
|
210
|
+
<div class="method-description">
|
211
|
+
|
212
|
+
<p>mask where f=0</p>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
<div class="method-source-code" id="f_mask0-source">
|
217
|
+
<pre>
|
218
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 234</span>
|
219
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">f_mask0</span>(<span class="ruby-identifier">gphys</span>)
|
220
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-identifier">f</span>(<span class="ruby-identifier">gphys</span>)
|
221
|
+
<span class="ruby-identifier">v</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">val</span>
|
222
|
+
<span class="ruby-identifier">vm</span> = <span class="ruby-constant">NArrayMiss</span>.<span class="ruby-identifier">to_nam</span>(<span class="ruby-identifier">v</span>, <span class="ruby-identifier">v</span>.<span class="ruby-identifier">ne</span>(<span class="ruby-value">0</span>))
|
223
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">replace_val</span>(<span class="ruby-identifier">vm</span>)
|
224
|
+
<span class="ruby-identifier">f</span>
|
225
|
+
<span class="ruby-keyword">end</span></pre>
|
226
|
+
</div><!-- f_mask0-source -->
|
227
|
+
|
228
|
+
</div>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</div><!-- f_mask0-method -->
|
234
|
+
|
235
|
+
|
236
|
+
</div><!-- public-instance-method-details -->
|
237
|
+
|
238
|
+
</div><!-- 5Buntitled-5D -->
|
239
|
+
|
240
|
+
|
241
|
+
</div><!-- documentation -->
|
242
|
+
|
243
|
+
<div id="validator-badges">
|
244
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
245
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
246
|
+
Rdoc Generator</a> 2</small>.</p>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</body>
|
250
|
+
</html>
|
251
|
+
|
@@ -0,0 +1,424 @@
|
|
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::QG_sphere_div</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/qg_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="../../lib/numru/ganalysis/qg.rb">../../lib/numru/ganalysis/qg.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-gpd2q">#gpd2q</a></li>
|
61
|
+
|
62
|
+
<li><a href="#method-i-gpd2qb">#gpd2qb</a></li>
|
63
|
+
|
64
|
+
<li><a href="#method-i-gpd2ug_vg">#gpd2ug_vg</a></li>
|
65
|
+
|
66
|
+
<li><a href="#method-i-gph2q">#gph2q</a></li>
|
67
|
+
|
68
|
+
<li><a href="#method-i-gph2qb">#gph2qb</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-gph2ug_vg">#gph2ug_vg</a></li>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="project-metadata">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<div id="classindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Class/Module Index
|
85
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
86
|
+
height="16" width="16" alt="[+]"
|
87
|
+
title="show/hide quicksearch" /></span></h3>
|
88
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
89
|
+
<fieldset>
|
90
|
+
<legend>Quicksearch</legend>
|
91
|
+
<input type="text" name="quicksearch" value=""
|
92
|
+
class="quicksearch-field" />
|
93
|
+
</fieldset>
|
94
|
+
</form>
|
95
|
+
|
96
|
+
<ul class="link-list">
|
97
|
+
|
98
|
+
<li><a href="../../NumRu.html">NumRu</a></li>
|
99
|
+
|
100
|
+
<li><a href="../../NumRu/GAnalysis.html">NumRu::GAnalysis</a></li>
|
101
|
+
|
102
|
+
<li><a href="../../NumRu/GAnalysis/BetaPlane.html">NumRu::GAnalysis::BetaPlane</a></li>
|
103
|
+
|
104
|
+
<li><a href="../../NumRu/GAnalysis/Fitting.html">NumRu::GAnalysis::Fitting</a></li>
|
105
|
+
|
106
|
+
<li><a href="../../NumRu/GAnalysis/LogP.html">NumRu::GAnalysis::LogP</a></li>
|
107
|
+
|
108
|
+
<li><a href="../../NumRu/GAnalysis/Met.html">NumRu::GAnalysis::Met</a></li>
|
109
|
+
|
110
|
+
<li><a href="../../NumRu/GAnalysis/MetZ.html">NumRu::GAnalysis::MetZ</a></li>
|
111
|
+
|
112
|
+
<li><a href="../../NumRu/GAnalysis/Planet.html">NumRu::GAnalysis::Planet</a></li>
|
113
|
+
|
114
|
+
<li><a href="../../NumRu/GAnalysis/QG.html">NumRu::GAnalysis::QG</a></li>
|
115
|
+
|
116
|
+
<li><a href="../../NumRu/GAnalysis/QG/Uninitialized.html">NumRu::GAnalysis::QG::Uninitialized</a></li>
|
117
|
+
|
118
|
+
<li><a href="../../NumRu/GAnalysis/QG_common.html">NumRu::GAnalysis::QG_common</a></li>
|
119
|
+
|
120
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere.html">NumRu::GAnalysis::QG_sphere</a></li>
|
121
|
+
|
122
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere_common.html">NumRu::GAnalysis::QG_sphere_common</a></li>
|
123
|
+
|
124
|
+
<li><a href="../../NumRu/GAnalysis/QG_sphere_div.html">NumRu::GAnalysis::QG_sphere_div</a></li>
|
125
|
+
|
126
|
+
<li><a href="../../NumRu/GAnalysis/SigmaCoord.html">NumRu::GAnalysis::SigmaCoord</a></li>
|
127
|
+
|
128
|
+
<li><a href="../../NumRu/GGraph.html">NumRu::GGraph</a></li>
|
129
|
+
|
130
|
+
<li><a href="../../NumRu/GPhys.html">NumRu::GPhys</a></li>
|
131
|
+
|
132
|
+
<li><a href="../../Object.html">Object</a></li>
|
133
|
+
|
134
|
+
</ul>
|
135
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
|
142
|
+
<div id="documentation">
|
143
|
+
<h1 class="module">NumRu::GAnalysis::QG_sphere_div</h1>
|
144
|
+
|
145
|
+
<div id="description" class="description">
|
146
|
+
|
147
|
+
<p><a href="QG.html">QG</a> on sphere with divergence in the geostrophic wind</p>
|
148
|
+
|
149
|
+
<p>The geostrophic wind is defined as</p>
|
150
|
+
|
151
|
+
<pre>[ug, vg] = 1/f curl gpd,</pre>
|
152
|
+
|
153
|
+
<p>where gpd is the geostrophic geopotential, which is the deviation of
|
154
|
+
geopotential from some globally uniform background. A background can be
|
155
|
+
defined as the global mean geopotential, as is done in the method
|
156
|
+
gph2gpd_gpref.</p>
|
157
|
+
|
158
|
+
</div><!-- description -->
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<!-- Methods -->
|
173
|
+
|
174
|
+
<div id="public-instance-method-details" class="method-section section">
|
175
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
176
|
+
|
177
|
+
|
178
|
+
<div id="gpd2q-method" class="method-detail ">
|
179
|
+
<a name="method-i-gpd2q"></a>
|
180
|
+
|
181
|
+
|
182
|
+
<div class="method-heading">
|
183
|
+
<span class="method-name">gpd2q</span><span
|
184
|
+
class="method-args">(gpd, n2)</span>
|
185
|
+
<span class="method-click-advice">click to toggle source</span>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-source-code" id="gpd2q-source">
|
196
|
+
<pre>
|
197
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 635</span>
|
198
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gpd2q</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">n2</span>)
|
199
|
+
<span class="ruby-identifier">ug</span>, <span class="ruby-identifier">vg</span> = <span class="ruby-identifier">gpd2ug_vg</span>(<span class="ruby-identifier">gpd</span>)
|
200
|
+
|
201
|
+
<span class="ruby-identifier">avor</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">absvor_s</span>(<span class="ruby-identifier">ug</span>,<span class="ruby-identifier">vg</span>)
|
202
|
+
<span class="ruby-identifier">avor</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"qgavor"</span>
|
203
|
+
<span class="ruby-identifier">avor</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-string">"QG abs vor"</span>
|
204
|
+
|
205
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-identifier">f_mask0</span>(<span class="ruby-identifier">gpd</span>)
|
206
|
+
<span class="ruby-identifier">qzz</span> = <span class="ruby-identifier">gpd2qzz</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">n2</span>) * <span class="ruby-identifier">f</span>
|
207
|
+
|
208
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">avor</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">qzz</span>
|
209
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"q"</span>
|
210
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-string">"QG PV"</span>
|
211
|
+
|
212
|
+
[<span class="ruby-identifier">q</span>, <span class="ruby-identifier">avor</span>, <span class="ruby-identifier">qzz</span>, <span class="ruby-identifier">ug</span>, <span class="ruby-identifier">vg</span>]
|
213
|
+
<span class="ruby-keyword">end</span></pre>
|
214
|
+
</div><!-- gpd2q-source -->
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
</div><!-- gpd2q-method -->
|
222
|
+
|
223
|
+
|
224
|
+
<div id="gpd2qb-method" class="method-detail ">
|
225
|
+
<a name="method-i-gpd2qb"></a>
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method-heading">
|
229
|
+
<span class="method-name">gpd2qb</span><span
|
230
|
+
class="method-args">(gpd, n2)</span>
|
231
|
+
<span class="method-click-advice">click to toggle source</span>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
|
237
|
+
<p>geopotential height (gpd: deviation from the reference profie) to the
|
238
|
+
extended QGPV</p>
|
239
|
+
|
240
|
+
<p>qb: q including the contribution from the bottom boundary</p>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<div class="method-source-code" id="gpd2qb-source">
|
245
|
+
<pre>
|
246
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 655</span>
|
247
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gpd2qb</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">n2</span>)
|
248
|
+
<span class="ruby-identifier">gpde</span> = <span class="ruby-identifier">extend_bottom</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-keyword">nil</span>)
|
249
|
+
<span class="ruby-identifier">n2e</span> = <span class="ruby-identifier">extend_bottom</span>(<span class="ruby-identifier">n2</span>, <span class="ruby-keyword">nil</span>)
|
250
|
+
<span class="ruby-identifier">results</span> = <span class="ruby-identifier">gpd2q</span>(<span class="ruby-identifier">gpde</span>, <span class="ruby-identifier">n2e</span>)
|
251
|
+
<span class="ruby-identifier">results</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">z</span><span class="ruby-operator">|</span> <span class="ruby-identifier">cut_bottom</span>(<span class="ruby-identifier">z</span>)}
|
252
|
+
<span class="ruby-keyword">end</span></pre>
|
253
|
+
</div><!-- gpd2qb-source -->
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
</div><!-- gpd2qb-method -->
|
261
|
+
|
262
|
+
|
263
|
+
<div id="gpd2ug_vg-method" class="method-detail ">
|
264
|
+
<a name="method-i-gpd2ug_vg"></a>
|
265
|
+
|
266
|
+
|
267
|
+
<div class="method-heading">
|
268
|
+
<span class="method-name">gpd2ug_vg</span><span
|
269
|
+
class="method-args">(gpd)</span>
|
270
|
+
<span class="method-click-advice">click to toggle source</span>
|
271
|
+
</div>
|
272
|
+
|
273
|
+
|
274
|
+
<div class="method-description">
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<div class="method-source-code" id="gpd2ug_vg-source">
|
281
|
+
<pre>
|
282
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 662</span>
|
283
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gpd2ug_vg</span>(<span class="ruby-identifier">gpd</span>)
|
284
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-identifier">f_mask0</span>(<span class="ruby-identifier">gpd</span>)
|
285
|
+
<span class="ruby-identifier">gpx</span>, <span class="ruby-identifier">gpy</span> = <span class="ruby-constant">Planet</span><span class="ruby-operator">::</span><span class="ruby-identifier">grad_s</span>(<span class="ruby-identifier">gpd</span>)
|
286
|
+
<span class="ruby-identifier">vg</span> = <span class="ruby-identifier">gpx</span><span class="ruby-operator">/</span><span class="ruby-identifier">f</span>
|
287
|
+
<span class="ruby-identifier">ug</span> = <span class="ruby-identifier">gpy</span>* (<span class="ruby-value">-1</span><span class="ruby-operator">/</span><span class="ruby-identifier">f</span>)
|
288
|
+
<span class="ruby-identifier">ug</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"ug"</span>
|
289
|
+
<span class="ruby-identifier">vg</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"vg"</span>
|
290
|
+
<span class="ruby-identifier">ug</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-string">"ug"</span>
|
291
|
+
<span class="ruby-identifier">vg</span>.<span class="ruby-identifier">long_name</span> = <span class="ruby-string">"vg"</span>
|
292
|
+
[<span class="ruby-identifier">ug</span>, <span class="ruby-identifier">vg</span>]
|
293
|
+
<span class="ruby-keyword">end</span></pre>
|
294
|
+
</div><!-- gpd2ug_vg-source -->
|
295
|
+
|
296
|
+
</div>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</div><!-- gpd2ug_vg-method -->
|
302
|
+
|
303
|
+
|
304
|
+
<div id="gph2q-method" class="method-detail ">
|
305
|
+
<a name="method-i-gph2q"></a>
|
306
|
+
|
307
|
+
|
308
|
+
<div class="method-heading">
|
309
|
+
<span class="method-name">gph2q</span><span
|
310
|
+
class="method-args">(gph)</span>
|
311
|
+
<span class="method-click-advice">click to toggle source</span>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
|
315
|
+
<div class="method-description">
|
316
|
+
|
317
|
+
<p>geopotential height to quasi-geostrophic potential vorticity (QGPV)</p>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<div class="method-source-code" id="gph2q-source">
|
322
|
+
<pre>
|
323
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 615</span>
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gph2q</span>(<span class="ruby-identifier">gph</span>)
|
325
|
+
<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">gpref</span> = <span class="ruby-identifier">gph2gpd_gpref</span>(<span class="ruby-identifier">gph</span>)
|
326
|
+
<span class="ruby-identifier">n2</span> = <span class="ruby-identifier">gpref2n2</span>(<span class="ruby-identifier">gpref</span>)
|
327
|
+
<span class="ruby-identifier">gpd2q</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">n2</span>)
|
328
|
+
<span class="ruby-keyword">end</span></pre>
|
329
|
+
</div><!-- gph2q-source -->
|
330
|
+
|
331
|
+
</div>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</div><!-- gph2q-method -->
|
337
|
+
|
338
|
+
|
339
|
+
<div id="gph2qb-method" class="method-detail ">
|
340
|
+
<a name="method-i-gph2qb"></a>
|
341
|
+
|
342
|
+
|
343
|
+
<div class="method-heading">
|
344
|
+
<span class="method-name">gph2qb</span><span
|
345
|
+
class="method-args">(gph)</span>
|
346
|
+
<span class="method-click-advice">click to toggle source</span>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
|
350
|
+
<div class="method-description">
|
351
|
+
|
352
|
+
<p>same as gph2q, but the QGPV is extended to reflect the lowest-level
|
353
|
+
temperature anomalies</p>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
<div class="method-source-code" id="gph2qb-source">
|
358
|
+
<pre>
|
359
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 622</span>
|
360
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gph2qb</span>(<span class="ruby-identifier">gph</span>)
|
361
|
+
<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">gpref</span> = <span class="ruby-identifier">gph2gpd_gpref</span>(<span class="ruby-identifier">gph</span>)
|
362
|
+
<span class="ruby-identifier">n2</span> = <span class="ruby-identifier">gpref2n2</span>(<span class="ruby-identifier">gpref</span>)
|
363
|
+
<span class="ruby-identifier">gpd2qb</span>(<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">n2</span>)
|
364
|
+
<span class="ruby-keyword">end</span></pre>
|
365
|
+
</div><!-- gph2qb-source -->
|
366
|
+
|
367
|
+
</div>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
</div><!-- gph2qb-method -->
|
373
|
+
|
374
|
+
|
375
|
+
<div id="gph2ug_vg-method" class="method-detail ">
|
376
|
+
<a name="method-i-gph2ug_vg"></a>
|
377
|
+
|
378
|
+
|
379
|
+
<div class="method-heading">
|
380
|
+
<span class="method-name">gph2ug_vg</span><span
|
381
|
+
class="method-args">(gph)</span>
|
382
|
+
<span class="method-click-advice">click to toggle source</span>
|
383
|
+
</div>
|
384
|
+
|
385
|
+
|
386
|
+
<div class="method-description">
|
387
|
+
|
388
|
+
<p>geopotential height -> geostrophic winds</p>
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
<div class="method-source-code" id="gph2ug_vg-source">
|
393
|
+
<pre>
|
394
|
+
<span class="ruby-comment"># File ../../lib/numru/ganalysis/qg.rb, line 629</span>
|
395
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gph2ug_vg</span>(<span class="ruby-identifier">gph</span>)
|
396
|
+
<span class="ruby-identifier">gpd</span>, <span class="ruby-identifier">gpref</span> = <span class="ruby-identifier">gph2gpd_gpref</span>(<span class="ruby-identifier">gph</span>)
|
397
|
+
<span class="ruby-identifier">gpd2ug_vg</span>(<span class="ruby-identifier">gpd</span>)
|
398
|
+
<span class="ruby-keyword">end</span></pre>
|
399
|
+
</div><!-- gph2ug_vg-source -->
|
400
|
+
|
401
|
+
</div>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
</div><!-- gph2ug_vg-method -->
|
407
|
+
|
408
|
+
|
409
|
+
</div><!-- public-instance-method-details -->
|
410
|
+
|
411
|
+
</div><!-- 5Buntitled-5D -->
|
412
|
+
|
413
|
+
|
414
|
+
</div><!-- documentation -->
|
415
|
+
|
416
|
+
<div id="validator-badges">
|
417
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
418
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
419
|
+
Rdoc Generator</a> 2</small>.</p>
|
420
|
+
</div>
|
421
|
+
|
422
|
+
</body>
|
423
|
+
</html>
|
424
|
+
|