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
@@ -0,0 +1,34 @@
1
+ GPhys is copyrighted free software by Takeshi Horinouchi and
2
+ GFD Dennou Club (http://www.gfd-dennou.org/).
3
+
4
+ Copyright 2003-2013 (C) Takeshi Horinouchi and GFD Dennou Club
5
+ (http://www.gfd-dennou.org/) All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are
9
+ met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+
14
+ 2. Redistributions in binary form must reproduce the above copyright
15
+ notice, this list of conditions and the following disclaimer in
16
+ the documentation and/or other materials provided with the
17
+ distribution.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY GFD DENNOU CLUB AND CONTRIBUTORS ``AS IS''
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GFD DENNOU CLUB OR
23
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ The views and conclusions contained in the software and documentation
32
+ are those of the authors and should not be interpreted as representing
33
+ official policies, either expressed or implied, of Takeshi Horinouchi
34
+ and GFD Dennou Club.
data/README CHANGED
@@ -1,32 +1,30 @@
1
+ = GPhys -- a class of multi-dimensional Gridded Physical quantities
1
2
 
2
- GPhys -- a class of multi-dimensional Gridded Physical quantities
3
+ == Description and general information
4
+ See http://ruby.gfd-dennou.org/products/gphys/
3
5
 
4
- by T Horinouchi
5
- 2003/05/14
6
+ == Licence
7
+ See LICENSE.txt
6
8
 
7
- * DESCRIPTION
9
+ == Dependent libraries
8
10
 
9
- To be written.
10
- See http://ruby.gfd-dennou.org/workshop200303/horinout/ (in Japanese).
11
+ As of GPhys 1.2.0.
11
12
 
12
- * INSTALL
13
+ Dependent libraries and their versions (required or recommended):
14
+ * Ruby 1.8 or 1.9
15
+ * NArray: 0.5.7 or later
16
+ * NumRu::Misc : 0.1.0 or later
17
+ * NumRu::Units : 1.7 or later
18
+ * NArrayMiss : 1.2.4 or later
19
+ * RubyNetCDF : 0.6.6 or later
20
+ * RubyDCL : 1.6.1 or later
21
+ * Ruby-FFTW3 : 0.3 or later
22
+ * RubyGSL : 1.14 or later
13
23
 
14
- # ruby ./install.rb
24
+ Recommended libraries:
25
+ * Ruby-LAPACK : 1.5 or later (used for efficiency if installed)
15
26
 
16
- * SAMPLE PROGRAMS
17
-
18
- Each library file has a sample program part, which is invoked by
19
- directly feeding the file to Ruby. For example
20
-
21
- % cd lib
22
- % ruby ggraph.rb
23
-
24
- % cd lib/gphys
25
- % ruby gphys.rb
26
- % ruby gphys_netcdf_io.rb
27
-
28
- Sample programs are also found in the
29
-
30
- ./sample
31
-
32
- diredtory.
27
+ Optional dependent libraries:
28
+ * rb-GRIB : 0.2.0 or later (used if installed and explicitly specified.
29
+ Needed to read GRIB2 data. But rb-GRIB 0.2.0 is experimental, so it
30
+ is not recommended. Wait for a future version.)
@@ -1,9 +1,27 @@
1
+ #!/usr/bin/env ruby
1
2
  irb -r numru/gdir_connect_ftp-like
2
3
 
3
- # =begin
4
- # =gdir_client
5
- # A client of gdir_server using irb.
6
- #
7
- # This command is just equal to
8
- # irb -r numru/gdir_connect_ftp-like
9
- # =end
4
+ =begin
5
+ = NAME
6
+
7
+ gdir_client - A client of gdir_server using irb.
8
+
9
+ = SYNOPSIS
10
+
11
+ % gdir_client top_dir [[host:]port] [-a allowed_address] ...
12
+
13
+ = DESCRIPTION
14
+
15
+ ((*gdir_client*)) command is just equal to
16
+
17
+ irb -r numru/gdir_connect_ftp-like
18
+
19
+ = OPTIONS
20
+
21
+ same as gdir_server
22
+
23
+ = SEE ALSO
24
+
25
+ ((*gdir_server(1)*))
26
+
27
+ =end
@@ -1,31 +1,37 @@
1
1
  #!/usr/bin/env ruby
2
-
3
2
  =begin
4
- =Command gdir_server
5
-
6
- A stand-alone server program to provide a directory service of GPHys
7
- objects by using GDir.
3
+ = NAME
8
4
 
9
- ==Usage
5
+ gdir_server - A stand-alone server program to provide a directory service of GPhys
10
6
 
11
- At the command line,
7
+ = SYNOPSIS
12
8
 
13
9
  % gdir_server top_dir [[host:]port] [-a allowed_address]..
14
10
 
15
- where
16
- * top_dir: can be ".", "/", or whatever directory in your files system.
17
- * host: host address (name or ip) -- use it if you want to specify
11
+ = DESCRIPTION
12
+
13
+ A stand-alone server program to provide a directory service of GPhys
14
+ objects by using GDir.
15
+
16
+ = OPTION
17
+
18
+ :top_dir:
19
+ can be ".", "/", or whatever directory in your files system.
20
+ :host:
21
+ host address (name or ip) -- use it if you want to specify
18
22
  explicitly, such as "localhost", which is useful for ssh port forwarding.
19
- * port: the port number you want to assign (internally determined
23
+ :port:
24
+ the port number you want to assign (internally determined
20
25
  if not specified). A complete URI is printed if the server is started.
21
- * -a: limits accesses from remote hosts only to the ones specified.
26
+ :-a:
27
+ limits accesses from remote hosts only to the ones specified.
22
28
  Can be repeated multiple times. (Need the space between '-a' and the rest)
23
29
 
24
- ==Examples
25
30
  % gdir_server . 12345
26
31
  % gdir_server . localhost:12345 -a all
27
32
  % gdir_server . -a hoge.hero.org -a localhost
28
33
  % gdir_server . 12345 -a '192.168.1.*' -a localhost
34
+
29
35
  =end
30
36
 
31
37
  require "drb/drb"
data/bin/gpaop CHANGED
@@ -1,48 +1,61 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
- =gpaop
3
+ = NAME
4
4
 
5
- Carrying out an arithmetric operation (addition, subtraction,
6
- multiplication and division) multiple GPhys variables.
5
+ gpaop - Carrying out an arithmetric operation multiple GPhys variables.
7
6
 
8
- ==USAGE
9
-
10
- Operation, gphys1 (+-*/) gphys2 (+-*/) gphys3 (+-*/) ... is performed
11
- by the following command formats.
7
+ = USAGE
12
8
 
13
9
  % gpaop -f func [options] gturl1 gturl2 ...
14
10
 
15
- Format of 'gturl*' is 'path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]'
11
+ = DESCRIPTION
12
+
13
+ Carrying out an arithmetric operation (addition, subtraction,
14
+ multiplication and division) multiple GPhys variables.
15
+
16
+ = SYNOPSYS
17
+
18
+ Operation, gphys1 (+-*/) gphys2 (+-*/) gphys3 (+-*/) ... is performed
19
+ by the following command formats.
20
+
21
+ % gpaop -f func [options] gturl1 gturl2 ...
22
+
23
+ Format of 'gturl*' is 'path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]'
16
24
 
17
- % gpaop -f func --var varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]] \
18
- [options] gtfile1 gtfile2 ...
25
+ % gpaop -f func --var varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]] [options] gtfile1 gtfile2 ...
19
26
 
20
- * Commands which compute arithmetric operation on gphys variables are
21
- successively installed by linking this sciript as a
22
- "gp+(add|sub|multi|div)". You can omit '--func' option by using
23
- these commands.
27
+ Commands which compute arithmetric operation on gphys variables are
28
+ successively installed by linking this sciript as a
29
+ "gp+(add|sub|multi|div)". You can omit '--func' option by using
30
+ these commands.
24
31
 
25
- ==OPTIONS
32
+ = OPTIONS
26
33
 
27
- -f func --func func : kind of operation (add|sub|multi|div|)
28
- -v url --var url : set the variable name and slicing parameters.
29
- -h, --help : print this message.
30
- -o file, --output file : output filename (optional).
31
- : Default output filename is 'gphys.nc'.
34
+ :-f func, --func func
35
+ kind of operation (add|sub|multi|div|)
36
+ :-v url, --var url
37
+ set the variable name and slicing parameters.
38
+ :-h, --help
39
+ print this message.
40
+ :-o file, --output file
41
+ output filename (optional).
42
+ Default output filename is 'gphys.nc'.
32
43
 
33
- ==EXAMPLE
44
+ Usage Examples
34
45
 
35
- % gpaop -f add gtool.nc@temp gtool.nc@temp
36
- % gpaop -f sub gtool.nc@temp,t=1 gtool.nc@temp,t=2
46
+ % gpaop -f add gtool.nc@temp gtool.nc@temp
47
+ % gpaop -f sub gtool.nc@temp,t=1 gtool.nc@temp,t=2
37
48
 
38
- % gpaop -f multi --var temp gtool*.nc
39
- % gpaop -f div --var temp,t=1 gtool*.nc
40
- % gpaop -o temp.nc --var temp,t=1 gtool*.nc
49
+ % gpaop -f multi --var temp gtool*.nc
50
+ % gpaop -f div --var temp,t=1 gtool*.nc
51
+ % gpaop -o temp.nc --var temp,t=1 gtool*.nc
41
52
 
42
- ==HISTORY
53
+ = HISTORY
43
54
 
44
55
  2005/08/21 S Takehiro (created)
45
- 2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
56
+ 2005/08/23 S Takehiro (common methods to gp* commandmoved to gpcommon.rb)
57
+ 2010/03/10 Y SASAKI (change help block into RD format)
58
+ 2012/02/19 S Takehiro (description for gturl format updated)
46
59
 
47
60
  =end
48
61
 
data/bin/gpcat CHANGED
@@ -1,29 +1,37 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
+ = NAME
3
4
 
4
- =gpcat
5
+ gpcat - Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file.
5
6
 
6
- Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file.
7
+ = DESCRIPTION
7
8
 
8
- ==USAGE
9
+ ((*gpcat*)) is command line tools for read a variable in multiple
10
+ NetCDF files, concatenate and write them to a single netcdf file.
9
11
 
10
- % gpcat -v VAR [options] FILE1 FILE2...
12
+ = USAGE
11
13
 
14
+ % gpcat -v VAR [options] FILE1 FILE2...
12
15
 
13
- ==OPTIONS
16
+ = OPTIONS
14
17
 
15
- -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'.
18
+ :-h, --help
19
+ print this message.
20
+ :-v var, --variable var
21
+ variable name (required).
22
+ :-s sfmt, --slice sfmt
23
+ slice,thinnng (optional).
24
+ :-o file, --output file
25
+ output filename (optional). Default output filename is 'gphys.nc'.
26
+
20
27
 
21
- ==HISTORY
28
+ = HISTORY
22
29
 
23
30
  2005/05/17 S Takehiro (created)
24
31
  2005/08/10 S Takehiro (utilize internal function for printing help message)
25
32
  2005/08/21 S Takehiro (global attributes copied to the output file)
26
33
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
34
+ 2010/03/10 Y SASAKI (change help block into RD format)
27
35
 
28
36
  =end
29
37
 
data/bin/gpcut CHANGED
@@ -1,27 +1,36 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
- =gpcut
3
+ = NAME
4
4
 
5
- Extract, slicing and thinning a GPhys variable.
5
+ gpcut - Extract, slicing and thinning a GPhys variable.
6
6
 
7
- ==USAGE
7
+ = DESCRIPTION
8
8
 
9
- % gpcut [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
9
+ ((*gpcut*)) is command line tools for extract, slicing and thinning a GPhys variables.
10
10
 
11
- ==OPTIONS
11
+ = USAGE
12
12
 
13
- -h, --help : print this message.
14
- -m dim, --mean dim : average along dim axis (optional).
15
- -o file, --output file : output filename (optional).
16
- : Default output filename is 'gphys.nc'.
13
+ % gpcut [options] path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
17
14
 
18
- ==HISTORY
15
+ = OPTIONS
16
+
17
+ :-h, --help
18
+ print this message.
19
+ :-m dim, --mean dim
20
+ average along dim axis (optional).
21
+ :-o file, --output file
22
+ output filename (optional).
23
+ Default output filename is 'gphys.nc'.
24
+
25
+ = HISTORY
19
26
 
20
27
  2005/05/17 S Takehiro (created)
21
28
  2005/07/15 S Takehiro (open_gturl method is used for opening gphys variable)
22
29
  2005/08/10 S Takehiro (utilize internal function for printing help message)
23
30
  2005/08/21 S Takehiro (global attributes copied to the output file)
24
31
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
32
+ 2010/03/10 Y SASAKI (change help block into RD format)
33
+ 2012/02/19 S Takehiro (description for gturl format updated)
25
34
 
26
35
  =end
27
36
 
@@ -33,7 +42,7 @@ require "getoptlong"
33
42
 
34
43
  #------------------------ Default Settings ------------------------
35
44
  Output_default = 'gphys.nc'
36
- URLfmt = "path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
45
+ URLfmt = "path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
37
46
 
38
47
  #---------------------- Option Configuration ----------------------
39
48
  parser = GetoptLong.new(
data/bin/gpedit CHANGED
@@ -1,5 +1,37 @@
1
1
  #!/usr/bin/env ruby
2
+ =begin
3
+ = NAME
2
4
 
5
+ :gpedit:
6
+ Create or overwrite the attributes of a variable specified by
7
+ a gtool4-type URL (Only netCDF files are supported).
8
+
9
+ = USAGE
10
+
11
+ % gpedit [options] path[@|/][varname:var_attr=...][varname|+global_attr]
12
+
13
+ = EXAMPLES
14
+
15
+ * Add
16
+ % gpedit data.nc@temp:units=W/m
17
+ % gpedit -a data.nc@temp:missing_value=-2.0e20
18
+ % gpedit --add data.nc@temp+title=\"surface temperature\"
19
+
20
+ * Delete
21
+ % gpedit -d data.nc@lon:topology
22
+ % gpedit --delete data.nc@lon+Conventions
23
+ "
24
+ = HISTORY
25
+
26
+ 2012/02/19 S Takehiro (gturl format updated)
27
+ 2010/03/10 Y SASAKI (change help block into RD format)
28
+ 2007/07/18 Y. Morikawa 'gpattr' is renamed to 'gpedit'
29
+ 2006/09/29 Y. Morikawa A value looks like numeric is treated as a numerical value
30
+ 2005/01/09 Y. Morikawa
31
+ 2005/01/07 D. Tsukahara
32
+
33
+
34
+ =end
3
35
  ##################################################
4
36
  #= gpedit
5
37
  #== SYNOPSIS
@@ -10,6 +42,7 @@ SYNOP
10
42
 
11
43
  #== HISTORY
12
44
  #
45
+ # 2010/03/10 Y SASAKI (change help block into RD format)
13
46
  # 2007/07/18 Y. Morikawa 'gpattr' is renamed to 'gpedit'
14
47
  # 2006/09/29 Y. Morikawa A value looks like numeric is treated as a numerical value
15
48
  # 2005/01/09 Y. Morikawa
@@ -110,8 +143,11 @@ def parse_gturl_for_attr(gturl)
110
143
  if /(.*)@(.*)/ =~ gturl
111
144
  file = $1
112
145
  var = $2
146
+ elsif /(.*)\/(.*)/ =~ gturl
147
+ file = $1
148
+ var = $2
113
149
  else
114
- url_error "'@' between path & variable is not found"
150
+ url_error "'[@|/]' between path & variable is not found"
115
151
  end
116
152
  if /(.*):(.*)/ =~ var
117
153
  var_name = var.split(":")[0]
data/bin/gplist CHANGED
@@ -1,22 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
- =gplist
3
+ = NAME
4
4
 
5
- Print out info on GPhys-compatible variables in specified files.
5
+ gplist - print out info on GPhys-compatible variables in specified files.
6
6
 
7
- ==Usage
7
+ = Usage
8
8
 
9
9
  % gplist [-h] [ FILES... ]
10
10
 
11
11
  where FILES are plane files (NetCDF, grib, GrADS control..) or directories.
12
12
  If omitted, equivalent to specifing the current directory.
13
13
 
14
- ==HISTORY
14
+ = HISTORY
15
15
 
16
16
  2005/05/15 S Takehiro (created)
17
17
  2005/06/21 T Horinouchi (modified to use GDir (non-recursive version))
18
18
  2005/08/10 S Takehiro (utilize internal function for printing help message)
19
19
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
20
+ 2010/03/10 Y SASAKI (change help block into RD format)
20
21
 
21
22
  =end
22
23