lib/App/SeismicUnixGui/sunix/data/wpcuncompress.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 50 CC 1 SCAR 6.9
CC
1
Cov
0%
Step
2.0
note
2.0
clear
2.0
CRAP 2.0
1 package App::SeismicUnixGui::sunix::data::wpcuncompress;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 WPCUNCOMPRESS --- UNCOMPRESS a 2D section
25  
26  
27  
28 wpc1uncompress < stdin > stdout
29  
30  
31  
32 Required Parameters:
33  
34  
35  
36 Optional Parameters:
37  
38
39  
40 opt=null
41  
42  
43  
44 Notes:
45  
46 No parameter is required for this program. All the information for
47  
48 uncompression has been encoded in the header of the compressed data.
49  
50  
51  
52 Caveats:
53  
54 For the current implementation, the compressed data themselves are
55  
56 NOT portable, i.e., the data compressed on one platform might not be
57  
58 recognizable on another.
59  
60  
61  
62 =head2 User's notes (Juan Lorenzo)
63 untested
64  
65 =cut
66  
67  
68 =head2 CHANGES and their DATES
69  
70 =cut
71  
72 use Moose;
73 our $VERSION = '0.0.1';
74  
75  
76 =head2 Import packages
77  
78 =cut
79  
80 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
81  
82 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
83 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
84  
85  
86 =head2 instantiation of packages
87  
88 =cut
89  
90 my $get = L_SU_global_constants->new();
91 my $Project = Project_config->new();
92 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
93 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
94 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
95  
96 my $var = $get->var();
97 my $on = $var->{_on};
98 my $off = $var->{_off};
99 my $true = $var->{_true};
100 my $false = $var->{_false};
101 my $empty_string = $var->{_empty_string};
102  
103 =head2 Encapsulated
104 hash of private variables
105  
106 =cut
107  
108 my $wpcuncompress = {
109 _opt => '',
110 _Step => '',
111 _note => '',
112  
113 };
114  
115 =head2 sub Step
116  
117 collects switches and assembles bash instructions
118 by adding the program name
119  
120 =cut
121  
122 sub Step {
123  
124 $wpcuncompress->{_Step} = 'wpcuncompress'.$wpcuncompress->{_Step};
125 return ( $wpcuncompress->{_Step} );
126  
127 }
128  
129  
130 =head2 sub note
131  
132 collects switches and assembles bash instructions
133 by adding the program name
134  
135 =cut
136  
137 sub note {
138  
139 $wpcuncompress->{_note} = 'wpcuncompress'.$wpcuncompress->{_note};
140 return ( $wpcuncompress->{_note} );
141  
142 }
143  
144  
145  
146 =head2 sub clear
147  
148 =cut
149  
150 sub clear {
151  
152 $wpcuncompress->{_opt} = '';
153 $wpcuncompress->{_Step} = '';
154 $wpcuncompress->{_note} = '';
155 }
156  
157  
158 =head2 sub opt
159  
160  
161 =cut
162  
163 sub opt {
164  
165 my ( $self,$opt ) = @_;
166 # if ( $opt ne $empty_string ) {
167 #
168 # $wpcuncompress->{_opt} = $opt;
169 # $wpcuncompress->{_note} = $wpcuncompress->{_note}.' opt='.$wpcuncompress->{_opt};
170 # $wpcuncompress->{_Step} = $wpcuncompress->{_Step}.' opt='.$wpcuncompress->{_opt};
171 #
172 # } else {
173 # print("wpcuncompress, opt, missing opt,\n");
174 # }
175 }
176  
177  
178 =head2 sub get_max_index
179  
180 max index = number of input variables -1
181
182 =cut
183
184 sub get_max_index {
185 my ($self) = @_;
186 my $max_index = 0;
187  
188 return($max_index);
189 }
190
191
192 1;