DOCUMENTATION

SYNOPSIS

PERL PERL PROGRAM NAME: Sseg2su_config.pm 
AUTHOR: Juan Lorenzo
DATE: July 29 2016 
		April 4, 2018 V 1.0.2
		
DESCRIPTION Combines configuration variables
    both from a simple text file and from
    from additional packages.
    Takes seg2-formatted data and converts to
    su fomratted data with SIOSEIS (USC)

USED FOR 
     Upper-level variables
     definitions in Sseg2su
     Seismic data is assumed currently to be in
     dat/seg2 format, as output by Geometerics
     

BASED ON:
Version X  Based on linux command "cat"
Version XX based on Sucat.pm June 29 2016
   Added a simple configuration file readable 
   and writable using Config::Simple (CPAN)
Version 1.0.2 derives from Sseg2su_config.pl
    
  
Needs: Simple (ASCII) local configuration 
     file is Sseg2su.config
     Needs sioseis executable already installed 
     sioseis binary executable must be automatically available
     pn a system path.

EXAMPLE configuration file

 A local onfiguration file
 An example Sseg2su.config contains:
 
 $number_of_files	   =  38;
 $first_file_number  	= 1000;
 
 print("number of files is $number_of_files\n");

private hash

LOCAL VARIABLES FOR THIS PROJECT

sub get_max_index

max index = number of input variables -1