gentooboontoo-gphys 0.6.1.3 → 1.3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +5631 -464
  3. data/LICENSE.txt +34 -0
  4. data/README +23 -25
  5. data/bin/gdir_client +25 -7
  6. data/bin/gdir_server +19 -13
  7. data/bin/gpaop +41 -28
  8. data/bin/gpcat +19 -11
  9. data/bin/gpcut +20 -11
  10. data/bin/gpedit +37 -1
  11. data/bin/gplist +5 -4
  12. data/bin/gpmath +21 -14
  13. data/bin/gpmaxmin +9 -7
  14. data/bin/gpprint +15 -11
  15. data/bin/gpvect +217 -96
  16. data/bin/gpview +278 -123
  17. data/bin/grads2nc_with_gphys +11 -6
  18. data/doc/attribute.html +1 -1
  19. data/doc/axis.html +85 -66
  20. data/doc/coordmapping.html +22 -22
  21. data/doc/dclext.html +709 -0
  22. data/doc/derivative/gphys-derivative.html +33 -13
  23. data/doc/derivative/numru-derivative.html +60 -31
  24. data/doc/gdir.html +76 -76
  25. data/doc/gdir_server.html +28 -16
  26. data/doc/ggraph.html +493 -706
  27. data/doc/gpcat.html +28 -11
  28. data/doc/gpcut.html +26 -11
  29. data/doc/gphys.html +195 -71
  30. data/doc/gphys_fft.html +162 -21
  31. data/doc/gphys_grads_io.html +9 -9
  32. data/doc/gphys_grib_io.html +7 -7
  33. data/doc/gphys_io.html +118 -31
  34. data/doc/gphys_io_common.html +1 -1
  35. data/doc/gphys_netcdf_io.html +14 -14
  36. data/doc/gplist.html +6 -5
  37. data/doc/gpmath.html +32 -14
  38. data/doc/gpmaxmin.html +9 -7
  39. data/doc/gpprint.html +14 -11
  40. data/doc/gpview.html +254 -146
  41. data/doc/grads2nc_with_gphys.html +6 -8
  42. data/doc/grads_gridded.html +77 -77
  43. data/doc/grib.html +102 -59
  44. data/doc/grid.html +45 -61
  45. data/doc/index.html +51 -41
  46. data/doc/index.rd +47 -36
  47. data/doc/netcdf_convention.html +39 -39
  48. data/doc/unumeric.html +79 -30
  49. data/doc/update +2 -1
  50. data/doc/varray.html +62 -56
  51. data/doc/varraycomposite.html +3 -3
  52. data/ext/ext_coord.c +209 -0
  53. data/ext/ext_init.c +7 -0
  54. data/ext/extconf.rb +41 -0
  55. data/ext/interpo.c +536 -0
  56. data/ext/multibitIO.c +567 -0
  57. data/lib/numru/dcl_mouse.rb +71 -0
  58. data/lib/numru/dclext.rb +2749 -0
  59. data/lib/numru/derivative.rb +124 -31
  60. data/lib/numru/ganalysis.rb +7 -0
  61. data/lib/numru/ganalysis/covariance.rb +154 -0
  62. data/lib/numru/ganalysis/eof.rb +302 -0
  63. data/lib/numru/ganalysis/histogram.rb +337 -0
  64. data/lib/numru/ganalysis/met.rb +872 -0
  65. data/lib/numru/ganalysis/planet.rb +392 -0
  66. data/lib/numru/ggraph.rb +1709 -2498
  67. data/lib/numru/gphys.rb +7 -1
  68. data/lib/numru/gphys/assoccoords.rb +384 -0
  69. data/lib/numru/gphys/attribute.rb +10 -11
  70. data/lib/numru/gphys/axis.rb +97 -25
  71. data/lib/numru/gphys/coordmapping.rb +2 -2
  72. data/lib/numru/gphys/derivative.rb +117 -46
  73. data/lib/numru/gphys/gphys.rb +595 -31
  74. data/lib/numru/gphys/gphys_fft.rb +365 -13
  75. data/lib/numru/gphys/gphys_grads_io.rb +6 -5
  76. data/lib/numru/gphys/gphys_grib_io.rb +6 -6
  77. data/lib/numru/gphys/gphys_gtool3_io.rb +162 -0
  78. data/lib/numru/gphys/gphys_hdfeos5_io.rb +672 -0
  79. data/lib/numru/gphys/gphys_io.rb +260 -20
  80. data/lib/numru/gphys/gphys_io_common.rb +1 -1
  81. data/lib/numru/gphys/gphys_netcdf_io.rb +111 -40
  82. data/lib/numru/gphys/gphys_nusdas_io.rb +64 -7
  83. data/lib/numru/gphys/grads_gridded.rb +158 -57
  84. data/lib/numru/gphys/grib.rb +205 -157
  85. data/lib/numru/gphys/grib_params.rb +196 -1
  86. data/lib/numru/gphys/grid.rb +214 -83
  87. data/lib/numru/gphys/gtool3.rb +771 -0
  88. data/lib/numru/gphys/interpolate.rb +992 -0
  89. data/lib/numru/gphys/mdstorage.rb +145 -0
  90. data/lib/numru/gphys/narray_ext.rb +34 -0
  91. data/lib/numru/gphys/netcdf_convention.rb +44 -2
  92. data/lib/numru/gphys/subsetmapping.rb +1 -1
  93. data/lib/numru/gphys/unumeric.rb +101 -8
  94. data/lib/numru/gphys/varray.rb +66 -20
  95. data/lib/numru/gphys/varraycomposite.rb +107 -29
  96. data/lib/numru/gphys/varraygrib.rb +70 -8
  97. data/lib/numru/gphys/varraygtool3.rb +226 -0
  98. data/lib/numru/gphys/varrayhdfeos5.rb +451 -0
  99. data/lib/numru/gphys/varraynetcdf.rb +13 -5
  100. data/lib/numru/gphys/version.rb +3 -0
  101. data/sample/druby_cli1.rb +2 -0
  102. data/sample/druby_cli2.rb +0 -6
  103. data/sample/druby_serv2.rb +0 -13
  104. data/sample/ncep_theta_coord.rb +79 -0
  105. data/test/eof_slp.rb +28 -0
  106. data/test/mltbit.dat +0 -0
  107. data/test/test_multibitIO.rb +19 -0
  108. data/testdata/assoc_crds.nc +0 -0
  109. metadata +79 -8
  110. data/lib/numru/dclext_datetime_ax.rb +0 -220
  111. data/lib/numru/vizshot.rb +0 -697
@@ -7,21 +7,38 @@
7
7
  <title>../bin/gpcat</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label:0" id="label:0">gpcat</a></h1><!-- RDLabel: "gpcat" -->
11
- <p>Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file. </p>
12
- <h2><a name="label:1" id="label:1">USAGE</a></h2><!-- RDLabel: "USAGE" -->
10
+ <h1><a name="label-0" id="label-0">NAME</a></h1><!-- RDLabel: "NAME" -->
11
+ <p>gpcat - Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file. </p>
12
+ <h1><a name="label-1" id="label-1">DESCRIPTION</a></h1><!-- RDLabel: "DESCRIPTION" -->
13
+ <p><em>gpcat</em> is command line tools for read a variable in multiple</p>
14
+ <pre>NetCDF files, concatenate and write them to a single netcdf file.</pre>
15
+ <h1><a name="label-2" id="label-2">USAGE</a></h1><!-- RDLabel: "USAGE" -->
13
16
  <pre>% gpcat -v VAR [options] FILE1 FILE2...</pre>
14
- <h2><a name="label:2" id="label:2">OPTIONS</a></h2><!-- RDLabel: "OPTIONS" -->
15
- <pre>-h, --help : print this message.
16
- -v var, --variable var : variable name (required).
17
- -s sfmt, --slice sfmt : slice,thinnng (optional).
18
- -o file, --output file : output filename (optional).
19
- : Default output filename is 'gphys.nc'.</pre>
20
- <h2><a name="label:3" id="label:3">HISTORY</a></h2><!-- RDLabel: "HISTORY" -->
17
+ <h1><a name="label-3" id="label-3">OPTIONS</a></h1><!-- RDLabel: "OPTIONS" -->
18
+ <dl>
19
+ <dt><h4><a name="label-4" id="label-4">-h, --help</a></h4></dt><!-- RDLabel: "-h, &shy;&shy;help" -->
20
+ <dd>
21
+ print this message.
22
+ </dd>
23
+ <dt><h4><a name="label-5" id="label-5">-v var, --variable var</a></h4></dt><!-- RDLabel: "-v var, &shy;&shy;variable var" -->
24
+ <dd>
25
+ variable name (required).
26
+ </dd>
27
+ <dt><h4><a name="label-6" id="label-6">-s sfmt, --slice sfmt</a></h4></dt><!-- RDLabel: "-s sfmt, &shy;&shy;slice sfmt" -->
28
+ <dd>
29
+ slice,thinnng (optional).
30
+ </dd>
31
+ <dt><h4><a name="label-7" id="label-7">-o file, --output file</a></h4></dt><!-- RDLabel: "-o file, &shy;&shy;output file" -->
32
+ <dd>
33
+ output filename (optional). Default output filename is 'gphys.nc'.
34
+ </dd>
35
+ </dl>
36
+ <h1><a name="label-8" id="label-8">HISTORY</a></h1><!-- RDLabel: "HISTORY" -->
21
37
  <pre>2005/05/17 S Takehiro (created)
22
38
  2005/08/10 S Takehiro (utilize internal function for printing help message)
23
39
  2005/08/21 S Takehiro (global attributes copied to the output file)
24
- 2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)</pre>
40
+ 2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
41
+ 2010/03/10 Y SASAKI (change help block into RD format)</pre>
25
42
 
26
43
  </body>
27
44
  </html>
@@ -7,21 +7,36 @@
7
7
  <title>../bin/gpcut</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label:0" id="label:0">gpcut</a></h1><!-- RDLabel: "gpcut" -->
11
- <p>Extract, slicing and thinning a GPhys variable.</p>
12
- <h2><a name="label:1" id="label:1">USAGE </a></h2><!-- RDLabel: "USAGE " -->
13
- <pre>% gpcut [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]</pre>
14
- <h2><a name="label:2" id="label:2">OPTIONS</a></h2><!-- RDLabel: "OPTIONS" -->
15
- <pre>-h, --help : print this message.
16
- -m dim, --mean dim : average along dim axis (optional).
17
- -o file, --output file : output filename (optional).
18
- : Default output filename is 'gphys.nc'.</pre>
19
- <h2><a name="label:3" id="label:3">HISTORY</a></h2><!-- RDLabel: "HISTORY" -->
10
+ <h1><a name="label-0" id="label-0">NAME</a></h1><!-- RDLabel: "NAME" -->
11
+ <p>gpcut - Extract, slicing and thinning a GPhys variable.</p>
12
+ <h1><a name="label-1" id="label-1">DESCRIPTION</a></h1><!-- RDLabel: "DESCRIPTION" -->
13
+ <p><em>gpcut</em> is command line tools for extract, slicing and thinning a GPhys variables.</p>
14
+ <h1><a name="label-2" id="label-2">USAGE</a></h1><!-- RDLabel: "USAGE" -->
15
+ <pre>% gpcut [options] path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]</pre>
16
+ <h1><a name="label-3" id="label-3">OPTIONS</a></h1><!-- RDLabel: "OPTIONS" -->
17
+ <dl>
18
+ <dt><h4><a name="label-4" id="label-4">-h, --help</a></h4></dt><!-- RDLabel: "-h, &shy;&shy;help" -->
19
+ <dd>
20
+ print this message.
21
+ </dd>
22
+ <dt><h4><a name="label-5" id="label-5">-m dim, --mean dim</a></h4></dt><!-- RDLabel: "-m dim, &shy;&shy;mean dim" -->
23
+ <dd>
24
+ average along dim axis (optional).
25
+ </dd>
26
+ <dt><h4><a name="label-6" id="label-6">-o file, --output file</a></h4></dt><!-- RDLabel: "-o file, &shy;&shy;output file" -->
27
+ <dd>
28
+ output filename (optional).
29
+ Default output filename is 'gphys.nc'.
30
+ </dd>
31
+ </dl>
32
+ <h1><a name="label-7" id="label-7">HISTORY</a></h1><!-- RDLabel: "HISTORY" -->
20
33
  <pre>2005/05/17 S Takehiro (created)
21
34
  2005/07/15 S Takehiro (open_gturl method is used for opening gphys variable)
22
35
  2005/08/10 S Takehiro (utilize internal function for printing help message)
23
36
  2005/08/21 S Takehiro (global attributes copied to the output file)
24
- 2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)</pre>
37
+ 2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
38
+ 2010/03/10 Y SASAKI (change help block into RD format)
39
+ 2012/02/19 S Takehiro (description for gturl format updated)</pre>
25
40
 
26
41
  </body>
27
42
  </html>
@@ -7,10 +7,10 @@
7
7
  <title>../lib/numru/gphys/gphys.rb</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label:0" id="label:0">class NumRu::GPhys</a></h1><!-- RDLabel: "class NumRu::GPhys" -->
11
- <h2><a name="label:1" id="label:1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
10
+ <h1><a name="label-0" id="label-0">class NumRu::GPhys</a></h1><!-- RDLabel: "class NumRu::GPhys" -->
11
+ <h2><a name="label-1" id="label-1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
12
12
  <dl>
13
- <dt><h4><a name="label:2" id="label:2"><code>GPhys.new(<var>grid</var>, <var>data</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.new" -->
13
+ <dt><h4><a name="label-2" id="label-2"><code>GPhys.new(<var>grid</var>, <var>data</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.new" -->
14
14
  <dd>
15
15
  <p>Constructor.</p>
16
16
  <p>ARGUMENTS</p>
@@ -27,7 +27,7 @@
27
27
  <ul>
28
28
  <li>the arguments are NOT duplicated to construct a GPhys.</li>
29
29
  </ul></dd>
30
- <dt><h4><a name="label:3" id="label:3"><code>GPhys.each_along_dims(<var>gphyses</var>, *<var>loopdims</var>){...} # <var>a</var> <var>block</var> <var>is</var> <var>expected</var></code></a></h4></dt><!-- RDLabel: "GPhys.each_along_dims" -->
30
+ <dt><h4><a name="label-3" id="label-3"><code>GPhys.each_along_dims(<var>gphyses</var>, *<var>loopdims</var>){...} # <var>a</var> <var>block</var> <var>is</var> <var>expected</var></code></a></h4></dt><!-- RDLabel: "GPhys.each_along_dims" -->
31
31
  <dd>
32
32
  <p>Iterator to process GPhys objects too big to read on memory at once.</p>
33
33
  <p>Makes a loop (loops) by dividing the GPhys object(s) (<var>gphyses</var>)
@@ -76,10 +76,83 @@ of them smaller than input data.</p>
76
76
  </ul>
77
77
  <p>USAGE</p>
78
78
  <p>See the manual of <var>GPhys::IO.each_along_dims_write</var>.</p></dd>
79
+ <dt><h4><a name="label-4" id="label-4"><code>GPhys.join_md_nocheck(<var>gpnary</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.join_md_nocheck" -->
80
+ <dd>
81
+ <p>Join multiple GPhys objects that are ordered perfectly in a NArray.</p>
82
+ <p>LIMITATION (as of 2013-03-04)</p>
83
+ <ul>
84
+ <li>joining assoc_coords is yet to be supported; Currently
85
+ assoc_coords are ignored if any.</li>
86
+ </ul>
87
+ <p>ARGUMENT</p>
88
+ <ul>
89
+ <li>gpnarray [NArray of GPhys] having the same rank with that of
90
+ its component GPhys objects. multiple GPhys objects are joined
91
+ along the dimension with multiple elements (the order is kept). </li>
92
+ </ul>
93
+ <p>RETURN VALUE</p>
94
+ <ul>
95
+ <li>a GPhys</li>
96
+ </ul></dd>
97
+ <dt><h4><a name="label-5" id="label-5"><code>GPhys.join_md(<var>gpnary</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.join_md" -->
98
+ <dd>
99
+ <p>Join multiple GPhys objects (ordered in a NArray).</p>
100
+ <p>Like GPhys.join_md_nocheck but it supports insersion
101
+ of omitted 1-element dimensions and transpose for
102
+ gpnary (the input NArray). It means that the rank of gpnary
103
+ can be smaller than that of its compoent GPhys objects, and
104
+ the order of dimensions can be arbitrary. Also,
105
+ the order of coordinate values along each dimension does not
106
+ have to be monotonic; the method supports sorting and spliting
107
+ along dimensions. For example, if gpnary == NArray.object(2):[gp0, gp1],
108
+ where the first object gp0 has the 1st coordinate [0,1,7,8] and
109
+ the second object gp1 has the 1st coordinate [3,4,5,6],
110
+ gpnary is restructured as [ gp0[0..1,false], gp1, gp0[2..3,false] ],
111
+ and join is made by using GPhys.join_md_nocheck.</p>
112
+ <p>This method is generally faster than GPhys.join unless the split
113
+ is one-dimensional.</p>
114
+ <p>ARGUMENT</p>
115
+ <ul>
116
+ <li>gpnarray [NArray of GPhys] </li>
117
+ </ul>
118
+ <p>RETURN VALUE</p>
119
+ <ul>
120
+ <li>a GPhys</li>
121
+ </ul></dd>
122
+ <dt><h4><a name="label-6" id="label-6"><code>GPhys.join(<var>gpary</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.join" -->
123
+ <dd>
124
+ <p>Join multiple GPhys objects (no need for any pre-ordering).</p>
125
+ <p>ARGUMENT</p>
126
+ <ul>
127
+ <li>gpnarray [Array (or 1D NArray) of GPhys]</li>
128
+ </ul>
129
+ <p>RETURN VALUE</p>
130
+ <ul>
131
+ <li>a GPhys</li>
132
+ </ul></dd>
133
+ <dt><h4><a name="label-7" id="label-7"><code>GPhys.concat(<var>gpary</var>, <var>axis_or_ary</var>, <var>name</var>=<var>nil</var>, <var>attr</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "GPhys.concat" -->
134
+ <dd>
135
+ <p>Concatenate an Array (or 1D NArray) of GPhys objects
136
+ along the new dimension specified by the 2nd to 4th arguments.
137
+ The rank of the result (a GPhys) is one plus the rank of
138
+ the GPhys objects.</p>
139
+ <p>ARGUMENTS</p>
140
+ <ul>
141
+ <li>gpary [1D NArray or Array of GPhys]</li>
142
+ <li>axis_or_ary [an Axis or a 1D NArray or Array of floats]</li>
143
+ <li>name [String; optional] name of the coordinate;
144
+ needed if axis_or_ary is not an Axis.</li>
145
+ <li>attr [Hash; optional] attributes of the coordinate;
146
+ used if axis_or_ary is not an Axis.</li>
147
+ </ul>
148
+ <p>RETURN VALUE</p>
149
+ <ul>
150
+ <li>a GPhys</li>
151
+ </ul></dd>
79
152
  </dl>
80
- <h2><a name="label:4" id="label:4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
153
+ <h2><a name="label-8" id="label-8">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
81
154
  <dl>
82
- <dt><h4><a name="label:5" id="label:5"><code>data</code></a></h4></dt><!-- RDLabel: "data" -->
155
+ <dt><h4><a name="label-9" id="label-9"><code>data</code></a></h4></dt><!-- RDLabel: "data" -->
83
156
  <dd>
84
157
  <p>Returns the data object</p>
85
158
  <p>RETURN VALUE</p>
@@ -90,7 +163,7 @@ of them smaller than input data.</p>
90
163
  <ul>
91
164
  <li>the data object is NOT duplicated.</li>
92
165
  </ul></dd>
93
- <dt><h4><a name="label:6" id="label:6"><code>grid_copy</code></a></h4></dt><!-- RDLabel: "grid_copy" -->
166
+ <dt><h4><a name="label-10" id="label-10"><code>grid_copy</code></a></h4></dt><!-- RDLabel: "grid_copy" -->
94
167
  <dd>
95
168
  <p>Returns a copy (deep clone) of the grid object.</p>
96
169
  <p>RETURN VALUE</p>
@@ -99,17 +172,27 @@ of them smaller than input data.</p>
99
172
  </ul>
100
173
  <p>NOTE</p>
101
174
  <ul>
102
- <li>There is a PROTECTED method grid, which returns
103
- the grid object without duplicating.</li>
175
+ <li>grid does not make a copy.</li>
176
+ </ul></dd>
177
+ <dt><h4><a name="label-11" id="label-11"><code>grid</code></a></h4></dt><!-- RDLabel: "grid" -->
178
+ <dd>
179
+ <p>Returns the grid object without copying.</p>
180
+ <p>RETURN VALUE</p>
181
+ <ul>
182
+ <li>a Grid</li>
183
+ </ul>
184
+ <p>NOTE</p>
185
+ <ul>
186
+ <li>Use grid_copy to avoid side effects</li>
104
187
  </ul></dd>
105
- <dt><h4><a name="label:7" id="label:7"><code>copy</code></a></h4></dt><!-- RDLabel: "copy" -->
188
+ <dt><h4><a name="label-12" id="label-12"><code>copy</code></a></h4></dt><!-- RDLabel: "copy" -->
106
189
  <dd>
107
190
  <p>Make a deep clone onto memory</p>
108
191
  <p>RETURN VALUE</p>
109
192
  <ul>
110
193
  <li>a GPhys</li>
111
194
  </ul></dd>
112
- <dt><h4><a name="label:8" id="label:8"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
195
+ <dt><h4><a name="label-13" id="label-13"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
113
196
  <dd>
114
197
  <p>Returns the name of the GPhys object, which is equal to the
115
198
  name of the data object in the GPhys object.</p>
@@ -117,7 +200,7 @@ name of the data object in the GPhys object.</p>
117
200
  <ul>
118
201
  <li>a String</li>
119
202
  </ul></dd>
120
- <dt><h4><a name="label:9" id="label:9"><code>name=(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "name=" -->
203
+ <dt><h4><a name="label-14" id="label-14"><code>name=(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "name=" -->
121
204
  <dd>
122
205
  <p>Set the name of the GPhys object.</p>
123
206
  <p>ARGUMENTS</p>
@@ -128,9 +211,9 @@ name of the data object in the GPhys object.</p>
128
211
  <ul>
129
212
  <li>nm (the argument)</li>
130
213
  </ul></dd>
131
- <dt><h4><a name="label:10" id="label:10"><code>rename(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename" -->
214
+ <dt><h4><a name="label-15" id="label-15"><code>rename(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename" -->
132
215
  <dd>
133
- <p>Same as <a href="#label:9">name=</a>, but self is returned.</p>
216
+ <p>Same as <a href="#label-14">name=</a>, but self is returned.</p>
134
217
  <p>ARGUMENTS</p>
135
218
  <ul>
136
219
  <li>nm (String)</li>
@@ -139,7 +222,7 @@ name of the data object in the GPhys object.</p>
139
222
  <ul>
140
223
  <li>self</li>
141
224
  </ul></dd>
142
- <dt><h4><a name="label:11" id="label:11"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
225
+ <dt><h4><a name="label-16" id="label-16"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
143
226
  <dd>
144
227
  <p>Returns data values</p>
145
228
  <p>RETURN VALUE</p>
@@ -147,7 +230,7 @@ name of the data object in the GPhys object.</p>
147
230
  <li>a NArray or NArrayMiss. It is always a copy and to write in it
148
231
  will not affect self.</li>
149
232
  </ul></dd>
150
- <dt><h4><a name="label:12" id="label:12"><code>val=(<var>v</var>)</code></a></h4></dt><!-- RDLabel: "val=" -->
233
+ <dt><h4><a name="label-17" id="label-17"><code>val=(<var>v</var>)</code></a></h4></dt><!-- RDLabel: "val=" -->
151
234
  <dd>
152
235
  <p>Writes in data values.</p>
153
236
  <p>ARGUMENTS</p>
@@ -160,9 +243,9 @@ name of the data object in the GPhys object.</p>
160
243
  </ul>
161
244
  <p>NOTE</p>
162
245
  <ul>
163
- <li>the contents of v are copied in, unlike <a href="#label:13">replace_val</a></li>
246
+ <li>the contents of v are copied in, unlike <a href="#label-18">replace_val</a></li>
164
247
  </ul></dd>
165
- <dt><h4><a name="label:13" id="label:13"><code>replace_val(<var>v</var>)</code></a></h4></dt><!-- RDLabel: "replace_val" -->
248
+ <dt><h4><a name="label-18" id="label-18"><code>replace_val(<var>v</var>)</code></a></h4></dt><!-- RDLabel: "replace_val" -->
166
249
  <dd>
167
250
  <p>Replace the data values.</p>
168
251
  <p>ARGUMENTS</p>
@@ -175,19 +258,19 @@ name of the data object in the GPhys object.</p>
175
258
  </ul>
176
259
  <p>NOTE</p>
177
260
  <ul>
178
- <li>This method is similar to <a href="#label:12">val=</a>, but
261
+ <li>This method is similar to <a href="#label-17">val=</a>, but
179
262
  the whole numeric data object is replaced with v.
180
263
  It is not very meaningful if the data is in a file:
181
264
  the file is not modified, but you just get an GPhys object on memory.</li>
182
265
  </ul></dd>
183
- <dt><h4><a name="label:14" id="label:14"><code>att_names</code></a></h4></dt><!-- RDLabel: "att_names" -->
266
+ <dt><h4><a name="label-19" id="label-19"><code>att_names</code></a></h4></dt><!-- RDLabel: "att_names" -->
184
267
  <dd>
185
268
  <p>Returns attribute names of the data object.</p>
186
269
  <p>RETURN VALUE</p>
187
270
  <ul>
188
271
  <li>Array of String</li>
189
272
  </ul></dd>
190
- <dt><h4><a name="label:15" id="label:15"><code>get_att(<var>name</var>)</code></a></h4></dt><!-- RDLabel: "get_att" -->
273
+ <dt><h4><a name="label-20" id="label-20"><code>get_att(<var>name</var>)</code></a></h4></dt><!-- RDLabel: "get_att" -->
191
274
  <dd>
192
275
  <p>Get the value of the attribute named name.</p>
193
276
  <p>ARGUMENTS</p>
@@ -198,8 +281,8 @@ name of the data object in the GPhys object.</p>
198
281
  <ul>
199
282
  <li>String, NArray, or nil</li>
200
283
  </ul></dd>
201
- <dt><h4><a name="label:16" id="label:16"><code>set_att(<var>name</var>, <var>val</var>)</code></a><!-- RDLabel: "set_att" -->
202
- <dt><h4><a name="label:17" id="label:17"><code>put_att(<var>name</var>, <var>val</var>)</code></a></h4></dt><!-- RDLabel: "put_att" -->
284
+ <dt><h4><a name="label-21" id="label-21"><code>set_att(<var>name</var>, <var>val</var>)</code></a></h4></dt><!-- RDLabel: "set_att" -->
285
+ <dt><h4><a name="label-22" id="label-22"><code>put_att(<var>name</var>, <var>val</var>)</code></a></h4></dt><!-- RDLabel: "put_att" -->
203
286
  <dd>
204
287
  <p>Set an attribute of the data object</p>
205
288
  <p>ARGUMENTS</p>
@@ -211,7 +294,7 @@ name of the data object in the GPhys object.</p>
211
294
  <ul>
212
295
  <li>self</li>
213
296
  </ul></dd>
214
- <dt><h4><a name="label:18" id="label:18"><code>del_att(<var>name</var>)</code></a></h4></dt><!-- RDLabel: "del_att" -->
297
+ <dt><h4><a name="label-23" id="label-23"><code>del_att(<var>name</var>)</code></a></h4></dt><!-- RDLabel: "del_att" -->
215
298
  <dd>
216
299
  <p>Delete an attribute of the data object.</p>
217
300
  <p>ARGUMENTS</p>
@@ -222,7 +305,7 @@ name of the data object in the GPhys object.</p>
222
305
  <ul>
223
306
  <li>self</li>
224
307
  </ul></dd>
225
- <dt><h4><a name="label:19" id="label:19"><code>ntype</code></a></h4></dt><!-- RDLabel: "ntype" -->
308
+ <dt><h4><a name="label-24" id="label-24"><code>ntype</code></a></h4></dt><!-- RDLabel: "ntype" -->
226
309
  <dd>
227
310
  <p>Returns the numeric type of the data object.</p>
228
311
  <p>RETURN VALUE</p>
@@ -231,9 +314,9 @@ name of the data object in the GPhys object.</p>
231
314
  </ul>
232
315
  <p>NOTE</p>
233
316
  <ul>
234
- <li>See also <a href="#label:20">typecode</a>.</li>
317
+ <li>See also <a href="#label-25">typecode</a>.</li>
235
318
  </ul></dd>
236
- <dt><h4><a name="label:20" id="label:20"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
319
+ <dt><h4><a name="label-25" id="label-25"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
237
320
  <dd>
238
321
  <p>Returns the numeric type of the data object.</p>
239
322
  <p>RETURN VALUE</p>
@@ -242,16 +325,16 @@ name of the data object in the GPhys object.</p>
242
325
  </ul>
243
326
  <p>NOTE</p>
244
327
  <ul>
245
- <li>See also <a href="#label:19">ntype</a>.</li>
328
+ <li>See also <a href="#label-24">ntype</a>.</li>
246
329
  </ul></dd>
247
- <dt><h4><a name="label:21" id="label:21"><code>units</code></a></h4></dt><!-- RDLabel: "units" -->
330
+ <dt><h4><a name="label-26" id="label-26"><code>units</code></a></h4></dt><!-- RDLabel: "units" -->
248
331
  <dd>
249
332
  <p>Returns the units of the data object</p>
250
333
  <p>RETURN VALUE</p>
251
334
  <ul>
252
335
  <li>a Units</li>
253
336
  </ul></dd>
254
- <dt><h4><a name="label:22" id="label:22"><code>units=(<var>units</var>)</code></a></h4></dt><!-- RDLabel: "units=" -->
337
+ <dt><h4><a name="label-27" id="label-27"><code>units=(<var>units</var>)</code></a></h4></dt><!-- RDLabel: "units=" -->
255
338
  <dd>
256
339
  <p>Changes the units of the data object</p>
257
340
  <p>ARGUMENTS</p>
@@ -262,7 +345,7 @@ name of the data object in the GPhys object.</p>
262
345
  <ul>
263
346
  <li>units (the argument)</li>
264
347
  </ul></dd>
265
- <dt><h4><a name="label:23" id="label:23"><code>convert_units(<var>to</var>)</code></a></h4></dt><!-- RDLabel: "convert_units" -->
348
+ <dt><h4><a name="label-28" id="label-28"><code>convert_units(<var>to</var>)</code></a></h4></dt><!-- RDLabel: "convert_units" -->
266
349
  <dd>
267
350
  <p>Convert the units of the data object</p>
268
351
  <p>ARGUMENTS</p>
@@ -273,14 +356,14 @@ name of the data object in the GPhys object.</p>
273
356
  <ul>
274
357
  <li>a GPhys</li>
275
358
  </ul></dd>
276
- <dt><h4><a name="label:24" id="label:24"><code>long_name</code></a></h4></dt><!-- RDLabel: "long_name" -->
359
+ <dt><h4><a name="label-29" id="label-29"><code>long_name</code></a></h4></dt><!-- RDLabel: "long_name" -->
277
360
  <dd>
278
361
  <p>Returns the "long_name" attribute the data object</p>
279
362
  <p>RETURN VALUE</p>
280
363
  <ul>
281
364
  <li>a String</li>
282
365
  </ul></dd>
283
- <dt><h4><a name="label:25" id="label:25"><code>long_name=(<var>to</var>)</code></a></h4></dt><!-- RDLabel: "long_name=" -->
366
+ <dt><h4><a name="label-30" id="label-30"><code>long_name=(<var>to</var>)</code></a></h4></dt><!-- RDLabel: "long_name=" -->
284
367
  <dd>
285
368
  <p>Changes/sets the "long_name" attribute the data object</p>
286
369
  <p>ARGUMENTS</p>
@@ -291,7 +374,7 @@ name of the data object in the GPhys object.</p>
291
374
  <ul>
292
375
  <li>to (the argument)</li>
293
376
  </ul></dd>
294
- <dt><h4><a name="label:26" id="label:26"><code>[]</code></a></h4></dt><!-- RDLabel: "[]" -->
377
+ <dt><h4><a name="label-31" id="label-31"><code>[]</code></a></h4></dt><!-- RDLabel: "[]" -->
295
378
  <dd>
296
379
  <p>Returns a subset.</p>
297
380
  <p>ARGUMENTS</p>
@@ -302,19 +385,19 @@ name of the data object in the GPhys object.</p>
302
385
  <ul>
303
386
  <li>a GPhys</li>
304
387
  </ul></dd>
305
- <dt><h4><a name="label:27" id="label:27"><code>[] = </code></a></h4></dt><!-- RDLabel: "[]=" -->
388
+ <dt><h4><a name="label-32" id="label-32"><code>[] = </code></a></h4></dt><!-- RDLabel: "[]=" -->
306
389
  <dd>
307
390
  <p>Sets values of a subset</p>
308
391
  <p>RETURN VALUE</p>
309
392
  <ul>
310
393
  <li>the data object on the rhs</li>
311
394
  </ul></dd>
312
- <dt><h4><a name="label:28" id="label:28"><code>cut</code></a></h4></dt><!-- RDLabel: "cut" -->
395
+ <dt><h4><a name="label-33" id="label-33"><code>cut</code></a></h4></dt><!-- RDLabel: "cut" -->
313
396
  <dd>
314
- <p>Similar to <a href="#label:26">[]</a>, but the subset is specified by physical coordinate.</p>
397
+ <p>Similar to <a href="#label-31">[]</a>, but the subset is specified by physical coordinate.</p>
315
398
  <p>ARGUMENTS</p>
316
399
  <ul>
317
- <li>pattern 1: similar to those for <a href="#label:26">[]</a>, where the first
400
+ <li>pattern 1: similar to those for <a href="#label-31">[]</a>, where the first
318
401
  argument specifies a subset for the first dimension.</li>
319
402
  <li>pattern 2: by a Hash, in which keys are axis names.</li>
320
403
  </ul>
@@ -329,25 +412,25 @@ name of the data object in the GPhys object.</p>
329
412
  <ul>
330
413
  <li>a GPhys</li>
331
414
  </ul></dd>
332
- <dt><h4><a name="label:29" id="label:29"><code>cut_rank_conserving</code></a></h4></dt><!-- RDLabel: "cut_rank_conserving" -->
415
+ <dt><h4><a name="label-34" id="label-34"><code>cut_rank_conserving</code></a></h4></dt><!-- RDLabel: "cut_rank_conserving" -->
333
416
  <dd>
334
- <p>Similar to <a href="#label:28">cut</a>, but the rank is conserved by not eliminating
335
- any dimension (whose length could be one).</p></dd>
336
- <dt><h4><a name="label:30" id="label:30"><code>axnames</code></a></h4></dt><!-- RDLabel: "axnames" -->
417
+ Similar to <a href="#label-33">cut</a>, but the rank is conserved by not eliminating
418
+ any dimension (whose length could be one).</dd>
419
+ <dt><h4><a name="label-35" id="label-35"><code>axnames</code></a></h4></dt><!-- RDLabel: "axnames" -->
337
420
  <dd>
338
421
  <p>Returns the names of the axes</p>
339
422
  <p>RETURN VALUE</p>
340
423
  <ul>
341
424
  <li>an Array of String</li>
342
425
  </ul></dd>
343
- <dt><h4><a name="label:31" id="label:31"><code>rank</code></a></h4></dt><!-- RDLabel: "rank" -->
426
+ <dt><h4><a name="label-36" id="label-36"><code>rank</code></a></h4></dt><!-- RDLabel: "rank" -->
344
427
  <dd>
345
428
  <p>Returns the rank</p>
346
429
  <p>RETURN VALUE</p>
347
430
  <ul>
348
431
  <li>an Integer</li>
349
432
  </ul></dd>
350
- <dt><h4><a name="label:32" id="label:32"><code>axis(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "axis" -->
433
+ <dt><h4><a name="label-37" id="label-37"><code>axis(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "axis" -->
351
434
  <dd>
352
435
  <p>Returns the Axis object of a dimension.</p>
353
436
  <p>ARGEMENTS</p>
@@ -358,8 +441,8 @@ any dimension (whose length could be one).</p></dd>
358
441
  <ul>
359
442
  <li>an Axis</li>
360
443
  </ul></dd>
361
- <dt><h4><a name="label:33" id="label:33"><code>coord(<var>dim</var>)</code></a><!-- RDLabel: "coord" -->
362
- <dt><h4><a name="label:34" id="label:34"><code>coordinate(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "coordinate" -->
444
+ <dt><h4><a name="label-38" id="label-38"><code>coord(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "coord" -->
445
+ <dt><h4><a name="label-39" id="label-39"><code>coordinate(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "coordinate" -->
363
446
  <dd>
364
447
  <p>Returns the coordinate variable</p>
365
448
  <p>ARGUMENTS</p>
@@ -374,7 +457,7 @@ any dimension (whose length could be one).</p></dd>
374
457
  <ul>
375
458
  <li>coord(dim) is equivalent to axis(dim).pos</li>
376
459
  </ul></dd>
377
- <dt><h4><a name="label:35" id="label:35"><code>lost_axes</code></a></h4></dt><!-- RDLabel: "lost_axes" -->
460
+ <dt><h4><a name="label-40" id="label-40"><code>lost_axes</code></a></h4></dt><!-- RDLabel: "lost_axes" -->
378
461
  <dd>
379
462
  <p>Returns info on axes eliminated during operations.</p>
380
463
  <p>Useful for annotation in plots, for example (See the code of GGraph
@@ -383,7 +466,7 @@ for an application).</p>
383
466
  <ul>
384
467
  <li>an Array of String</li>
385
468
  </ul></dd>
386
- <dt><h4><a name="label:36" id="label:36"><code>dim_index( <var>dimname</var> )</code></a></h4></dt><!-- RDLabel: "dim_index" -->
469
+ <dt><h4><a name="label-41" id="label-41"><code>dim_index( <var>dimname</var> )</code></a></h4></dt><!-- RDLabel: "dim_index" -->
387
470
  <dd>
388
471
  <p>Returns the integer id (count from zero) of the dimension</p>
389
472
  <p>ARGUMENT</p>
@@ -394,7 +477,7 @@ for an application).</p>
394
477
  <ul>
395
478
  <li>an Integer</li>
396
479
  </ul></dd>
397
- <dt><h4><a name="label:37" id="label:37"><code>integrate(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "integrate" -->
480
+ <dt><h4><a name="label-42" id="label-42"><code>integrate(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "integrate" -->
398
481
  <dd>
399
482
  <p>Integration along a dimension.</p>
400
483
  <p>RETURN VALUE</p>
@@ -405,7 +488,7 @@ for an application).</p>
405
488
  <ul>
406
489
  <li>Algorithm implementation is done in Axis class.</li>
407
490
  </ul></dd>
408
- <dt><h4><a name="label:38" id="label:38"><code>average(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "average" -->
491
+ <dt><h4><a name="label-43" id="label-43"><code>average(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "average" -->
409
492
  <dd>
410
493
  <p>Averaging along a dimension.</p>
411
494
  <p>RETURN VALUE</p>
@@ -416,7 +499,26 @@ for an application).</p>
416
499
  <ul>
417
500
  <li>Algorithm implementation is done in Axis class.</li>
418
501
  </ul></dd>
419
- <dt><h4><a name="label:39" id="label:39"><code>first1D</code></a></h4></dt><!-- RDLabel: "first1D" -->
502
+ <dt><h4><a name="label-44" id="label-44"><code>eddy(*<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "eddy" -->
503
+ <dd>
504
+ <p>Deviation from mean</p>
505
+ <p>ARGUMENT</p>
506
+ <ul>
507
+ <li>a list of dimensions (including none) [Integer or String] along which
508
+ the mean is taken.</li>
509
+ </ul>
510
+ <p>RETURN VALUE</p>
511
+ <ul>
512
+ <li>a GPhys</li>
513
+ </ul>
514
+ <p>NOTE</p>
515
+ <ul>
516
+ <li><p>Simply defined as</p>
517
+ <pre>def eddy(*dim)
518
+ self - self.mean(*dim)
519
+ end</pre></li>
520
+ </ul></dd>
521
+ <dt><h4><a name="label-45" id="label-45"><code>first1D</code></a></h4></dt><!-- RDLabel: "first1D" -->
420
522
  <dd>
421
523
  <p>Returns a 1D subset selecting the first elements of 2nd, 3rd, ..
422
524
  dimensions, i.e., self[true, 0, 0, ...]. (For graphics)</p>
@@ -428,7 +530,7 @@ dimensions, i.e., self[true, 0, 0, ...]. (For graphics)</p>
428
530
  <ul>
429
531
  <li>a GPhys</li>
430
532
  </ul></dd>
431
- <dt><h4><a name="label:40" id="label:40"><code>first2D</code></a></h4></dt><!-- RDLabel: "first2D" -->
533
+ <dt><h4><a name="label-46" id="label-46"><code>first2D</code></a></h4></dt><!-- RDLabel: "first2D" -->
432
534
  <dd>
433
535
  <p>Returns a 2D subset selecting the first elements of 3rd, 4th, ..
434
536
  dimensions, i.e., self[true, true, 0, 0, ...]. (For graphics)</p>
@@ -440,13 +542,31 @@ dimensions, i.e., self[true, true, 0, 0, ...]. (For graphics)</p>
440
542
  <ul>
441
543
  <li>a GPhys</li>
442
544
  </ul></dd>
443
- <dt><h4><a name="label:41" id="label:41"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
545
+ <dt><h4><a name="label-47" id="label-47"><code>first3D</code></a></h4></dt><!-- RDLabel: "first3D" -->
546
+ <dd>
547
+ <p>Returns a 3D subset selecting the first elements of 4th, 5th, ..
548
+ dimensions, i.e., self[true, true, true, 0, ...]. (For graphics)</p>
549
+ <p>ARGUMENTS</p>
550
+ <ul>
551
+ <li>(none)</li>
552
+ </ul>
553
+ <p>RETURN VALUE</p>
554
+ <ul>
555
+ <li>a GPhys</li>
556
+ </ul></dd>
557
+ <dt><h4><a name="label-48" id="label-48"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
558
+ <dd>
559
+ <var>You know what it is.</var></dd>
560
+ <dt><h4><a name="label-49" id="label-49"><code>shape_coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "shape_coerce" -->
444
561
  <dd>
445
- <p><var>You know what it is.</var></p></dd>
446
- <dt><h4><a name="label:42" id="label:42"><code>shape_coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "shape_coerce" -->
562
+ Like <a href="#label-48">coerce</a>, but just changes shape without changing numeric type
563
+ by possibly inserting dimensions whose lengths are one (i.e.,
564
+ without changeing the total length of data).</dd>
565
+ <dt><h4><a name="label-50" id="label-50"><code>shape_coerce_full(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "shape_coerce_full" -->
447
566
  <dd>
448
- <p>Like <a href="#label:41">coerce</a>, but just changes shape without changing numeric type.</p></dd>
449
- <dt><h4><a name="label:43" id="label:43"><code>transpose(*<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "transpose" -->
567
+ Similar to <a href="#label-49">shape_coerce</a> but to return the gphyses having
568
+ really the same shape with possible expansion by replication.</dd>
569
+ <dt><h4><a name="label-51" id="label-51"><code>transpose(*<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "transpose" -->
450
570
  <dd>
451
571
  <p>Transpose.</p>
452
572
  <p>ARGUMENTS</p>
@@ -458,17 +578,17 @@ dimensions, i.e., self[true, true, 0, 0, ...]. (For graphics)</p>
458
578
  <ul>
459
579
  <li>a GPhys</li>
460
580
  </ul></dd>
461
- <dt><h4><a name="label:44" id="label:44"><code>shape_current</code></a></h4></dt><!-- RDLabel: "shape_current" -->
581
+ <dt><h4><a name="label-52" id="label-52"><code>shape_current</code></a></h4></dt><!-- RDLabel: "shape_current" -->
462
582
  <dd>
463
583
  <p>Returns the current shape of the GPhys object.</p>
464
584
  <p>RETURN VALUE</p>
465
585
  <ul>
466
586
  <li>an Array of Integer</li>
467
587
  </ul></dd>
468
- <dt><h4><a name="label:45" id="label:45"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
588
+ <dt><h4><a name="label-53" id="label-53"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
469
589
  <dd>
470
- <p>Aliased to <a href="#label:44">shape_current</a></p></dd>
471
- <dt><h4><a name="label:46" id="label:46"><code>cyclic_ext(<var>dim_or_dimname</var>, <var>modulo</var>)</code></a></h4></dt><!-- RDLabel: "cyclic_ext" -->
590
+ Aliased to <a href="#label-52">shape_current</a></dd>
591
+ <dt><h4><a name="label-54" id="label-54"><code>cyclic_ext(<var>dim_or_dimname</var>, <var>modulo</var>)</code></a></h4></dt><!-- RDLabel: "cyclic_ext" -->
472
592
  <dd>
473
593
  <p>Extend a dimension cyclically.</p>
474
594
  <p>The extension is done only when adding one grid point makes a full circle.
@@ -485,17 +605,21 @@ the same modulo: in this case, self is returned.</p>
485
605
  <li>a GPhys (possibly self)</li>
486
606
  </ul></dd>
487
607
  </dl>
488
- <h3><a name="label:47" id="label:47">Math functions (instance methods)</a></h3><!-- RDLabel: "Math functions (instance methods)" -->
489
- <h4><a name="label:48" id="label:48">sqrt, exp, log, log10, log2, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh, csc, sec, cot, csch, sech, coth, acsc, asec, acot, acsch, asech, acoth</a></h4><!-- RDLabel: "sqrt, exp, log, log10, log2, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh, csc, sec, cot, csch, sech, coth, acsc, asec, acot, acsch, asech, acoth" -->
490
- <h3><a name="label:49" id="label:49">Binary operators</a></h3><!-- RDLabel: "Binary operators" -->
491
- <h4><a name="label:50" id="label:50">-, +, *, /, %, **, .add!, .sub!, .mul!, .div!, mod!, &gt;, &gt;=, &lt;, &lt;=, &amp;, |, ^, .eq, .ne, .gt, .ge, .lt, .le, .and, .or, .xor, .not</a></h4><!-- RDLabel: "-, +, *, /, %, **, .add!, .sub!, .mul!, .div!, mod!, >, >=, <, <=, &, |, ^, .eq, .ne, .gt, .ge, .lt, .le, .and, .or, .xor, .not" -->
492
- <h3><a name="label:51" id="label:51">Unary operators</a></h3><!-- RDLabel: "Unary operators" -->
493
- <h4><a name="label:52" id="label:52">~ - +</a></h4><!-- RDLabel: "~ - +" -->
494
- <h3><a name="label:53" id="label:53">Mean etc (instance methods)</a></h3><!-- RDLabel: "Mean etc (instance methods)" -->
495
- <h4><a name="label:54" id="label:54">mean, sum, stddev, min, max, median</a></h4><!-- RDLabel: "mean, sum, stddev, min, max, median" -->
496
- <h3><a name="label:55" id="label:55">Other instance methods</a></h3><!-- RDLabel: "Other instance methods" -->
608
+ <h3><a name="label-55" id="label-55">Math functions (instance methods)</a></h3><!-- RDLabel: "Math functions (instance methods)" -->
609
+ <h4><a name="label-56" id="label-56">sqrt, exp, log, log10, log2, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh, csc, sec, cot, csch, sech, coth, acsc, asec, acot, acsch, asech, acoth</a></h4><!-- RDLabel: "sqrt, exp, log, log10, log2, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh, csc, sec, cot, csch, sech, coth, acsc, asec, acot, acsch, asech, acoth" -->
610
+ <h3><a name="label-57" id="label-57">Binary operators</a></h3><!-- RDLabel: "Binary operators" -->
611
+ <h4><a name="label-58" id="label-58">-, +, *, /, %, **, .add!, .sub!, .mul!, .div!, mod!, &gt;, &gt;=, &lt;, &lt;=, &amp;, |, ^, .eq, .ne, .gt, .ge, .lt, .le, .and, .or, .xor, .not</a></h4><!-- RDLabel: "-, +, *, /, %, **, .add!, .sub!, .mul!, .div!, mod!, >, >=, <, <=, &, |, ^, .eq, .ne, .gt, .ge, .lt, .le, .and, .or, .xor, .not" -->
612
+ <h3><a name="label-59" id="label-59">Unary operators</a></h3><!-- RDLabel: "Unary operators" -->
613
+ <h4><a name="label-60" id="label-60">~ - +</a></h4><!-- RDLabel: "~ - +" -->
614
+ <h3><a name="label-61" id="label-61">Mean etc (instance methods)</a></h3><!-- RDLabel: "Mean etc (instance methods)" -->
615
+ <h4><a name="label-62" id="label-62">mean, sum, stddev, min, max, median</a></h4><!-- RDLabel: "mean, sum, stddev, min, max, median" -->
616
+ <h3><a name="label-63" id="label-63">Other instance methods</a></h3><!-- RDLabel: "Other instance methods" -->
497
617
  <p>These methods returns a NArray (not a GPhys).</p>
498
- <h4><a name="label:56" id="label:56">all?, any?, none?, where, where2, floor, ceil, round, to_f, to_i, to_a</a></h4><!-- RDLabel: "all?, any?, none?, where, where2, floor, ceil, round, to_f, to_i, to_a" -->
618
+ <h4><a name="label-64" id="label-64">all?, any?, none?, where, where2, floor, ceil, round, to_f, to_i, to_a</a></h4><!-- RDLabel: "all?, any?, none?, where, where2, floor, ceil, round, to_f, to_i, to_a" -->
619
+ <pre>gp00.set_assoc_coords([GPhys.new(Grid.new(xax0,yax0),VArray.new(x,nil,"A"))])
620
+ gp10.set_assoc_coords([GPhys.new(Grid.new(xax1,yax0),VArray.new(x,nil,"A"))])
621
+ gp01.set_assoc_coords([GPhys.new(Grid.new(xax0,yax1),VArray.new(x,nil,"A"))])
622
+ gp11.set_assoc_coords([GPhys.new(Grid.new(xax1,yax1),VArray.new(x,nil,"A"))])</pre>
499
623
 
500
624
  </body>
501
625
  </html>