App-SeismicUnixGui

 view release on metacpan or  search on metacpan

lib/App/SeismicUnixGui/misc/mkparfile.pm  view on Meta::CPAN

package App::SeismicUnixGui::misc::mkparfile;

use Moose;
our $VERSION = '0.0.1';

=head1 DOCUMENTATION

=head2 SYNOPSIS 

 PROGRAM NAME: mkparfile 
 AUTHOR: Juan Lorenzo 
 DATE:   Sept. 15 2015 
 DESCRIPTION: 
 Version: 1

=head2 USE

=head3 NOTES 

=head4 
 Examples

=head3 SEISMIC UNIX NOTES  



=head4 CHANGES and their DATES

=cut

=head2 SEISMIC UNIX NOTES

 MKPARFILE - convert ascii to par file format 				
 									
 mkparfile <stdin >stdout 						
 									
 Optional parameters:							
 	string1="par1"	first par string			
 	string2="par2"	second par string			
 									
 This is a tool to convert values written line by line to parameter 	
 vectors in the form expected by getpar.  For example, if the input	
 file looks like:							
 	t0 v0								
 	t1 v1								
	...								
 then									
	mkparfile <input >output string1=tnmo string2=vnmo		
 yields:								
	tnmo=t0,t1,...							
	vnmo=v0,v1,...							
 			

=head3 STEPS

 1. define the types of variables you are using
    these would be the values you enter into 
    each of the Seismic Unix programs 

 2. build a list or hash with all the possible variable
    names you may use and you can even change them

=cut

my $mkparfile = {
    _string1 => '',
    _string2 => '',
    _note    => '',
    _Step    => ''
};

# define a value

my $newline = '';

#sub test {
# my ($test,@value) = @_;
#print("\$test or the first scalar  'holds' a  HASH $test
# that represents the name of the
# subroutine you are trying to use and all its needed components\n");
# print("\@value, the second scalar is something 'real' you put in, i.e., @value\n\n");
# print("new line is $newline\n");
#my ($sugain->{_Step}) = $sugain->{_Step} +1;
#print("Share step is first $sugain->{_Step}\n");

=head2 subroutine clear

  sets all variable strings to '' 

=cut

sub clear {
    $mkparfile->{_string1} = '';
    $mkparfile->{_string2} = '';
    $mkparfile->{_note}    = '';
    $mkparfile->{_Step}    = '';
}

=head2 subroutine string1 

  sets first data column  in files

=cut



( run in 0.609 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )