ruby-netcdf 0.6.5

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