App-SeismicUnixGui
view release on metacpan or search on metacpan
lib/App/SeismicUnixGui/sunix/header/surandhw.pm view on Meta::CPAN
package App::SeismicUnixGui::sunix::header::surandhw;
=head2 SYNOPSIS
PERL PROGRAM NAME:
AUTHOR: Juan Lorenzo (Perl module only)
DATE:
DESCRIPTION:
Version:
=head2 USE
=head3 NOTES
=head4 Examples
=head2 SYNOPSIS
=head3 SEISMIC UNIX NOTES
surandhw - set header word to random variable
surandhw <stdin >stdout key=tstat a=0 min=0 max=1
Required parameters:
none (no op)
Optional parameters:
key=tstat header key word to set
a=0 =1 flag to add original value to final key
noise=gauss noise probability distribution
=flat for uniform; default Gaussian
seed=from_clock random number seed (integer)
min=0 minimum random number
max=1 maximum radnom number
NOTES:
The value of header word key is computed using the formula:
val(key) = a * val(key) + rand
Example:
surandhw <indata key=tstat a=0 min=0 max=10 > outdata
=head2 User's notes (Juan Lorenzo)
untested
=cut
=head2 CHANGES and their DATES
=cut
use Moose;
our $VERSION = '0.0.1';
=head2 Import packages
=cut
use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
use App::SeismicUnixGui::misc::SeismicUnix qw($go $in $off $on $out $ps $to $suffix_ascii $suffix_bin $suffix_ps $suffix_segy $suffix_su);
use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
=head2 instantiation of packages
=cut
my $get = L_SU_global_constants->new();
my $Project = Project_config->new();
my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
my $PS_SEISMIC = $Project->PS_SEISMIC();
my $var = $get->var();
my $on = $var->{_on};
my $off = $var->{_off};
my $true = $var->{_true};
my $false = $var->{_false};
my $empty_string = $var->{_empty_string};
=head2 Encapsulated
hash of private variables
=cut
my $surandhw = {
( run in 1.341 second using v1.01-cache-2.11-cpan-39bf76dae61 )