[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dennou-ruby:002336] Re: method name
- To: dennou-ruby@xxxxxxxxxxx
- Subject: [dennou-ruby:002336] Re: method name
- From: Shin-ichi Takehiro <takepiro@xxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 11:56:12 +0900
竹広です. 
ruby/Gphys の手習いをかねて, 基本的なツールとなるスクリプトを
いくつかかいてみました. バグあったり, 書き方が拙いなどいろいろ
問題点があろうかと思いますが, お役立ちになりそうなら, gpview 等と
同じく Gphys にいれて頂きたく提供致します. 
  * gpcut  : extract, slicing and thinning a GPhys variable from NetCDF file.
      Usage: gpcut [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]]...
      Options: 
	 -h,      --help         : print this message. 
	 -m dim,  --mean dim     : average along dim axis (optional).
	 -o file, --output file  : output filename (optional).
				 : Default output filename is 'gphys.nc'.
  * gpcat  : Read a variable in multiple NetCDF files, 
	     concatenate and write them to a single netcdf file. 
      Usage: gpcat -v VAR [options] FILE1 FILE2...
      Options: 
	 -h,      --help         : print this message. 
	 -v var,  --variable var : variable name (required).
	 -s sfmt, --slice  sfmt  : slice,thinnng  (optional).
	 -o file, --output file  : output filename (optional).
				 : Default output filename is 'gphys.nc'.
  * gpmath   : operate a math function to a GPhys variable.
      Usage: gpmath [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]]..
      Options: 
	 -h,      --help          : print this message. 
	 -f func, --function func : function name to operate (optional). 
				  : Default function name is 'math'.
	 -o file, --output file   : output filename (optional).
				  : Default output filename is 'gphys.nc'.
	 -n name, --name name     : name of the output gphys variable (optional).
	 -l name, --longname name : long_name attr. of the output gphys variable (optional).
gpmath は gplog10 という形でシンボリンクリンクを張ることで
算術演算のスクリプトをいくつも作ることができます.