Program sfintbin | Data binning by trace sorting. 
[SYNOPSIS]
sfintbin < in.rsf > out.rsf inv=n xkey= ykey= xmin= xmax= ymin= ymax= head= xk= yk= map= mask=
[COMMENTS]

If inv=n, the input is 2-D (n1 x ntr). The output is 3-D (n1 x n2 x n3), n2 and
n3 correspond to two selected keys from the header file. 

If inv=y, the input is 3-D, and the output is 2-D.

if xkey < 0, the first axis indexes traces in a gather like cdpt.

June 2015 program of the month:
http://ahay.org/blog/2015/06/10/program-of-the-month-sfintbin/

[PARAMETERS]
string  | head | = |   | 	header file 
bool    | inv | =n |  [y/n] | 	inversion flag 
string  | map | = |   | 	output map file 
string  | mask | = |   | 	output mask file 
string  | xk | = |   | 	x key name 
int     | xkey | = |   | 	x key number (if no xk), default is fldr 
int     | xmax | = |   | 	x maximum 
int     | xmin | = |   | 	x minimum 
string  | yk | = |   | 	y key name 
int     | ykey | = |   | 	y key number (if no yk), default is tracf 
int     | ymax | = |   | 	y maximum 
int     | ymin | = |   | 	y minimum 
[DIRECTORY]
system/seismic
