gpl sub-sampling
character fin: input file
character fout: output file
integer skip: sub-sampling parameter
colext.sh
COLumn EXTractor
Usage:
./colext.sh [options] [col numbers] < file
Options:
fs=" " : input field separator
rs="\n" : input record separator
ofs=" " : output field separator
ors="\n" : output record separator
Example:
$ cat testcol.dat
col1 col2 col3 col4 col5
1 2 3 4 5
11 12 13 14 15
21 22 23 24 25
$ ./colext.sh ors=";\n" 3 2 5 <testcol.dat
col3 col2 col5;
3 2 5;
13 12 15;
23 22 25;
gplBpad
Gpl binary pad
input cmdline parameters:
integer n1: # of grids in fast dimension
character fin: input binary file
character fout: output binary file
optional parameters:
integer ,optional n2: # of grids in slow dimension
integer ,optional l: left pad
integer ,optional r: right pad
integer ,optional t: top pad
integer ,optional b: bottom pad
gplBcut
Gpl binary cut
input cmdline parameters:
integer n1: # of grids in fast dimension
character fin: input binary file
character fout: output binary file
optional parameters:
integer ,optional n2: # of grids in slow dimension
integer ,optional l: left cut
integer ,optional r: right cut
integer ,optional t: top cut
integer ,optional b: bottom cut
gplBinSubSample
Gpl binary subsample
input cmdline parameters:
integer n1: # of grids in fast dimension
character fin: input binary file
character fout: output binary file
optional parameters:
integer ,optional n2: # of grids in slow dimension
integer ,optional iskip1: skip in fast dimension
integer ,optional iskip2: skip in slow dimension
gplTracePick
Gpl trace picker
input cmdline parameters:
integer n1: # of grids in fast dimension
character fin: input binary file
character fout: output binary file
integer first: first pick (1~n2)
optional parameters:
integer ,optional n2: # of grids in slow dimension
integer ,optional last: last pick (first~n2)
integer ,optional step: pick step
real ,optional d1: grid size
gplTracePickCmplx
- complex version
gplTracePickDcmplx
- complex double version
gplHTracePick
Gpl Horizontal trace picker
input cmdline parameters:
integer n1: # of grids in fast dimension
character fin: input binary file
character fout: output binary file
integer first: first pick (1~n2)
optional parameters:
integer ,optional n2: # of grids in slow dimension
integer ,optional last: last pick (first~n2)
integer ,optional step: pick step
real ,optional d2: grid size
gplLinVel
Gpl Linear Velocity Generator
input cmdline parameters:
integer n1: # of grids in fast dimension
integer n2: # of grids in slow dimension
real vmin: min. velocity at the top
real vmax: max. velocity at the bottom
character fout: output binary file
gnuqp.py
GNU Quick Plot
Usage :
./gnuqp.py filename1 [u 1:2] [w l], filename2 [u 1:2] [w l], filename3 ...
Required parameters :
filename1
Empty filename[2,3,...] will be replaced by the filename1
Optional parameters :
u 1:2 : columns you want to plot
w [lp..]: line style- line, point, dot or impulse ..etc (default: w l)
-p : do not run gnuplot. just print the gnuplot command
-c : no comma seperation - the arguments are filenames seperated with a blank- use with glob pattern
-l : set logscale y
-g : set grid
-x[:1.2] : set xrange [:1.2]
-y[1:5] : set yrange [1:5]
Examples :
./gnuqp.py -p "file1", u 1:3 w p
-> p 'file1' u 1:2 w l, 'file1' u 1:3 w p
./gnuqp.py -p -c file.00*
-> p 'file.0010' w l,'file.0020' w l,'file.0030' w l
fixbbox.py
Fix bounding box of an eps image.
Usage: ./fixbbox.py <input eps file> <output eps file>
imageinfo.rb
Print infomation of an image file
info: filename, format, dimension in pixels, colors, size, resolution, dimension in inch or cm, depth, compression
quickBackup.py
GNU Quick Backup
make './bak' directory and copy backup file
Usage :
quickBackup.py [-h/-b/-t] filename.extension
Required parameters :
filename
Optional parameters :
-h : place backup number at head ( bak01.filename.extension )
-b : place backup number between filename and extension ( filename.bak01.extension )
-t : place backup number at tail ( filename.extension.bak01 )
** default : -b
-c : add comment to the log file ( ./bak/quickBackup.log )
Examples :
quickBackup.py file1.f90
quickBackup.py file1.f90
ls ./bak
-> file1.bak01.f90 file1.bak02.f90 quickBackup.log
Rtouch
Gpl Recursive Touch : touch files in a directory and its subdirectories recursively
Usage :
gplrtouch.sh [directory]
Required parameter :
directory name