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.
- checksums.yaml +4 -4
- data/ChangeLog +5631 -464
- data/LICENSE.txt +34 -0
- data/README +23 -25
- data/bin/gdir_client +25 -7
- data/bin/gdir_server +19 -13
- data/bin/gpaop +41 -28
- data/bin/gpcat +19 -11
- data/bin/gpcut +20 -11
- data/bin/gpedit +37 -1
- data/bin/gplist +5 -4
- data/bin/gpmath +21 -14
- data/bin/gpmaxmin +9 -7
- data/bin/gpprint +15 -11
- data/bin/gpvect +217 -96
- data/bin/gpview +278 -123
- data/bin/grads2nc_with_gphys +11 -6
- data/doc/attribute.html +1 -1
- data/doc/axis.html +85 -66
- data/doc/coordmapping.html +22 -22
- data/doc/dclext.html +709 -0
- data/doc/derivative/gphys-derivative.html +33 -13
- data/doc/derivative/numru-derivative.html +60 -31
- data/doc/gdir.html +76 -76
- data/doc/gdir_server.html +28 -16
- data/doc/ggraph.html +493 -706
- data/doc/gpcat.html +28 -11
- data/doc/gpcut.html +26 -11
- data/doc/gphys.html +195 -71
- data/doc/gphys_fft.html +162 -21
- data/doc/gphys_grads_io.html +9 -9
- data/doc/gphys_grib_io.html +7 -7
- data/doc/gphys_io.html +118 -31
- data/doc/gphys_io_common.html +1 -1
- data/doc/gphys_netcdf_io.html +14 -14
- data/doc/gplist.html +6 -5
- data/doc/gpmath.html +32 -14
- data/doc/gpmaxmin.html +9 -7
- data/doc/gpprint.html +14 -11
- data/doc/gpview.html +254 -146
- data/doc/grads2nc_with_gphys.html +6 -8
- data/doc/grads_gridded.html +77 -77
- data/doc/grib.html +102 -59
- data/doc/grid.html +45 -61
- data/doc/index.html +51 -41
- data/doc/index.rd +47 -36
- data/doc/netcdf_convention.html +39 -39
- data/doc/unumeric.html +79 -30
- data/doc/update +2 -1
- data/doc/varray.html +62 -56
- data/doc/varraycomposite.html +3 -3
- data/ext/ext_coord.c +209 -0
- data/ext/ext_init.c +7 -0
- data/ext/extconf.rb +41 -0
- data/ext/interpo.c +536 -0
- data/ext/multibitIO.c +567 -0
- data/lib/numru/dcl_mouse.rb +71 -0
- data/lib/numru/dclext.rb +2749 -0
- data/lib/numru/derivative.rb +124 -31
- data/lib/numru/ganalysis.rb +7 -0
- data/lib/numru/ganalysis/covariance.rb +154 -0
- data/lib/numru/ganalysis/eof.rb +302 -0
- data/lib/numru/ganalysis/histogram.rb +337 -0
- data/lib/numru/ganalysis/met.rb +872 -0
- data/lib/numru/ganalysis/planet.rb +392 -0
- data/lib/numru/ggraph.rb +1709 -2498
- data/lib/numru/gphys.rb +7 -1
- data/lib/numru/gphys/assoccoords.rb +384 -0
- data/lib/numru/gphys/attribute.rb +10 -11
- data/lib/numru/gphys/axis.rb +97 -25
- data/lib/numru/gphys/coordmapping.rb +2 -2
- data/lib/numru/gphys/derivative.rb +117 -46
- data/lib/numru/gphys/gphys.rb +595 -31
- data/lib/numru/gphys/gphys_fft.rb +365 -13
- data/lib/numru/gphys/gphys_grads_io.rb +6 -5
- data/lib/numru/gphys/gphys_grib_io.rb +6 -6
- data/lib/numru/gphys/gphys_gtool3_io.rb +162 -0
- data/lib/numru/gphys/gphys_hdfeos5_io.rb +672 -0
- data/lib/numru/gphys/gphys_io.rb +260 -20
- data/lib/numru/gphys/gphys_io_common.rb +1 -1
- data/lib/numru/gphys/gphys_netcdf_io.rb +111 -40
- data/lib/numru/gphys/gphys_nusdas_io.rb +64 -7
- data/lib/numru/gphys/grads_gridded.rb +158 -57
- data/lib/numru/gphys/grib.rb +205 -157
- data/lib/numru/gphys/grib_params.rb +196 -1
- data/lib/numru/gphys/grid.rb +214 -83
- data/lib/numru/gphys/gtool3.rb +771 -0
- data/lib/numru/gphys/interpolate.rb +992 -0
- data/lib/numru/gphys/mdstorage.rb +145 -0
- data/lib/numru/gphys/narray_ext.rb +34 -0
- data/lib/numru/gphys/netcdf_convention.rb +44 -2
- data/lib/numru/gphys/subsetmapping.rb +1 -1
- data/lib/numru/gphys/unumeric.rb +101 -8
- data/lib/numru/gphys/varray.rb +66 -20
- data/lib/numru/gphys/varraycomposite.rb +107 -29
- data/lib/numru/gphys/varraygrib.rb +70 -8
- data/lib/numru/gphys/varraygtool3.rb +226 -0
- data/lib/numru/gphys/varrayhdfeos5.rb +451 -0
- data/lib/numru/gphys/varraynetcdf.rb +13 -5
- data/lib/numru/gphys/version.rb +3 -0
- data/sample/druby_cli1.rb +2 -0
- data/sample/druby_cli2.rb +0 -6
- data/sample/druby_serv2.rb +0 -13
- data/sample/ncep_theta_coord.rb +79 -0
- data/test/eof_slp.rb +28 -0
- data/test/mltbit.dat +0 -0
- data/test/test_multibitIO.rb +19 -0
- data/testdata/assoc_crds.nc +0 -0
- metadata +79 -8
- data/lib/numru/dclext_datetime_ax.rb +0 -220
- data/lib/numru/vizshot.rb +0 -697
data/LICENSE.txt
ADDED
@@ -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
|
-
|
3
|
+
== Description and general information
|
4
|
+
See http://ruby.gfd-dennou.org/products/gphys/
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
+
== Licence
|
7
|
+
See LICENSE.txt
|
6
8
|
|
7
|
-
|
9
|
+
== Dependent libraries
|
8
10
|
|
9
|
-
|
10
|
-
See http://ruby.gfd-dennou.org/workshop200303/horinout/ (in Japanese).
|
11
|
+
As of GPhys 1.2.0.
|
11
12
|
|
12
|
-
|
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
|
-
|
24
|
+
Recommended libraries:
|
25
|
+
* Ruby-LAPACK : 1.5 or later (used for efficiency if installed)
|
15
26
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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.)
|
data/bin/gdir_client
CHANGED
@@ -1,9 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
1
2
|
irb -r numru/gdir_connect_ftp-like
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
data/bin/gdir_server
CHANGED
@@ -1,31 +1,37 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
2
|
=begin
|
4
|
-
=
|
5
|
-
|
6
|
-
A stand-alone server program to provide a directory service of GPHys
|
7
|
-
objects by using GDir.
|
3
|
+
= NAME
|
8
4
|
|
9
|
-
|
5
|
+
gdir_server - A stand-alone server program to provide a directory service of GPhys
|
10
6
|
|
11
|
-
|
7
|
+
= SYNOPSIS
|
12
8
|
|
13
9
|
% gdir_server top_dir [[host:]port] [-a allowed_address]..
|
14
10
|
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
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
|
-
|
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
|
-
=
|
3
|
+
= NAME
|
4
4
|
|
5
|
-
|
6
|
-
multiplication and division) multiple GPhys variables.
|
5
|
+
gpaop - Carrying out an arithmetric operation multiple GPhys variables.
|
7
6
|
|
8
|
-
|
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
|
-
|
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
|
-
|
18
|
-
[options] gtfile1 gtfile2 ...
|
25
|
+
% gpaop -f func --var varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]] [options] gtfile1 gtfile2 ...
|
19
26
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
32
|
+
= OPTIONS
|
26
33
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
44
|
+
Usage Examples
|
34
45
|
|
35
|
-
|
36
|
-
|
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
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
53
|
+
= HISTORY
|
43
54
|
|
44
55
|
2005/08/21 S Takehiro (created)
|
45
|
-
2005/08/23 S Takehiro (common methods to gp*
|
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
|
-
|
5
|
+
gpcat - Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file.
|
5
6
|
|
6
|
-
|
7
|
+
= DESCRIPTION
|
7
8
|
|
8
|
-
|
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
|
-
|
12
|
+
= USAGE
|
11
13
|
|
14
|
+
% gpcat -v VAR [options] FILE1 FILE2...
|
12
15
|
|
13
|
-
|
16
|
+
= OPTIONS
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
|
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
|
-
=
|
3
|
+
= NAME
|
4
4
|
|
5
|
-
Extract, slicing and thinning a GPhys variable.
|
5
|
+
gpcut - Extract, slicing and thinning a GPhys variable.
|
6
6
|
|
7
|
-
|
7
|
+
= DESCRIPTION
|
8
8
|
|
9
|
-
|
9
|
+
((*gpcut*)) is command line tools for extract, slicing and thinning a GPhys variables.
|
10
10
|
|
11
|
-
|
11
|
+
= USAGE
|
12
12
|
|
13
|
-
|
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
|
-
|
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
|
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 "'
|
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
|
-
=
|
3
|
+
= NAME
|
4
4
|
|
5
|
-
|
5
|
+
gplist - print out info on GPhys-compatible variables in specified files.
|
6
6
|
|
7
|
-
|
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
|
-
|
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
|
|