SYNOPSIS

PERL PROGRAM NAME:

AUTHOR: Juan Lorenzo (Perl module only)

DATE:

DESCRIPTION:

Version:

USE

NOTES

Examples

SYNOPSIS

SEISMIC UNIX NOTES SULHEAD - Load information from an ascii column file into HEADERS based

	   on the value of the user specified header field		

  sulhead < inflie > outfile cf=Column_file key=..  [ optional parameters]



 Required parameters:							

 cf=Name of column file						

 key=key1,key2,...Number of column entires				

 Optional parameters:							

 mc=1		Column number to use to match rows to traces		

Notes:

 Caveat: This is not simple trace header setting, but conditional	

 setting.								



 This utility reads the column file and loads the values into the	

 specified header locations. Each column represents one set of header  

 words, one of them (#mc) is used to match the rows to the traces	

 using header tr.key[mc].						



 Example:								

 key=cdp,ep,sx   mc=1	cf=file						

 file contains:							

	1  2  3								

	2  3  4								



 if tr.cdp equals 1 then tr.ep and tr.sx will be set to 2 and 3		

 if tr.cdp equals 2 then tr.ep and tr.sx will be set to 3 and 4		

 if tr.cdp equals other than tr.trid equals 3					



 Caveat: the user has to make it sure that number of entires in key=	

	 is equal the number of columns stored in the file.		



 For simple mass setting of header words, see selfdoc of:  sushw	







 Credits: Balasz Nemeth, Potash Corporation, Saskatoon Saskatchewan

 Given to CWP in 2008 

User's notes (Juan Lorenzo) untested

CHANGES and their DATES

Import packages

instantiation of packages

Encapsulated hash of private variables

sub Step

collects switches and assembles bash instructions by adding the program name

sub note

collects switches and assembles bash instructions by adding the program name

sub clear

sub cf

sub key

sub mc

sub get_max_index

max index = number of input variables -1