usage: bin_couple method thresh inCtlFile1 inCtlFile2 outfile
method:
0 (sum) : in1 + in2
1 (difference) : in1 - in2
2 (product) : in1 * in2
3 (ratio) : in1 / in2
4 (relative diff. 1) : (in1 - in2) / in2
5 (relative diff. 2) : 2*(in1 - in2) / (in1 + in2)
6 (square diff.) : in1*in1 - in2*in2
7 (root square diff.): sqrt(in1*in1 - in2*in2)
8 (diff. square) : (in1 - in2)*(in1 - in2)
9 (root diff.) : sqrt(in1) - sqrt(in2)
thresh: threshold of the denominator when method=3-5.
If the denominator is less than the threshold, then the output value is reset
at a very small value (-1.0E+30).
inCtlFile1 : GrADS control file for input data file 1
inCtlFile2 : GrADS control file for input data file 2
outfile : Output data file
usage: bin_convert nx ny method A B inCtlFile outfile
nx : # of x-dimension elements for output.
ny : # of y-dimension elements for output.
method=0 : v = u (does nothing)
1 : v = A + B * u (linear)
2 : v = A * u^B (power-law)
3 : v = exp(A + B*u) (exponential)
4 : v = ln(A + B*u) (logarithmic)
5 : v = A + (1 + B*G)*u (random noises are superimposed)
where G is a normalized Gaussian noise (average: 0; variance:1).
inCtlFile : GrADS control file for an input file
usage: bin_exposure timeLag timeWid fmax ctlFile1 (ctlFile2 ctlFile3 ...) timeLag : time lag (integer) timeWid : temporal filter width (integer, 1 means no filtering) fmax : factor for automatic determination of Rmax (usually around 1.2) ctlFile : GrADS control files for binary data
usage: bin_gray factor Rmax power controlFile outfileHead (iz ivar it) (< exposureFile) controlFile: GrADS control file for the input data file outfileHead: filename head for output files Scaling formula: Y = min(Rmax, X * fac) Conversion formula: Z = int(Y / Rmax**pwr * 255) = [0, 255] If Rmax == 0, then Rmax is read in from standard input (exposureFile). If iz, ivar, and it are given, only the specified data will be processed.
$ ../bin/bin_gray 1.182 1.1 0.75 out_ci0045.ctl img_ci0045
400 300 1.1000000 img_ci0045_t1_var1_z1.gray
400 300 1.1000000 img_ci0045_t1_var2_z1.gray
$ convert -depth 8 -size 640x480+0 img_ci0045_t1_var1_z1.gray img_ci0045_t1_var1_z1.png
$ display -rotate 180 img_ci0045_t1_var1_z1.gif
usage : bin_dump inCtlFile > outfile inCtlFile : GrADS control file for an input file outfile : output file (text format)
$ bin/bin_dump examples/out_rs0067.ctl | less # it, ivar, n : 1 1 1 0.43441936 0.39797837 0.37406304 0.43220648 0.42556950 ... ...
usage: bin_sample ixi ixs nx iyi iys ny inCtlFile outfile ixi : initial index for X ixs : step of X-index nx : # of x-pixels for output iyi : initial index for Y iys : step of Y-index ny : # of y-pixels for output
% ../bin/bin_sample 2 2 30 2 2 30 out_rs0067.ctl sample_rs0067
usage : bin_stat inCtlFile (mmask thresh1 thresh2) > outfile
inCtlFile : input GrADS control file
outfile : output file (text format)
mmask=0 : no data masking
1 : dat > thresh1
2 : dat < thresh1
3 : thresh1 < dat < thresh2
4 : dat < thresh1 or dat > thresh2
$ bin/bin_stat examples/test_rs0067.ctl
# iz, ivar, it, frac, min, max, average, stdev, rms, skewness
1 1 1 1.0000 3.3940E-01 6.8978E-01 4.8468E-01 7.1038E-02 4.8986E-01 4.2904E-01
1 2 1 1.0000 3.6220E-01 2.2394E+00 1.0513E+00 4.2648E-01 1.1345E+00 8.8130E-01
...
usage: row_stat N func ithresh (thresh1 thresh2) < infile > outfile
N : # of sequential data for calculating statistics, in a line
func : 0, raw data; 1, ln(dat); 2, exp(dat);
The conversion is performed before the statistics computation.
ithresh
=0 : no threshold,
=1 : dat >= thresh1,
=2 : dat <= thresh1,
=3 : thresh1 <= dat <= thresh2,
=4 : dat <= thresh1 or dat >= thresh2
$ bin/bin_dump examples/out_rs0067.ctl > tmp $ bin/row_stat 3600 0 0 < tmp # frac, min, max, average, stdev, rms, skewness 1 1.0000 3.0509E-01 7.0611E-01 4.8130E-01 7.7988E-02 4.8757E-01 2.8613E-01 2 1.0000 3.7049E-01 2.2713E+00 1.0711E+00 4.4416E-01 1.1595E+00 9.5030E-01 ...
2010-08-04
2010-07-26
2010-07-25
2009-08-22
2009-06-15
2009-05-10