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,22 +7,22 @@
7
7
  <title>../lib/numru/gphys/netcdf_convention.rb</title>
8
8
  </head>
9
9
  <body>
10
- <h2><a name="label:0" id="label:0">INDEX</a></h2><!-- RDLabel: "INDEX" -->
10
+ <h2><a name="label-0" id="label-0">INDEX</a></h2><!-- RDLabel: "INDEX" -->
11
11
  <ul>
12
- <li><a href="#label:1">module NumRu::NetCDF_Conventions</a></li>
13
- <li><a href="#label:6">module NumRu::NetCDF_Convention_Users_Guide</a>
12
+ <li><a href="#label-1">module NumRu::NetCDF_Conventions</a></li>
13
+ <li><a href="#label-6">module NumRu::NetCDF_Convention_Users_Guide</a>
14
14
  <ul>
15
- <li><a href="#label:15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a></li>
16
- <li><a href="#label:18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a></li>
15
+ <li><a href="#label-15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a></li>
16
+ <li><a href="#label-18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a></li>
17
17
  </ul></li>
18
- <li><a href="#label:20">module NumRu::NetCDF_Convention_Wind_Profiler</a></li>
18
+ <li><a href="#label-20">module NumRu::NetCDF_Convention_Wind_Profiler</a></li>
19
19
  </ul>
20
- <h1><a name="label:1" id="label:1">module NumRu::NetCDF_Conventions</a></h1><!-- RDLabel: "module NumRu::NetCDF_Conventions" -->
20
+ <h1><a name="label-1" id="label-1">module NumRu::NetCDF_Conventions</a></h1><!-- RDLabel: "module NumRu::NetCDF_Conventions" -->
21
21
  <p>NetCDF_Conventions is the general handler of NetCDF conventions for the
22
22
  GPhys library.</p>
23
- <h2><a name="label:2" id="label:2">Module Functions</a></h2><!-- RDLabel: "Module Functions" -->
23
+ <h2><a name="label-2" id="label-2">Module Functions</a></h2><!-- RDLabel: "Module Functions" -->
24
24
  <dl>
25
- <dt><h4><a name="label:3" id="label:3"><code>find( <var>netcdf</var> )</code></a></h4></dt><!-- RDLabel: "find" -->
25
+ <dt><h4><a name="label-3" id="label-3"><code>find( <var>netcdf</var> )</code></a></h4></dt><!-- RDLabel: "find" -->
26
26
  <dd>
27
27
  <p>Figures out what NetCDF convention a netcdf file is following.</p>
28
28
  <p>ARGUMENTS</p>
@@ -36,11 +36,11 @@ GPhys library.</p>
36
36
  <p>REMARK</p>
37
37
  <ul>
38
38
  <li>The convention is figured out from the 'Conventions' global attribute.
39
- You can instead fix the convention by using <a href="#label:4">fix_to</a>.</li>
39
+ You can instead fix the convention by using <a href="#label-4">fix_to</a>.</li>
40
40
  </ul></dd>
41
- <dt><h4><a name="label:4" id="label:4"><code>fix_to( <var>convention</var> )</code></a></h4></dt><!-- RDLabel: "fix_to" -->
41
+ <dt><h4><a name="label-4" id="label-4"><code>fix_to( <var>convention</var> )</code></a></h4></dt><!-- RDLabel: "fix_to" -->
42
42
  <dd>
43
- <p>Fix the convention to be returned by <a href="#label:3">find</a> regardless the value
43
+ <p>Fix the convention to be returned by <a href="#label-3">find</a> regardless the value
44
44
  of the 'Conventions' attribute.</p>
45
45
  <p>ARGUMENTS</p>
46
46
  <ul>
@@ -50,7 +50,7 @@ of the 'Conventions' attribute.</p>
50
50
  <ul>
51
51
  <li>convention</li>
52
52
  </ul></dd>
53
- <dt><h4><a name="label:5" id="label:5"><code>add_history(<var>netcdf</var>, <var>str</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "add_history" -->
53
+ <dt><h4><a name="label-5" id="label-5"><code>add_history(<var>netcdf</var>, <var>str</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "add_history" -->
54
54
  <dd>
55
55
  <p>Adds a line to the 'history' global convention of <var>netcdf</var>.
56
56
  The line consists of date, time, user name, and <var>str</var>
@@ -61,26 +61,26 @@ if present (e.g., '2004-03-02 17:52:25 JST horinout&gt; '+str).</p>
61
61
  <li><var>str</var> (nil or String): if present, added to the end of the line.</li>
62
62
  </ul></dd>
63
63
  </dl>
64
- <h1><a name="label:6" id="label:6">module NumRu::NetCDF_Convention_Users_Guide</a></h1><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide" -->
64
+ <h1><a name="label-6" id="label-6">module NumRu::NetCDF_Convention_Users_Guide</a></h1><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide" -->
65
65
  <p>The NetCDF Users Guide Convention
66
66
  (http://www.unidata.ucar.edu/packages/netcdf/docs.html).</p>
67
- <h2><a name="label:7" id="label:7">Constants</a></h2><!-- RDLabel: "Constants" -->
67
+ <h2><a name="label-7" id="label-7">Constants</a></h2><!-- RDLabel: "Constants" -->
68
68
  <dl>
69
- <dt><h4><a name="label:8" id="label:8"><code>Attribute_Mixin</code></a><!-- RDLabel: "Attribute_Mixin" -->
69
+ <dt><h4><a name="label-8" id="label-8"><code>Attribute_Mixin</code></a></h4></dt><!-- RDLabel: "Attribute_Mixin" -->
70
70
  </dl>
71
- <p>See below: <a href="#label:15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a>.</p>
71
+ <p>See below: <a href="#label-15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a>.</p>
72
72
  <dl>
73
- <dt><h4><a name="label:9" id="label:9"><code>VArray_Mixin</code></a><!-- RDLabel: "VArray_Mixin" -->
73
+ <dt><h4><a name="label-9" id="label-9"><code>VArray_Mixin</code></a></h4></dt><!-- RDLabel: "VArray_Mixin" -->
74
74
  </dl>
75
- <p>See below: <a href="#label:18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a>.</p>
76
- <h2><a name="label:10" id="label:10">Module Functions</a></h2><!-- RDLabel: "Module Functions" -->
75
+ <p>See below: <a href="#label-18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a>.</p>
76
+ <h2><a name="label-10" id="label-10">Module Functions</a></h2><!-- RDLabel: "Module Functions" -->
77
77
  <dl>
78
- <dt><h4><a name="label:11" id="label:11"><code>to_s</code></a></h4></dt><!-- RDLabel: "to_s" -->
78
+ <dt><h4><a name="label-11" id="label-11"><code>to_s</code></a></h4></dt><!-- RDLabel: "to_s" -->
79
79
  <dd>
80
- <p>Returns a string to be used as representing the convention.
80
+ Returns a string to be used as representing the convention.
81
81
  The Users Guide Convention does not have one, so a string
82
- was tentatively assigned by Horinouchi.</p></dd>
83
- <dt><h4><a name="label:12" id="label:12"><code>coord_var_names(<var>ncvar</var>)</code></a></h4></dt><!-- RDLabel: "coord_var_names" -->
82
+ was tentatively assigned by Horinouchi.</dd>
83
+ <dt><h4><a name="label-12" id="label-12"><code>coord_var_names(<var>ncvar</var>)</code></a></h4></dt><!-- RDLabel: "coord_var_names" -->
84
84
  <dd>
85
85
  <p>Returns the names of coordinate variables for all the dimensions
86
86
  of <var>ncvar</var>.</p>
@@ -92,25 +92,25 @@ of <var>ncvar</var>.</p>
92
92
  <ul>
93
93
  <li>Array of strings, whose length is the rank of <var>ncvar</var>.</li>
94
94
  </ul></dd>
95
- <dt><h4><a name="label:13" id="label:13"><code>cell_bounds?(<var>coord_var</var>)</code></a></h4></dt><!-- RDLabel: "cell_bounds?" -->
95
+ <dt><h4><a name="label-13" id="label-13"><code>cell_bounds?(<var>coord_var</var>)</code></a></h4></dt><!-- RDLabel: "cell_bounds?" -->
96
96
  <dd>
97
- <p>Document to be written. (returns false&amp;nil in this convention.)
98
- Might be reorganized in future when the gtool4 convention is supported.</p></dd>
99
- <dt><h4><a name="label:14" id="label:14"><code>cell_center?(<var>coord_var</var>)</code></a></h4></dt><!-- RDLabel: "cell_center?" -->
97
+ Document to be written. (returns false&amp;nil in this convention.)
98
+ Might be reorganized in future when the gtool4 convention is supported.</dd>
99
+ <dt><h4><a name="label-14" id="label-14"><code>cell_center?(<var>coord_var</var>)</code></a></h4></dt><!-- RDLabel: "cell_center?" -->
100
100
  <dd>
101
- <p>Document to be written. (returns false&amp;nil in this convention.)
102
- Might be reorganized in future when the gtool4 convention is supported.</p></dd>
101
+ Document to be written. (returns false&amp;nil in this convention.)
102
+ Might be reorganized in future when the gtool4 convention is supported.</dd>
103
103
  </dl>
104
104
  <p>--------------------------------------------------</p>
105
- <h2><a name="label:15" id="label:15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a></h2><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin" -->
105
+ <h2><a name="label-15" id="label-15">module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin</a></h2><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide::Attribute_Mixin" -->
106
106
  <p>The module to be mixed in NumRu::AttributeNetCDF.</p>
107
- <h3><a name="label:16" id="label:16">Instance Methods </a></h3><!-- RDLabel: "Instance Methods " -->
107
+ <h3><a name="label-16" id="label-16">Instance Methods</a></h3><!-- RDLabel: "Instance Methods" -->
108
108
  <p>Methods below will become sigular methods of NumRu::AttributeNetCDF.</p>
109
109
  <dl>
110
- <dt><h4><a name="label:17" id="label:17"><code>copy(<var>to</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "copy" -->
110
+ <dt><h4><a name="label-17" id="label-17"><code>copy(<var>to</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "copy" -->
111
111
  <dd>
112
- <p>Same as super (the one overridden by this method),
113
- but edits some standard attributes if to is nil (copy onto memory)):</p>
112
+ Same as super (the one overridden by this method),
113
+ but edits some standard attributes if to is nil (copy onto memory)):
114
114
  <ul>
115
115
  <li>scale_factor, add_offset: removed, since data copying includes
116
116
  "unpaking" by interpreting them</li>
@@ -119,17 +119,17 @@ but edits some standard attributes if to is nil (copy onto memory)):</p>
119
119
  </ul></dd>
120
120
  </dl>
121
121
  <p>---------------------------------------------------</p>
122
- <h2><a name="label:18" id="label:18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a></h2><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin" -->
122
+ <h2><a name="label-18" id="label-18">module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin</a></h2><!-- RDLabel: "module NumRu::NetCDF_Convention_Users_Guide::VArray_Mixin" -->
123
123
  <p>The module to be mixed in NumRu::VArrayNetCDF.</p>
124
- <h3><a name="label:19" id="label:19">Instance Methods</a></h3><!-- RDLabel: "Instance Methods" -->
124
+ <h3><a name="label-19" id="label-19">Instance Methods</a></h3><!-- RDLabel: "Instance Methods" -->
125
125
  <p>Currently none, meaning is that no modification is made
126
126
  in VArrayNetCDF.</p>
127
127
  <p>---------------------------------------------------------------------</p>
128
- <h1><a name="label:20" id="label:20">module NumRu::NetCDF_Convention_Wind_Profiler</a></h1><!-- RDLabel: "module NumRu::NetCDF_Convention_Wind_Profiler" -->
128
+ <h1><a name="label-20" id="label-20">module NumRu::NetCDF_Convention_Wind_Profiler</a></h1><!-- RDLabel: "module NumRu::NetCDF_Convention_Wind_Profiler" -->
129
129
  <p>The Wind Profiler convention
130
130
  (http://www.kurasc.kyoto-u.ac.jp/radar-group/wind_profiler_conventions/).</p>
131
131
  <p>Inherits NetCDF_Convention_Users_Guide and makes appropriate redefinitions.
132
- See <a href="#label:6">module NumRu::NetCDF_Convention_Users_Guide</a> for the description
132
+ See <a href="#label-6">module NumRu::NetCDF_Convention_Users_Guide</a> for the description
133
133
  of constants and module functions.</p>
134
134
 
135
135
  </body>
@@ -7,14 +7,14 @@
7
7
  <title>../lib/numru/gphys/unumeric.rb</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label:0" id="label:0">class NumRu::UNumeric</a></h1><!-- RDLabel: "class NumRu::UNumeric" -->
10
+ <h1><a name="label-0" id="label-0">class NumRu::UNumeric</a></h1><!-- RDLabel: "class NumRu::UNumeric" -->
11
11
  <p>Class of Numeric with Units.</p>
12
12
  <p>Dependent on
13
13
  <a href="http://ruby.gfd-dennou.org/products/numru=units">NumRu::Units</a>
14
14
  and Rational, a standard library.</p>
15
- <h2><a name="label:1" id="label:1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
15
+ <h2><a name="label-1" id="label-1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
16
16
  <dl>
17
- <dt><h4><a name="label:2" id="label:2"><code>new(<var>val</var>, <var>uni</var>)</code></a></h4></dt><!-- RDLabel: "new" -->
17
+ <dt><h4><a name="label-2" id="label-2"><code>new(<var>val</var>, <var>uni</var>)</code></a></h4></dt><!-- RDLabel: "new" -->
18
18
  <dd>
19
19
  <p>Constractor.</p>
20
20
  <p>ARGUMENTS</p>
@@ -23,43 +23,54 @@ and Rational, a standard library.</p>
23
23
  <li><var>units</var> (NumRu::Units or String): if string, internally converted to
24
24
  a NumRu::Units</li>
25
25
  </ul></dd>
26
+ <dt><h4><a name="label-3" id="label-3"><code>[val, <var>uni</var>]</code></a></h4></dt><!-- RDLabel: "[val, uni]" -->
27
+ <dd>
28
+ Same as new</dd>
29
+ <dt><h4><a name="label-4" id="label-4"><code>from_date(<var>date</var>, <var>units</var>)</code></a></h4></dt><!-- RDLabel: "from_date" -->
30
+ <dd>
31
+ <p>Convert a DateTime (or Date) to a UNUmeric</p>
32
+ <p>ARGUMENTS</p>
33
+ <ul>
34
+ <li>date (Date or DateTime)</li>
35
+ <li>units (Units or String) : units of the UNumeric to be created</li>
36
+ </ul></dd>
26
37
  </dl>
27
- <h2><a name="label:3" id="label:3">Methods</a></h2><!-- RDLabel: "Methods" -->
38
+ <h2><a name="label-5" id="label-5">Methods</a></h2><!-- RDLabel: "Methods" -->
28
39
  <dl>
29
- <dt><h4><a name="label:4" id="label:4"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
40
+ <dt><h4><a name="label-6" id="label-6"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
30
41
  <dd>
31
- <p>RETURN VALUE</p>
42
+ RETURN VALUE
32
43
  <ul>
33
- <li>the value (Numric)</li>
44
+ <li>the value (Numeric)</li>
34
45
  </ul></dd>
35
- <dt><h4><a name="label:5" id="label:5"><code>units</code></a></h4></dt><!-- RDLabel: "units" -->
46
+ <dt><h4><a name="label-7" id="label-7"><code>units</code></a></h4></dt><!-- RDLabel: "units" -->
36
47
  <dd>
37
- <p>RETURN VALUE</p>
48
+ RETURN VALUE
38
49
  <ul>
39
50
  <li>the units (NumRu::Units)</li>
40
51
  </ul></dd>
41
- <dt><h4><a name="label:6" id="label:6"><code>inspect</code></a></h4></dt><!-- RDLabel: "inspect" -->
52
+ <dt><h4><a name="label-8" id="label-8"><code>inspect</code></a></h4></dt><!-- RDLabel: "inspect" -->
42
53
  <dd>
43
- <p>RETURN VALUE</p>
54
+ RETURN VALUE
44
55
  <ul>
45
56
  <li>a String (e.g., '1 m')</li>
46
57
  </ul></dd>
47
- <dt><h4><a name="label:7" id="label:7"><code>to_s</code></a></h4></dt><!-- RDLabel: "to_s" -->
58
+ <dt><h4><a name="label-9" id="label-9"><code>to_s</code></a></h4></dt><!-- RDLabel: "to_s" -->
48
59
  <dd>
49
- <p>aliasesed to <a href="#label:6">inspect</a>.</p></dd>
50
- <dt><h4><a name="label:8" id="label:8"><code>to_f</code></a></h4></dt><!-- RDLabel: "to_f" -->
60
+ aliasesed to <a href="#label-8">inspect</a>.</dd>
61
+ <dt><h4><a name="label-10" id="label-10"><code>to_f</code></a></h4></dt><!-- RDLabel: "to_f" -->
51
62
  <dd>
52
- <p>RETURN VALUE</p>
63
+ RETURN VALUE
53
64
  <ul>
54
65
  <li>val.to_f</li>
55
66
  </ul></dd>
56
- <dt><h4><a name="label:9" id="label:9"><code>to_i</code></a></h4></dt><!-- RDLabel: "to_i" -->
67
+ <dt><h4><a name="label-11" id="label-11"><code>to_i</code></a></h4></dt><!-- RDLabel: "to_i" -->
57
68
  <dd>
58
- <p>RETURN VALUE</p>
69
+ RETURN VALUE
59
70
  <ul>
60
71
  <li>val.to_i</li>
61
72
  </ul></dd>
62
- <dt><h4><a name="label:10" id="label:10"><code>convert(<var>to_units</var>)</code></a></h4></dt><!-- RDLabel: "convert" -->
73
+ <dt><h4><a name="label-12" id="label-12"><code>convert(<var>to_units</var>)</code></a></h4></dt><!-- RDLabel: "convert" -->
63
74
  <dd>
64
75
  <p>Convert to <var>to_units</var>.</p>
65
76
  <p>RETURN VALUE</p>
@@ -70,9 +81,9 @@ and Rational, a standard library.</p>
70
81
  <ul>
71
82
  <li>when the current units is incompatible with to_units.</li>
72
83
  </ul></dd>
73
- <dt><h4><a name="label:11" id="label:11"><code>convert2</code></a></h4></dt><!-- RDLabel: "convert2" -->
84
+ <dt><h4><a name="label-13" id="label-13"><code>convert2</code></a></h4></dt><!-- RDLabel: "convert2" -->
74
85
  <dd>
75
- <p>Same as <a href="#label:10">convert</a>, but returns <var>self</var> if the units are
86
+ <p>Same as <a href="#label-12">convert</a>, but returns <var>self</var> if the units are
76
87
  incompatible (Warned).</p>
77
88
  <p>EXCEPTION</p>
78
89
  <ul>
@@ -84,11 +95,11 @@ condition is satisfied.</p>
84
95
  <ul>
85
96
  <li>the units of <var>self</var> and <var>to_units</var> are incompatible.</li>
86
97
  </ul></dd>
87
- <dt><h4><a name="label:12" id="label:12"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
98
+ <dt><h4><a name="label-14" id="label-14"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
88
99
  <dd>
89
- <p>As you know. Can handle Numeric, Array, NArray.
90
- NOTE: VArray and GPhys know UNumeric.</p></dd>
91
- <dt><h4><a name="label:13" id="label:13"><code>*(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "*" -->
100
+ As you know. Can handle Numeric, Array, NArray.
101
+ NOTE: VArray and GPhys know UNumeric.</dd>
102
+ <dt><h4><a name="label-15" id="label-15"><code>*(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "*" -->
92
103
  <dd>
93
104
  <p>Multiplication. Knows Numeric, UNumeric, VArray, and GPhys.
94
105
  The units are multipled too. (if other is Numeric, it is assumed
@@ -97,16 +108,16 @@ to be non-dimension)</p>
97
108
  <ul>
98
109
  <li>a UNumeric, VArray, or GPhys</li>
99
110
  </ul></dd>
100
- <dt><h4><a name="label:14" id="label:14"><code>/(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "/" -->
111
+ <dt><h4><a name="label-16" id="label-16"><code>/(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "/" -->
101
112
  <dd>
102
- <p>Division. See <a href="#label:13">*</a>.</p></dd>
103
- <dt><h4><a name="label:15" id="label:15"><code>+(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "+" -->
113
+ Division. See <a href="#label-15">*</a>.</dd>
114
+ <dt><h4><a name="label-17" id="label-17"><code>+(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "+" -->
104
115
  <dd>
105
116
  <p>Addition. Knows Numeric, UNumeric, VArray, and GPhys.
106
117
  The return value will have the units of <var>self</var>.</p>
107
118
  <p>SPECIAL REMARK!</p>
108
119
  <p>If <var>other</var> has units within a factor and/or offset
109
- of difference, It is CONVERTED before addition (by using <a href="#label:11">convert2</a>)!</p>
120
+ of difference, It is CONVERTED before addition (by using <a href="#label-13">convert2</a>)!</p>
110
121
  <p>RETURN VALUE</p>
111
122
  <ul>
112
123
  <li>a UNumeric, VArray, or GPhys</li>
@@ -118,9 +129,47 @@ condition is satisfied.</p>
118
129
  <li>the units of <var>self</var> and <var>to_units</var> are incompatible.</li>
119
130
  <li><var>other</var> is Numeric.</li>
120
131
  </ul></dd>
121
- <dt><h4><a name="label:16" id="label:16"><code>-(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "-" -->
132
+ <dt><h4><a name="label-18" id="label-18"><code>-(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "-" -->
133
+ <dd>
134
+ Subtraction. See <a href="#label-17">+</a>.</dd>
135
+ <dt><h4><a name="label-19" id="label-19"><code>**(<var>num</var>)</code></a></h4></dt><!-- RDLabel: "**" -->
136
+ <dd>
137
+ Power.</dd>
138
+ <dt><h4><a name="label-20" id="label-20"><code>abs</code></a></h4></dt><!-- RDLabel: "abs" -->
122
139
  <dd>
123
- <p>Subtraction. See <a href="#label:15">+</a>.</p></dd>
140
+ Absolute value. Other math functions are also avialable as instance
141
+ methods.</dd>
142
+ <dt><h4><a name="label-21" id="label-21"><code>to_datetime(<var>eps_sec</var>=<var>0</var>.<var>0</var>)</code></a></h4></dt><!-- RDLabel: "to_datetime" -->
143
+ <dd>
144
+ <p>Convert a time UNumeric into a DateTime</p>
145
+ <p>ARGUMENTS</p>
146
+ <ul>
147
+ <li>eps_sec (Float) : Magic epsilon to prevent the round-off of
148
+ DateTime [seconds]. Recommended value is 0.1.</li>
149
+ </ul>
150
+ <p>RETURN VALUE</p>
151
+ <ul>
152
+ <li>a DateTime </li>
153
+ </ul>
154
+ <p>EXCEPTION</p>
155
+ <ul>
156
+ <li>raised if self does not have a time unit with a since field</li>
157
+ </ul></dd>
158
+ <dt><h4><a name="label-22" id="label-22"><code>strftime(<var>fmt</var>)</code></a></h4></dt><!-- RDLabel: "strftime" -->
159
+ <dd>
160
+ <p>Text expression of the date and time of a time UNumeric.
161
+ Implemented as</p>
162
+ <pre>self.to_datetime(0.1).strftime(fmt)</pre>
163
+ <p>ARGUMENTS</p>
164
+ <ul>
165
+ <li><p>fmt (Sting) : the format. Try</p>
166
+ <pre>% man 3 strftime</pre>
167
+ <p>to find how to write it.</p></li>
168
+ </ul>
169
+ <p>RETURN VALUE</p>
170
+ <ul>
171
+ <li>a String</li>
172
+ </ul></dd>
124
173
  </dl>
125
174
 
126
175
  </body>
data/doc/update CHANGED
@@ -1,4 +1,4 @@
1
- #/bin/csh
1
+ #!/bin/csh
2
2
 
3
3
  set sources = ( \
4
4
  ../lib/numru/gphys/attribute.rb \
@@ -29,6 +29,7 @@ set sources = ( \
29
29
  # ../lib/numru/gphys/varraynetcdf.rb \
30
30
  ### ../lib/numru/derivative.rb \
31
31
  ../lib/numru/ggraph.rb \
32
+ ../lib/numru/dclext.rb \
32
33
  ../lib/numru/gdir.rb \
33
34
  ### ../lib/numru/ggraph_on_merdional_section.rb \
34
35
  ### ../lib/numru/gphys.rb \
@@ -7,7 +7,7 @@
7
7
  <title>../lib/numru/gphys/varray.rb</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label:0" id="label:0">class NumRu::VArray</a></h1><!-- RDLabel: "class NumRu::VArray" -->
10
+ <h1><a name="label-0" id="label-0">class NumRu::VArray</a></h1><!-- RDLabel: "class NumRu::VArray" -->
11
11
  <p>VArray is a Virtual Array class, in which a multi-dimensional array data is
12
12
  stored on memory (NArray, NArrayMiss) or in file (NetCDFVar etc).
13
13
  The in-file data handling is left to subclasses such as VArrayNetCDF,
@@ -33,9 +33,9 @@ represent a NetCDFVar, which is realized by a sub-class VArrayNetCDF.</p>
33
33
  values is restricted to a few classes for compatibility with
34
34
  NetCDFAttr (See NumRu::Attribute)</li>
35
35
  </ul>
36
- <h2><a name="label:1" id="label:1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
36
+ <h2><a name="label-1" id="label-1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
37
37
  <dl>
38
- <dt><h4><a name="label:2" id="label:2"><code>VArray.new(<var>narray</var>=<var>nil</var>, <var>attr</var>=<var>nil</var>, <var>name</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "VArray.new" -->
38
+ <dt><h4><a name="label-2" id="label-2"><code>VArray.new(<var>narray</var>=<var>nil</var>, <var>attr</var>=<var>nil</var>, <var>name</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "VArray.new" -->
39
39
  <dd>
40
40
  <p>A constructor</p>
41
41
  <p>ARGUMENTS</p>
@@ -56,7 +56,7 @@ represent a NetCDFVar, which is realized by a sub-class VArrayNetCDF.</p>
56
56
  <p>EXAMPLE</p>
57
57
  <pre>na = NArray.int(6,3).indgen!
58
58
  va1 = VArray.new( na, nil, "test" )</pre></dd>
59
- <dt><h4><a name="label:3" id="label:3"><code>VArray.new2(<var>ntype</var>, <var>shape</var>, <var>attr</var>=<var>nil</var>, <var>name</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "VArray.new2" -->
59
+ <dt><h4><a name="label-3" id="label-3"><code>VArray.new2(<var>ntype</var>, <var>shape</var>, <var>attr</var>=<var>nil</var>, <var>name</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "VArray.new2" -->
60
60
  <dd>
61
61
  <p>Another constructor. Uses parameters to initialize a NArray to hold.</p>
62
62
  <p>ARGUMENTS</p>
@@ -73,9 +73,9 @@ va1 = VArray.new( na, nil, "test" )</pre></dd>
73
73
  <li>a VArray</li>
74
74
  </ul></dd>
75
75
  </dl>
76
- <h2><a name="label:4" id="label:4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
76
+ <h2><a name="label-4" id="label-4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
77
77
  <dl>
78
- <dt><h4><a name="label:5" id="label:5"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
78
+ <dt><h4><a name="label-5" id="label-5"><code>val</code></a></h4></dt><!-- RDLabel: "val" -->
79
79
  <dd>
80
80
  <p>Returns the values as a NArray (or NArrayMiss).</p>
81
81
  <p>This is the case even when the VArray is a mapping to another. Also,
@@ -85,13 +85,13 @@ this method is to be redefined in subclasses to do the same thing.</p>
85
85
  <ul>
86
86
  <li>a NArray (or NArrayMiss)</li>
87
87
  </ul></dd>
88
- <dt><h4><a name="label:6" id="label:6"><code>val=(<var>narray</var>)</code></a></h4></dt><!-- RDLabel: "val=" -->
88
+ <dt><h4><a name="label-6" id="label-6"><code>val=(<var>narray</var>)</code></a></h4></dt><!-- RDLabel: "val=" -->
89
89
  <dd>
90
90
  <p>Set values.</p>
91
- <p>The whole values are set. If you want to set partly, use <a href="#label:9">[]=</a>.
91
+ <p>The whole values are set. If you want to set partly, use <a href="#label-9">[]=</a>.
92
92
  In this method, values are read from narray and set into the internal
93
93
  value holder. Thus, for exampled, the numeric type is not changed
94
- regardress the numeric type of narray. Use <a href="#label:7">replace_val</a> to
94
+ regardress the numeric type of narray. Use <a href="#label-7">replace_val</a> to
95
95
  replace entirely with narray.</p>
96
96
  <p>ARGUMENTS</p>
97
97
  <ul>
@@ -99,10 +99,10 @@ replace entirely with narray.</p>
99
99
  values are set to be equal to it. If NArray (or NArrayMiss), its
100
100
  shape must agree with the shape of the VArray.</li>
101
101
  </ul></dd>
102
- <dt><h4><a name="label:7" id="label:7"><code>replace_val(<var>narray</var>)</code></a></h4></dt><!-- RDLabel: "replace_val" -->
102
+ <dt><h4><a name="label-7" id="label-7"><code>replace_val(<var>narray</var>)</code></a></h4></dt><!-- RDLabel: "replace_val" -->
103
103
  <dd>
104
104
  <p>Replace the internal array data with the object narray.
105
- Use <a href="#label:6">val=</a> if you want to copy the values of narray.</p>
105
+ Use <a href="#label-6">val=</a> if you want to copy the values of narray.</p>
106
106
  <p>ARGUMENTS</p>
107
107
  <ul>
108
108
  <li>narray (NArray or NArrayMiss): as pxlained above.
@@ -113,16 +113,16 @@ Use <a href="#label:6">val=</a> if you want to copy the values of narray.</p>
113
113
  <li>if (self.class == VArray), self;
114
114
  otherwise (if self.class is a subclass of VArray), a new VArray.</li>
115
115
  </ul></dd>
116
- <dt><h4><a name="label:8" id="label:8"><code>[]</code></a></h4></dt><!-- RDLabel: "[]" -->
116
+ <dt><h4><a name="label-8" id="label-8"><code>[]</code></a></h4></dt><!-- RDLabel: "[]" -->
117
117
  <dd>
118
- <p>Get a subset. Its usage is the same as NArray#[]</p></dd>
119
- <dt><h4><a name="label:9" id="label:9"><code>[] = </code></a></h4></dt><!-- RDLabel: "[]=" -->
118
+ Get a subset. Its usage is the same as NArray#[]</dd>
119
+ <dt><h4><a name="label-9" id="label-9"><code>[] = </code></a></h4></dt><!-- RDLabel: "[]=" -->
120
120
  <dd>
121
- <p>Set a subset. Its usage is the same as NArray#[]=</p></dd>
122
- <dt><h4><a name="label:10" id="label:10"><code>attr</code></a></h4></dt><!-- RDLabel: "attr" -->
121
+ Set a subset. Its usage is the same as NArray#[]=</dd>
122
+ <dt><h4><a name="label-10" id="label-10"><code>attr</code></a></h4></dt><!-- RDLabel: "attr" -->
123
123
  <dd>
124
- <p>To be undefined.</p></dd>
125
- <dt><h4><a name="label:11" id="label:11"><code>ntype</code></a></h4></dt><!-- RDLabel: "ntype" -->
124
+ To be undefined.</dd>
125
+ <dt><h4><a name="label-11" id="label-11"><code>ntype</code></a></h4></dt><!-- RDLabel: "ntype" -->
126
126
  <dd>
127
127
  <p>Returns the numeric type.</p>
128
128
  <p>ARGUMENTS -- none</p>
@@ -132,29 +132,29 @@ Use <a href="#label:6">val=</a> if you want to copy the values of narray.</p>
132
132
  "complex", or "obj"). It can be used in NArray.new to initialize
133
133
  another NArray.</li>
134
134
  </ul></dd>
135
- <dt><h4><a name="label:12" id="label:12"><code>rank</code></a></h4></dt><!-- RDLabel: "rank" -->
135
+ <dt><h4><a name="label-12" id="label-12"><code>rank</code></a></h4></dt><!-- RDLabel: "rank" -->
136
136
  <dd>
137
- <p>Returns the rank (number of dimensions)</p></dd>
138
- <dt><h4><a name="label:13" id="label:13"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
137
+ Returns the rank (number of dimensions)</dd>
138
+ <dt><h4><a name="label-13" id="label-13"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
139
139
  <dd>
140
- <p>Returns the shape</p></dd>
141
- <dt><h4><a name="label:14" id="label:14"><code>shape_current</code></a></h4></dt><!-- RDLabel: "shape_current" -->
140
+ Returns the shape</dd>
141
+ <dt><h4><a name="label-14" id="label-14"><code>shape_current</code></a></h4></dt><!-- RDLabel: "shape_current" -->
142
142
  <dd>
143
- <p>aliased to <a href="#label:13">shape</a>.</p></dd>
144
- <dt><h4><a name="label:15" id="label:15"><code>length</code></a></h4></dt><!-- RDLabel: "length" -->
143
+ aliased to <a href="#label-13">shape</a>.</dd>
144
+ <dt><h4><a name="label-15" id="label-15"><code>length</code></a></h4></dt><!-- RDLabel: "length" -->
145
145
  <dd>
146
- <p>Returns the length of the VArray</p></dd>
147
- <dt><h4><a name="label:16" id="label:16"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
146
+ Returns the length of the VArray</dd>
147
+ <dt><h4><a name="label-16" id="label-16"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
148
148
  <dd>
149
- <p>Returns the NArray typecode</p></dd>
150
- <dt><h4><a name="label:17" id="label:17"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
149
+ Returns the NArray typecode</dd>
150
+ <dt><h4><a name="label-17" id="label-17"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
151
151
  <dd>
152
152
  <p>Returns the name</p>
153
153
  <p>RETURN VALUE</p>
154
154
  <ul>
155
155
  <li>(String) name of the VArray</li>
156
156
  </ul></dd>
157
- <dt><h4><a name="label:18" id="label:18"><code>name=(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "name=" -->
157
+ <dt><h4><a name="label-18" id="label-18"><code>name=(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "name=" -->
158
158
  <dd>
159
159
  <p>Changes the name.</p>
160
160
  <p>ARGUMENTS</p>
@@ -165,9 +165,9 @@ Use <a href="#label:6">val=</a> if you want to copy the values of narray.</p>
165
165
  <ul>
166
166
  <li>nm</li>
167
167
  </ul></dd>
168
- <dt><h4><a name="label:19" id="label:19"><code>rename!(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename!" -->
168
+ <dt><h4><a name="label-19" id="label-19"><code>rename!(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename!" -->
169
169
  <dd>
170
- <p>Changes the name (Same as <a href="#label:18">name=</a>, but returns self)</p>
170
+ <p>Changes the name (Same as <a href="#label-18">name=</a>, but returns self)</p>
171
171
  <p>ARGUMENTS</p>
172
172
  <ul>
173
173
  <li>nm(String): the new name.</li>
@@ -176,12 +176,12 @@ Use <a href="#label:6">val=</a> if you want to copy the values of narray.</p>
176
176
  <ul>
177
177
  <li>self</li>
178
178
  </ul></dd>
179
- <dt><h4><a name="label:20" id="label:20"><code>rename(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename" -->
179
+ <dt><h4><a name="label-20" id="label-20"><code>rename(<var>nm</var>)</code></a></h4></dt><!-- RDLabel: "rename" -->
180
180
  <dd>
181
181
  <p>Same as rename! but duplicate the VArray object and set its name.</p>
182
182
  <p>This method may not be supported in sub-classes, since it is sometimes
183
183
  problematic not to change the original.</p></dd>
184
- <dt><h4><a name="label:21" id="label:21"><code>copy(<var>to</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "copy" -->
184
+ <dt><h4><a name="label-21" id="label-21"><code>copy(<var>to</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "copy" -->
185
185
  <dd>
186
186
  <p>Copy a VArray. If to is nil, works as the deep cloning (duplication of the entire object).</p>
187
187
  <p>Both the values and the attributes are copied.</p>
@@ -190,7 +190,7 @@ problematic not to change the original.</p></dd>
190
190
  <li>to (VArray (possibly a subclass) or nil): The VArray to which the
191
191
  copying is made.</li>
192
192
  </ul></dd>
193
- <dt><h4><a name="label:22" id="label:22"><code>reshape!( *<var>shape</var> )</code></a></h4></dt><!-- RDLabel: "reshape!" -->
193
+ <dt><h4><a name="label-22" id="label-22"><code>reshape!( *<var>shape</var> )</code></a></h4></dt><!-- RDLabel: "reshape!" -->
194
194
  <dd>
195
195
  <p>Changes the shape without changing the total size. May not be available in subclasses.</p>
196
196
  <p>ARGUMENTS</p>
@@ -207,7 +207,7 @@ vary.reshape!(5,4) # changes the vary
207
207
  vary.copy.reshape!(2,2,5) # make a deep clone and change it
208
208
  # This always works with a VArray subclass, since vary.copy
209
209
  # makes a deep clone to VArray with NArray.</pre></dd>
210
- <dt><h4><a name="label:23" id="label:23"><code>file</code></a></h4></dt><!-- RDLabel: "file" -->
210
+ <dt><h4><a name="label-23" id="label-23"><code>file</code></a></h4></dt><!-- RDLabel: "file" -->
211
211
  <dd>
212
212
  <p>Returns a file object if the data of the VArray is in a file, nil if it is on memory</p>
213
213
  <p>ARGUMENTS</p>
@@ -219,13 +219,13 @@ vary.copy.reshape!(2,2,5) # make a deep clone and change it
219
219
  <li>an object representing the file in which data are stored. Its class
220
220
  depends on the file type. nil is returned if the data is not in a file.</li>
221
221
  </ul></dd>
222
- <dt><h4><a name="label:24" id="label:24"><code>transpose(*<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "transpose" -->
222
+ <dt><h4><a name="label-24" id="label-24"><code>transpose(*<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "transpose" -->
223
223
  <dd>
224
- <p>Transpose. Argument specification is as in NArray.</p></dd>
225
- <dt><h4><a name="label:25" id="label:25"><code>reshape(*<var>shape</var>)</code></a></h4></dt><!-- RDLabel: "reshape" -->
224
+ Transpose. Argument specification is as in NArray.</dd>
225
+ <dt><h4><a name="label-25" id="label-25"><code>reshape(*<var>shape</var>)</code></a></h4></dt><!-- RDLabel: "reshape" -->
226
226
  <dd>
227
- <p>Reshape. Argument specification is as in NArray.</p></dd>
228
- <dt><h4><a name="label:26" id="label:26"><code>axis_draw_positive</code></a></h4></dt><!-- RDLabel: "axis_draw_positive" -->
227
+ Reshape. Argument specification is as in NArray.</dd>
228
+ <dt><h4><a name="label-26" id="label-26"><code>axis_draw_positive</code></a></h4></dt><!-- RDLabel: "axis_draw_positive" -->
229
229
  <dd>
230
230
  <p>Returns the direction to plot the axis (meaningful only if self is a
231
231
  coordinate variable.) </p>
@@ -240,7 +240,7 @@ so REDEFINE IT IN SUBCLASSES if it is not appropriate.</p>
240
240
  <li>nil: not specified</li>
241
241
  </ul></li>
242
242
  </ul></dd>
243
- <dt><h4><a name="label:27" id="label:27"><code>axis_cyclic?</code></a></h4></dt><!-- RDLabel: "axis_cyclic?" -->
243
+ <dt><h4><a name="label-27" id="label-27"><code>axis_cyclic?</code></a></h4></dt><!-- RDLabel: "axis_cyclic?" -->
244
244
  <dd>
245
245
  <p>Returns whether the axis is cyclic (meaningful only if self is a
246
246
  coordinate variable.) </p>
@@ -255,7 +255,7 @@ so REDEFINE IT IN SUBCLASSES if it is not appropriate.</p>
255
255
  <li>nil: not specified</li>
256
256
  </ul></li>
257
257
  </ul></dd>
258
- <dt><h4><a name="label:28" id="label:28"><code>axis_modulo</code></a></h4></dt><!-- RDLabel: "axis_modulo" -->
258
+ <dt><h4><a name="label-28" id="label-28"><code>axis_modulo</code></a></h4></dt><!-- RDLabel: "axis_modulo" -->
259
259
  <dd>
260
260
  <p>Returns the modulo of a cyclic axis (meaningful only if self is a
261
261
  coordinate variable and it is cyclic.) </p>
@@ -269,25 +269,31 @@ so REDEFINE IT IN SUBCLASSES if it is not appropriate.</p>
269
269
  <li>nil if modulo is not found</li>
270
270
  </ul></li>
271
271
  </ul></dd>
272
- <dt><h4><a name="label:29" id="label:29"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
272
+ <dt><h4><a name="label-29" id="label-29"><code>axis_cyclic_extendible?</code></a></h4></dt><!-- RDLabel: "axis_cyclic_extendible?" -->
273
273
  <dd>
274
- <p>For Numeric operators. (If you do not know it, see a manual or book of Ruby)</p></dd>
274
+ (meaningful only if self is a coordinate variable.)
275
+ Returns true if self is cyclic and it is suitable to exend
276
+ cyclically (having the distance between both ends
277
+ equal to (modulo - dx), where dx is the mean increment).</dd>
278
+ <dt><h4><a name="label-30" id="label-30"><code>coerce(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "coerce" -->
279
+ <dd>
280
+ For Numeric operators. (If you do not know it, see a manual or book of Ruby)</dd>
275
281
  </dl>
276
- <h2><a name="label:30" id="label:30">Methods compatible with NArray</a></h2><!-- RDLabel: "Methods compatible with NArray" -->
282
+ <h2><a name="label-31" id="label-31">Methods compatible with NArray</a></h2><!-- RDLabel: "Methods compatible with NArray" -->
277
283
  <p>VArray is a numeric multi-dimensional array, so it supports most of the
278
284
  methods and operators in NArray. Here, the name of those methods are just
279
285
  quoted. See the documentation of NArray for their usage.</p>
280
- <h3><a name="label:31" id="label:31">Math functions</a></h3><!-- RDLabel: "Math functions" -->
281
- <h4><a name="label:32" id="label:32">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" -->
282
- <h3><a name="label:33" id="label:33">Binary operators</a></h3><!-- RDLabel: "Binary operators" -->
283
- <h4><a name="label:34" id="label:34">-, +, *, /, %, **, .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" -->
284
- <h3><a name="label:35" id="label:35">Unary operators</a></h3><!-- RDLabel: "Unary operators" -->
285
- <h4><a name="label:36" id="label:36">~ - +</a></h4><!-- RDLabel: "~ - +" -->
286
- <h3><a name="label:37" id="label:37">Mean etc</a></h3><!-- RDLabel: "Mean etc" -->
287
- <h4><a name="label:38" id="label:38">mean, sum, stddev, min, max, median</a></h4><!-- RDLabel: "mean, sum, stddev, min, max, median" -->
288
- <h3><a name="label:39" id="label:39">Other methods</a></h3><!-- RDLabel: "Other methods" -->
286
+ <h3><a name="label-32" id="label-32">Math functions</a></h3><!-- RDLabel: "Math functions" -->
287
+ <h4><a name="label-33" id="label-33">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" -->
288
+ <h3><a name="label-34" id="label-34">Binary operators</a></h3><!-- RDLabel: "Binary operators" -->
289
+ <h4><a name="label-35" id="label-35">-, +, *, /, %, **, .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" -->
290
+ <h3><a name="label-36" id="label-36">Unary operators</a></h3><!-- RDLabel: "Unary operators" -->
291
+ <h4><a name="label-37" id="label-37">~ - +</a></h4><!-- RDLabel: "~ - +" -->
292
+ <h3><a name="label-38" id="label-38">Mean etc</a></h3><!-- RDLabel: "Mean etc" -->
293
+ <h4><a name="label-39" id="label-39">mean, sum, stddev, min, max, median</a></h4><!-- RDLabel: "mean, sum, stddev, min, max, median" -->
294
+ <h3><a name="label-40" id="label-40">Other methods</a></h3><!-- RDLabel: "Other methods" -->
289
295
  <p>These methods returns a NArray (not a VArray).</p>
290
- <h4><a name="label:40" id="label:40">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" -->
296
+ <h4><a name="label-41" id="label-41">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" -->
291
297
 
292
298
  </body>
293
299
  </html>