lib/App/SeismicUnixGui/sunix/transform/suspecfx.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 41 CC 2 SCAR 11.0
CC
2
Cov
0%
NULL
6.0
Step
2.0
note
2.0
CRAP 3.0
1 package App::SeismicUnixGui::sunix::transform::suspecfx;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: SUSPECFX - Fourier SPECtrum (T -> F) of traces
8 AUTHOR: Juan Lorenzo (Perl module only)
9 DATE:
10 DESCRIPTION:
11 Version:
12  
13 =head2 USE
14  
15 =head3 NOTES
16  
17 =head4 Examples
18  
19 =head3 SEISMIC UNIX NOTES
20  
21 SUSPECFX - Fourier SPECtrum (T -> F) of traces
22  
23 suspecfx <infile >outfile
24  
25 Note: To facilitate further processing, the sampling interval
26 in frequency and first frequency (0) are set in the
27 output header.
28  
29 NULL=nothing
30  
31 Credits:
32  
33 CWP: Dave (algorithm), Jack (reformatting for SU)
34  
35 Trace header fields accessed: ns, dt
36 Trace header fields modified: ns, dt, trid, d1, f1
37  
38 =head2 CHANGES and their DATES
39  
40 =cut
41  
42 use Moose;
43 our $VERSION = '0.0.1';
44 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
45  
46 my $get = L_SU_global_constants->new();
47  
48 my $var = $get->var();
49 my $empty_string = $var->{_empty_string};
50  
51 my $suspecfx = {
52 _NULL => '',
53 _Step => '',
54 _note => '',
55 };
56  
57 =head2 sub Step
58  
59 collects switches and assembles bash instructions
60 by adding the program name
61  
62 =cut
63  
64 sub Step {
65  
66 $suspecfx->{_Step} = 'suspecfx' . $suspecfx->{_Step};
67 return ( $suspecfx->{_Step} );
68  
69 }
70  
71 =head2 sub note
72  
73 collects switches and assembles bash instructions
74 by adding the program name
75  
76 =cut
77  
78 sub note {
79  
80 $suspecfx->{_note} = 'suspecfx' . $suspecfx->{_note};
81 return ( $suspecfx->{_note} );
82  
83 }
84  
85 =head2 sub clear
86  
87 =cut
88  
89 sub clear {
90  
91 $suspecfx->{_NULL} = '';
92 $suspecfx->{_Step} = '';
93 $suspecfx->{_note} = '';
94 }
95  
96 =head2 sub NULL
97  
98  
99 =cut
100  
101 sub NULL {
102  
103 my ( $self, $NULL ) = @_;
104 if ( $NULL ne $empty_string ) {
105  
106 $suspecfx->{_NULL} = $NULL;
107 $suspecfx->{_note} = $suspecfx->{_note} . ' ' . $suspecfx->{_NULL};
108 $suspecfx->{_Step} = $suspecfx->{_Step} . ' ' . $suspecfx->{_NULL};
109  
110 }
111 else {
112 print("suspecfx, NULL, missing NULL,\n");
113 }
114 }
115  
116 =head2 sub get_max_index
117
118 max index = number of input variables -1
119
120 =cut
121  
122 sub get_max_index {
123 my ($self) = @_;
124 my $max_index = 0;
125  
126 return ($max_index);
127 }
128  
129 1;