ruby-netcdf-updated 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cd71344e747f66c6f212d4ab4ccbc0d9143f2b21
4
+ data.tar.gz: 1c573b629f9e22e2682a6a0053b84b677f1abef6
5
+ SHA512:
6
+ metadata.gz: ada06b93f7bf802adc2153e9b98881ff4b7a34a246005c8d04fc6f320c8ff87b879ff7b34975e9bb560ebf33e5d750c36130e4cce18a28b93e0a0deec9517056
7
+ data.tar.gz: 2d72bfc8ecd6586d499b404a0c26a3ec408cbd33b43bd653a378d9196e633992ca345dd675cbd304ffa11368af2cb9e79c0f847e9ed9220a8cee0f9450d7b214
data/ChangeLog ADDED
@@ -0,0 +1,396 @@
1
+ Sun Feb 19 2011 T Horinouchi
2
+ * ruby-netcdf-0.6.6 released (relase tag: ruby-netcdf-0_6_6)
3
+ * lib/netcdf.rb: method pack: debug of enbug made
4
+ when 1.1 -> 1.2 (cvs tag) commited in Jan 2010.
5
+ * netcdfraw.c: Added macro NC_RAISE2. Enhanced error
6
+ messaging in NetCDF_open and NetCDF_create to show file name.
7
+
8
+ Thu Feb 17 2011 T Horinouchi
9
+ * ruby-netcdf-0.6.5 released (relase tag: ruby-netcdf-0_6_5)
10
+ Thu Feb 17 2011 T Horinouchi
11
+ * extconf.rb: Debug to have the --disable-opendap option really work
12
+ Sat Feb 12 2011 T Horinouchi
13
+ * ruby-netcdf-0.6.5 preview release.
14
+ Thu Dec 23 2010 T Koshiro
15
+ * test/aref_aset.rb : updated for Ruby 1.9.2
16
+ * lib/netcdf.rb: NetCDF.clean_tmpfile : lambda -> proc
17
+ * verified that all test programs work fine with Ruby 1.9.2.
18
+
19
+ Tue Dec 14 2010 T Koshiro
20
+ * netcdfraw.c : nctype2natype : char* -> const char*
21
+ * test/aref_aset.rb, test/factor_offset.rb : bug fix.
22
+
23
+ Mon Dec 13 2010 T Koshiro
24
+ * netcdfraw.c : patch for Ruby 1.9.2
25
+ - by S Kouketsu (dennou-ruby:003191)
26
+ - by T Koshiro (dennou-ruby:003226)
27
+
28
+ Mon Mar 15 2010 T Horinouchi
29
+ * ruby-netcdf-0.6.4 released (relase tag: ruby-netcdf-0_6_4)
30
+
31
+ Thu Jan 14 2010 T Horinouchi < T Koshiro
32
+ * netcdfraw.c : patch for Ruby 1.9.1 (dennou-ruby:003138)
33
+ * extconf.rb : patch for NetCDF-4.1-beta2 (dcdvlop Nov 20, 2009)
34
+
35
+ Fri Aug 15 2008 T Horinouchi
36
+ * lib/netcdf_miss.rb: in __interpret_missing_params,
37
+ changed just to warn, not to raise an exception,
38
+ if the missing value or fill value is within the
39
+ valid range (warning can be suppressed by $VERBOSE = nil)
40
+ Thu Jul 17 2008 T Horinouchi
41
+ * lib/netcdf.rb: NetCDFVar's private method pack : to take
42
+ round if the type of self is integer.
43
+ * lib/netcdf_miss.rb: debug in the handling of missing data
44
+ specification using the external data type.
45
+ Wed Jul 16 2008 T Horinouchi < M Otsuka
46
+ * netcdfraw.c : patch for Ruby 1.9
47
+ Tue Dec 25 2007 T Horinouchi
48
+ * ruby-netcdf-0.6.3 released
49
+ * netcdfra.c : (kind of) bugfix. (default attribute type for
50
+ Fixnum and Bignum was changed from NA_SINT to NA_LINT).
51
+ * lib/netcdf_miss.rb: improved to judge missing_value validity
52
+ considering its typecode.
53
+ Thu Jun 30 2005
54
+ * netcdf.rb: NetCDFVar#[] : debug for Array/NArray indices
55
+ Thu Jun 23 2005 T Horinouchi < S Koshiro
56
+ * ruby-netcdf-0.6.2 re-released (I am really sorry about that)
57
+ * extconf.rb: updated to configure the prefix for DODS (useful if
58
+ the DODS is installed in a non-standard path)
59
+ Wed Jun 22 2005 T Horinouchi
60
+ * ruby-netcdf-0.6.2 released
61
+ * extconf.rb: updated to support opendap 3.5
62
+ Fri May 13 2005 T Horinouchi
63
+ * ruby-netcdf-0.6.1 released
64
+ Mon Apr 11 2005 Takeshi Horinouchi
65
+ * netcdfraw.c: changed global variables such as mNumRu to file locale.
66
+ Tue Mar 15 2005 Takeshi Horinouchi
67
+ * netcdfraw.c: debug: changed the type of c_stride from size_t to
68
+ ptrdiff_t. Removed unsuned variables.
69
+ Mon Mar 14 2005 Takeshi Horinouchi
70
+ * ruby-netcdf-0.6.0 released
71
+ * netcdfraw.c: NetCDF_get_var*_*: debug for rank-zero scalar
72
+ NetCDFVar. It used to SEGV.
73
+ NetCDF_get_var_*, which reads the whole variable,
74
+ is modified to return in a NArray of shape==[1].
75
+ On the other hand, subset reading by NetCDF_get_var[s1]_*
76
+ is prohibited for rank-zero scalars by raising an exception.
77
+ * lib/netcdf.rb: minor modification in [], to support its call
78
+ without arguments of a rank-zero scalar.
79
+ * netcdfraw.c: debug: changed size_t to int when NArray functions
80
+ are called (for 64-bit machines).
81
+ * extconf.rb: minor change in opendap configuration.
82
+ Thu Mar 10 2005 Takeshi Horinouchi
83
+ * extconf.rb: to link OPeNDAP/DODS-enabled version of NetCDF
84
+ if available and if --disable-opendap is not specified.
85
+ * lib/netcdf.rb: created pack and unpack by separating from
86
+ scaled_put and scaled_get, respectvely. Changed type to
87
+ unpack in to follow the coerce mechanism, so the upacked
88
+ type depend on the type of scale_factor and add_offset.
89
+ Renamed NetCDFVar.scaled_get_type[=] to NetCDFVar.unpack_type[=].
90
+ * lib/netcdf_miss.rb: revised [put|get]_with_miss_and_scaling:
91
+ Now, missing data handling using valid_* / missing_value is applied
92
+ basically to packed data, which is consistent with most
93
+ conventions. However, it is applied to unpacked data
94
+ if and only if the type of valid_* / missing_value is not the same as
95
+ the packed data and is the samed as the unpacked data.
96
+ * doc/ Updated in response to the modification.
97
+ Mon Jun 7 2004 Takeshi Horinouchi
98
+ * ruby-netcdf-0.5.5 released
99
+ Wed Apr 28 2004 Takeshi Horinouchi < S. Nishizawa
100
+ * lib/netcdf.rb: minor debug in [](l.662) and []= (l.733 & l.736)
101
+ to avoid error with NArrayMiss.
102
+ Mon Mar 8 2004 Takeshi Horinouchi
103
+ * ruby-netcdf-0.5.4 released
104
+ * lib/netcdf.rb: created NetCDFVar.scaled_get_type= and
105
+ NetCDFVar.scaled_get_type
106
+ Mon Feb 23 2004 Takeshi Horinouchi
107
+ * lib/netcdf_miss.rb: debug in __interpret_missing_params
108
+ Tue Oct 28 2003 Takeshi Horinouchi
109
+ * lib/netcdf.rb: support empty [], []=. Debug in []=.
110
+ Fri Oct 2 2003 Takeshi Horinouchi
111
+ * ruby-netcdf-0.5.3 released
112
+ * lib/netcdf.rb: (by S Nishizawa) enhanced NetCDF#[]= to support
113
+ array indices.
114
+ * lib/netcdf.rb: supported the rubber dimension (=false) in
115
+ NetCDF#[] and NetCDF#[]=.
116
+ * doc/*rd: updated for NetCDF#[] and NetCDF#[]=
117
+ * INSTALL: updated
118
+ Thu Oct 2 2003 Takeshi Horinouchi < S Nishizawa
119
+ * lib/netcdf.rb: enhanced NetCDF#[] to support array indices.
120
+ Tue Sep 23 2003 Takeshi Horinouchi
121
+ * extconf.rb: debug for windows (by T Koshiro)
122
+ * lib/netcdf_miss.rb: debug get_with_miss_*
123
+ Wed Aug 27 2003 Takeshi Horinouchi
124
+ * ruby-netcdf-0.5.2 released
125
+ * Verified that all test programs work fine with Ruby 1.8.0.
126
+ * netcdfraw.c: functions NetCDF_dim, NetCDF_var (methods
127
+ NetCDF#dim, NetCDF#var). Changed behavior back to return nil
128
+ if not found (by name), as opposed to the change on Feb 3 2003.
129
+ Debug NetCDF_att_rename (NetCDFAtt#name=).
130
+ Init_netcdfraw: No longer asks whether NumRu has been
131
+ defined -- ok for Ruby 1.6.5 or so or later
132
+ * doc/Ref_man.rd,doc/Ref_man_jp.rd: updated for the changes above
133
+ * test/test.rb updated for the debug of NetCDFAtt#name=.
134
+ * lib/netcdf.rb: editted NetCDF#vars and NetCDF#dims not to change
135
+ the behavior despite the change above. Corrected exception types
136
+ to raise where needed.
137
+ Tue Aug 19 2003 Takeshi Horinouchi
138
+ * demo/demo4-copy.rb: created
139
+ Tue Aug 12 2003 Takeshi Horinouchi
140
+ * ruby-netcdf-0.5.1 released
141
+ * extconf.rb: do not edit "install:" anymore (for Ruby 1.8; works
142
+ with 1.6 too.) / Debug
143
+ * doc/Ref_man.rd,doc/Ref_man_jp.rd: corrected a few typos.
144
+
145
+ Tue Aug 12 2003 Takeshi Horinouchi
146
+ * ruby-netcdf-0.5.0 released
147
+ * lib/netcdf_miss.rb: created. handles data missing by NArrayMiss.
148
+ * doc/Ref_man.rd,doc/Ref_man_jp.rd: updated.
149
+
150
+ Mon Aug 11 2003 Takeshi Horinouchi
151
+ * extconf.rb: modification to cover Cygwin
152
+ * netcdfraw.c: extern -> EXTERN
153
+ * lib/netcdf.rb: renamed get|put as simple_(get|put) and
154
+ made get|put aliased to them. Changed scaled_(get|put)
155
+ to depend on simple_(put|get). This is to allow the user
156
+ to redefine get|put, if he/she likes, as:
157
+ alias get scaled_get
158
+ alias put scaled_put
159
+ Or (by using singleton methods)
160
+ def a_ncvar.get(*arg)
161
+ scaled_get(*arg)
162
+ end
163
+ def a_ncvar.put(*arg)
164
+ scaled_put(*arg)
165
+ end
166
+ Now these do not cause recurrence. By doing so, one can
167
+ also change the behavior of [] and []=.
168
+
169
+ Sat Mar 24 2003 Takeshi Horinouchi
170
+ * ruby-netcdf-0.4.0 released
171
+ Sat Mar 22 2003 Takeshi Horinouchi
172
+ * lib/netcdf.rb: NetCDFVar#[]: behavior changed -- to eliminate the
173
+ dimensions designated by Integer's (for better agreement with
174
+ NArray#[])
175
+ * doc/: correct the description of the IO mode for NetCDF.open
176
+ Fri Mar 21 2003 Takeshi Horinouchi
177
+ * ruby-netcdf-0.3.9 released
178
+ Wed Mar 19 2003 Takeshi Horinouchi
179
+ * netcdfraw.c: changed return values of NetCDF#redef and NetCDF#enddef
180
+ (NetCDF_redef, NetCDF_enddef) --- return true if succesful and
181
+ nil if not (the latter means that the file is already in
182
+ define mode for redef and that it is already in the data mode
183
+ for enddef). Previously, these methods always retuned nil.
184
+ * doc/: updated
185
+ * lib/netcdf.rb: DEBUG [] and []= : treatment of the end of ranges.
186
+ Tue Mar 18 2003 Takeshi Horinouchi
187
+ * netcdfraw.c: added NetCDF#define_mode?
188
+ (NetCDF_whether_in_define_mode)
189
+ Mon Mar 17 2003 Takeshi Horinouchi
190
+ * ruby-netcdf-0.3.8 released
191
+ * netcdfraw.c: deleted function NetCDF_put_var1_long, which was
192
+ unnecessary (not called by anything).
193
+ * netcdfraw.c: added methods NetCDFVar#typcode, NetCDFAtt#typcode
194
+ (functions NetCDF_var_typecode, NetCDF_att_typecode)
195
+ * netcdfraw.c: NetCDFVar#def_var(NetCDF_def_var) functionarity enhanced
196
+ to accept NArray's typcodes to specifiy a variable type (vartye).
197
+ * netcdfraw.c:put_var_*(NetCDF_put_var_*),put_vars_*(NetCDF_put_vars_*)
198
+ functionality enhanced to accept scalar values to set uniform values
199
+ * lib/netcdf.rb alias rank ndims (in NetCDFVar)
200
+ * doc/Ref_man* updated accordingly
201
+ Fri Mar 14 2003 Takeshi Horinouchi
202
+ * ruby-netcdf-0.3.7 released
203
+ Mon Feb 5 2003 Takeshi Horinouchi
204
+ * doc/Ref_man.rd,doc/Ref_man_jp.rd update (added [] and []= methods)
205
+ Mon Feb 3 2003 Takeshi Horinouchi
206
+ * netcdf.rb: added NetCDF#dims, NetCDF#vars
207
+ * netcdfraw.f: functions NetCDF_dim, NetCDF_var (methods
208
+ NetCDF#dim, NetCDF#var). Changed behavior to raise exception
209
+ if not found (by name).
210
+ Thu Jan 30 2003 Takeshi Horinouchi
211
+ * ruby-netcdf-0.3.6 released
212
+ * netcdfraw.c: debug NetCDF_free and NetCDF_close not to close
213
+ a file that has already been closed
214
+ * netcdfraw.c: debug nc_mark_obj -- incorrect typing (though in
215
+ many cases innocuous)
216
+ * demo/: deleted *_withAdvancedDCL.rb (obsolete)
217
+
218
+ Tue Jun 11 2002 Takeshi Horinouchi
219
+ * ruby-netcdf-0.3.5 released
220
+ * netcdfraw.rb: eliminated references to char *na_typestring[]
221
+ (to make the source compilable with narray-0.5.6p2)
222
+ * lib/netcdf.rb: eliminated uri methods: this is for a future
223
+ incorpolation of DODS
224
+ * demo/demo[23]*:written to use RubyDCL directly instead of AdvancedDCL
225
+
226
+ Tue Feb 26 2002 Takeshi Horinouchi
227
+ * ruby-netcdf-0.3.4 released
228
+
229
+ Sun Feb 24 2002 Takeshi Horinouchi
230
+ * lib/netcdf.rb: NetCDF#open minor debug
231
+
232
+ Thu Dec 27 2001 Takeshi Horinouchi
233
+ * extconf.rb: corrected an error message
234
+
235
+ Thu Dec 26 2001 Takeshi Horinouchi
236
+ * ruby-netcdf-0.3.3 released
237
+ * lib/netcdf.rb: changes are made to get around a bug in NArray.
238
+ Should be re-changed to the original if the bug is fixed.
239
+ (The changed pars are marked by "TEMPORARY CHANGE 2001/12/27" in
240
+ the source code)
241
+ * netcdfraw.c: debug NetCDF_get_vars_sint
242
+ * doc/Ref_man*rd: added the usage section.
243
+
244
+ Thu Dec 26 2001 Takeshi Horinouchi
245
+ * ruby-netcdf-0.3.2 released
246
+ * doc/Ref_man*rd: added a "Data Type" section. Plus, some updates
247
+ * lib/netcdf.rb: added NetCDF#scaled_put and NetCDF#scaled_get
248
+ * netcdfraw.c,lib/netcdf.rb: added methods to treat the "char" type
249
+
250
+ Thu Dec 26 2001 Takeshi Horinouchi
251
+ * ruby-netcdf-0.3.1 released
252
+ * doc/Ref_man*rd: updated
253
+ * lib/netcdf/rb: added NetCDF#def_var_with_dim
254
+ * netcdfraw.c: NetCDF*_eql: debug / do not redefine eql?, since the
255
+ hash method is not refefined
256
+ * lib/netcdf/rb: added NetCDFDim#length_ul0
257
+ * netcdfraw.c: NetCDF#close: error will not be raised on NetcdfBadid
258
+ * lib/netcdf/rb: added NetCDFVar#shape_current, NetCDFVar#shape_ul0
259
+ * lib/netcdf/rb: added NetCDF.create_tmp -- temporary file
260
+ * lib/netcdf/rb: NetCDFVar#uri returns path+'?var='+name instead
261
+ of path+'?'+name
262
+
263
+ Thu Dec 23 2001 Takeshi Horinouchi
264
+ * ruby-netcdf-0.3.0 released
265
+ * netcdfraw.c: NetCDFVar#vartype is aliased to NetCDFVar#ntype
266
+ * INSTALL: updated
267
+ * extconf.rb: updated thoroughly (better handling of dependent libs)
268
+ * lib/netcdr.rb: NetCDF.open: changed mode specification --
269
+ it became much closer to that for the File class
270
+ (Also, NetCDF.create was changed a little -- but no effect for users)
271
+ * netcdfraw.c: NetCDF_open was modified to be a simple wrapper
272
+ only of nc_open.
273
+ * netcdfraw.c: completely renew NetCDF_put_att__ --> NArray available
274
+ (accordingly changed are NetCDF_(put_att|put_att_var|att_put), and
275
+ lib/netcdf.rb:NetCDF(|Var)#put_att,NetCDFAtt#put)
276
+ * netcdfraw.c: minor debug -- eliminate global variables rb_cNetCDF*
277
+ * netcdfraw.c: initialization of mNumRu was improved
278
+
279
+ Thu Dec 7 2001 Takeshi Horinouchi
280
+ * ruby-netcdf-0.2.0 released
281
+ * lib/netcdf.rb: debug NetCDFVar#[], NetCDFVar#[]=
282
+ * doc/Ref_man[_jp].rd: updated
283
+ * netcdfraw.c: added clone methods
284
+ * netcdfraw.c: added security check
285
+ nc_open, nc_create: Check_SafeStr(filename)
286
+ file modifying methods: rb_secure(4)
287
+ file reading methods: taint return values
288
+ * netcdfraw.c: remove unused def of "new" (it's in netcdf.rb)
289
+
290
+ Thu Dec 6 2001 Takeshi Horinouchi
291
+ * ruby-netcdf-0.1.10 released
292
+ * demo/demo2-graphic.rb adapted to advanceddcl-0.2.0
293
+ * demo/demo3-ncepclim.rb minor change
294
+ * netcdfraw.c: rename mNum as mNumRu; initialize it only at first time
295
+ * mkdir test/; mv test.rb test/; and updated test.rb (to include NumRu)
296
+ * correctet ChangeLog
297
+
298
+ ?? Nov? ?? 2001 Naoki Kawanabe (log added by Horinouchi)
299
+ * netcdf.rb added NetCDFVar#[] and NetCDFVar#[]=
300
+
301
+ Sat Nov 16 2001 Takeshi Horinouchi
302
+ * netcdf.rb: added NetCDFVar.new, NetCDFVar.open (these are the same)
303
+
304
+ Sat Nov ?? 2001 Naoki Kawanabe (log added by Horinouchi)
305
+ * ruby-netcdf-0.1.9 released
306
+ * extconf.rb debug
307
+
308
+ Sat Nov 03 2001 Naoki Kawanabe
309
+ * ruby-netcdf-0.1.7 released (memo by Horinouchi: this should be 0.1.8)
310
+ * changed install directry (require 'netcdf' -> require
311
+ 'numru/netcdf')
312
+ * added module 'NumRu'
313
+ * changed class name (NetCDF -> NumRu::NetCDF etc.)
314
+ * demo program renewed
315
+ Thu Oct 25 2001 Takeshi Horinouchi
316
+
317
+ * ruby-netcdf-0.1.7 released
318
+ * doc/Ref_man.rd Created (English translation)
319
+ * doc/Ref_man_jp.rd Revised
320
+ * netcdfraw.c, NetCDF_att_copy: support file as a destination
321
+ (global attribute)
322
+
323
+ Thu Oct 23 2001 Takeshi Horinouchi
324
+
325
+ * doc/Ref_man_jp.html regenerated from doc/Ref_man_jp.rd
326
+ * doc/Ref_man_jp.rd Revised.
327
+ * doc/Ref_man_jp.rd index added.
328
+
329
+ Thu Oct 23 2001 Takeshi Horinouchi
330
+
331
+ * ruby-netcdf-0.1.6 released
332
+ * NetCDFruby is renamed to RubyNetCDF.
333
+ Documents are changed accordingly.
334
+ * INSTALL was made
335
+ * Ref_man_jp.rd: a bit modified
336
+ * documents moved to doc/
337
+ * Ref_man_jp.[doc|pdf] is renamed to Ref_man_jp_obsolete.[doc|pdf]
338
+ Will not be maintained any more.
339
+
340
+ Fri Oct 05, 2001 Naoki Kawanabe <kawanabe@kurasc.kyoto-u.ac.jp>
341
+
342
+ * version 0.1.5 released
343
+ * added Ref_man_jp.rd and Ref_man_jp.html (in Japanese)
344
+
345
+ Wed Sep 21, 2001 Takeshi Horiouchi <horinout@kurasc.kyoto-u.ac.jp>
346
+
347
+ * version 0.1.4 released
348
+ * netcdfraw.c: debug get_var_<type> correct dimension order
349
+ * test.rb truely get rid of xmp
350
+
351
+ Wed Sep 20, 2001 Takeshi Horiouchi <horinout@kurasc.kyoto-u.ac.jp>
352
+
353
+ * version 0.1.3 released
354
+ * README_JP.txt modified accordingly
355
+ * extconf.rb modifyed (support the "test" target)
356
+ * netcdf.rb: debug (NetCDFAtt#put)
357
+ * netcdfraw.c: debug (NetCDF_put_att, NetCDF_put_att_var)
358
+ * test.rb --> debug (usage of NetDCFAtt#put)
359
+ * test.rb --> do not use xmp. Accordingly, xmp.rb is removed from
360
+ the package
361
+
362
+ Wed Sep 20, 2001 Takeshi Horiouchi <horinout@kurasc.kyoto-u.ac.jp>
363
+
364
+ * version 0.1.2 re-released
365
+ * xmp.rb (an almost standard program) is copied to the top directory
366
+ * version 0.1.2 released
367
+ * changed extconf.rb
368
+ use standard mkmf.rb
369
+ Makefile modified after creation by mkmf
370
+ * mv netcdf.rb lib/netcdf.rb
371
+
372
+ Wed Sep 19, 2001 Takeshi Horiouchi <horinout@kurasc.kyoto-u.ac.jp>
373
+
374
+ * started ToDo list
375
+
376
+ Wed Sep 19, 2001 Takeshi Horiouchi <horinout@kurasc.kyoto-u.ac.jp>
377
+
378
+ * version 0.1.1 released
379
+ * Reference manual (in japanese) updated and renamed to Ref_man_jp*
380
+ * mkmf.rb changed (*.nc included for cleaning), README_JP.txt
381
+ changed accordingly
382
+ * demo directly added:
383
+ demo/demo1-create-alt.rb
384
+ demo/demo1-create.rb
385
+ demo/demo2-graphic.rb
386
+ demo/demo2-graphic_old.rb
387
+ demo/demo3-ncepclim.rb
388
+ * netcdfraw.c: NetCDFDim#unlimdim? added
389
+ * (acutally on Sep 12) netcdf.rb: NetCDFVar#put_att added
390
+ NetCDF#put_att debug
391
+ * (acutally on Sep 12) netcdfraw.c: a number of debug,
392
+ NetCDF_put_att_var (NetCDFVar#put_attraw) added
393
+
394
+ Wed Sep 19, 2001 Toshihiro Sakakima <sakakima@kurasc.kyoto-u.ac.jp>
395
+
396
+ * version 0.01 released
data/INSTALL ADDED
@@ -0,0 +1,62 @@
1
+ Installation
2
+
3
+ 0. The following must have been installed in advance.
4
+
5
+ * Ruby, of course <http://www.ruby-lang.org/en/download.html>.
6
+
7
+ * NArray: a multi-dimensional numeric array class for Ruby.
8
+ <http://www.ruby-lang.org/en/raa-list.rhtml?name=NArray>
9
+
10
+
11
+ * NetCDF ver 3. <http://www.unidata.ucar.edu/packages/netcdf/>
12
+ (Fortran and C++ interfaces are not needed, so you
13
+ can ignore it if their installation does not succeed.)
14
+
15
+ * (OPTIONAL) NArrayMiss, which is require to use
16
+ NetCDFVar#get_with_miss etc by
17
+
18
+ require 'numru/netcdf_miss'
19
+
20
+ NArrayMiss does not have to be installed in advance.
21
+
22
+ 1. Change to the top directory such as by:
23
+
24
+ % cd ruby-netcdf-0.5.3
25
+
26
+ Here, "%" is a "prompt". Do not type it.
27
+ The directory name depends on the version of RubyNetCDF
28
+
29
+ 2. Configure your setting to create Makefile.
30
+
31
+ % ruby extconf.rb
32
+
33
+ NOTE: By default, the two headers narray.h and narray_config.h
34
+ in the narraypackage are assumed to have been copied to
35
+ $(sitearchdir), which is normally
36
+ /usr/local/lib/ruby/site_ruby/1.6/$(arch)/ if you are using Unix,
37
+ where $(arch) is something like sparc-solaris2.6, a combination of
38
+ CPU and OS. To specify the directory that contains these files
39
+ explicitly, use instead the following:
40
+
41
+ % ruby extconf.rb --with-narray-include=/narraydir/include
42
+
43
+ Similarly, you can specify the directory you installed netcdf
44
+ with the following:
45
+
46
+ % ruby extconf.rb --with-netcdf-include=/netcdfdir/include \
47
+ --with-netcdf-include=/netcdfdir/lib
48
+ or
49
+
50
+ % ruby extconf.rb --with-netcdf-dir=/netcdfdir
51
+
52
+ 3. Compile source codes and create a shared library.
53
+
54
+ % make
55
+
56
+ 4. Optionally, you can run a test program by the following:
57
+
58
+ % make test
59
+
60
+ 5. Installs it into your site-specific library path for Ruby.
61
+
62
+ % make site-install