lib/App/SeismicUnixGui/big_streams/iSelect_xt.pm untested

filter: Statementstmt 0.0% 0 / 229 Branchbran 0.0% 0 / 52 Conditioncond 0.0% 0 / 45 MC/DCmcdc 0.0% 0 / 28 Subroutinesub 0.0% 0 / 30 Podpod 0.0% 0 / 15 totaltotal 0.0% 0 / 399 CC 27 SCAR 36.3
CC
27
Cov
0%
calcNdisplay
156.0
offset_type
12.0
set_purpose
12.0
CRAP 37.6
1 package App::SeismicUnixGui::big_streams::iSelect_xt;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: iSelect_xt.pm
8 AUTHOR: Juan Lorenzo
9 DATE: June 16 2019
10  
11 DESCRIPTION:
12 plot data to select X-T values
13
14 Based on iSelect_xt_top3.pm
15 from August 2016, V 3.1
16  
17 =head2 USE
18  
19 =head3 NOTES
20  
21 =head4
22  
23 Examples
24  
25 =cut
26  
27 use Moose;
28 our $VERSION = '0.0.1';
29 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
30 use App::SeismicUnixGui::misc::control '0.0.3';
31 use aliased 'App::SeismicUnixGui::misc::control';
32 use aliased 'App::SeismicUnixGui::misc::message';
33 use aliased 'App::SeismicUnixGui::misc::flow';
34 use aliased 'App::SeismicUnixGui::specs::big_streams::iPick_specD';
35 use aliased 'App::SeismicUnixGui::sunix::filter::sufilter';
36 use aliased 'App::SeismicUnixGui::sunix::shapeNcut::sugain';
37 use aliased 'App::SeismicUnixGui::sunix::shapeNcut::suwind';
38 use aliased 'App::SeismicUnixGui::sunix::plot::suxwigb';
39 use aliased 'App::SeismicUnixGui::sunix::plot::suximage';
40 use aliased 'App::SeismicUnixGui::messages::SuMessages';
41 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
42  
43 use App::SeismicUnixGui::misc::SeismicUnix qw($on $off $go $in $true
44 $false $itemp_picks_
45 $suffix_su $to);
46  
47 =head2 Instantiate
48  
49 other packages
50 1. Instantiate classes
51 Create a new version of the package
52 Personalize to give it a new name if you wish
53 Use the following classes:
54  
55 =cut
56  
57 my $control = control->new();
58 my $log = message->new();
59 my $run = flow->new();
60 my $sufilter = sufilter->new();
61 my $sugain = sugain->new();
62 my $suwind = suwind->new();
63 my $suxwigb = suxwigb->new();
64 my $suximage = suximage->new();
65 my $SuMessages = SuMessages->new();
66 my $Project = Project_config->new();
67  
68 my $get = L_SU_global_constants->new();
69 my $iPick_specD = iPick_specD->new();
70  
71 my $variables = $iPick_specD->variables();
72 my $DATA_DIR_IN = $variables->{_DATA_DIR_IN};
73 my $DATA_DIR_OUT = $variables->{_DATA_DIR_OUT};
74 my $data_suffix_in = $variables->{_data_suffix_in};
75  
76 my ($DATA_SEISMIC_SU) = $Project->DATA_SEISMIC_SU();
77 my ($PL_SEISMIC) = $Project->PL_SEISMIC();
78 my $var = $get->var();
79 my $empty_string = $var->{_empty_string};
80 my $purpose = $get->purpose();
81  
82 =head2 Establish
83
84 just the locally scoped variables
85  
86 =cut
87  
88 my ( @parfile_in, @file_in, @suffix, @inbound );
89 my ( @suwind_min, @suwind_max );
90 my ( @items, @flow, @sugain, @sufilter, @suwind );
91 my ( @suximage, @suxwigb );
92 my ( @windowtitle, @base_caption );
93  
94 =head2 hash array
95  
96 of important variables used within
97 this package
98  
99 =cut
100  
101 my $iSelect_xt = {
102 _TX_outbound => '',
103 _gather_header => '',
104 _error_freq => $false,
105 _gather_num => '',
106 _gather_type => '',
107 _file_in => '',
108 _freq => '',
109 _inbound => '',
110 _max_amplitude => '',
111 _max_x1 => '',
112 _min_amplitude => '',
113 _min_x1 => '',
114 _message_type => '',
115 _number_of_tries => '',
116 _offset_type => '',
117 _purpose => '',
118 _textfile_in => ''
119 };
120  
121 =head2 sub clear
122  
123 to blank out hash array values
124 _number_of_tries => '',
125  
126 =cut
127  
128 sub clear {
129  
130 $iSelect_xt->{_TX_outbound} = '';
131 $iSelect_xt->{_gather_header} = '';
132 $iSelect_xt->{_error_freq} = $false;
133 $iSelect_xt->{_file_in} = '';
134 $iSelect_xt->{_gather_type} = '';
135 $iSelect_xt->{_freq} = '';
136 $iSelect_xt->{_gather_num} = '';
137 $iSelect_xt->{_inbound} = '';
138 $iSelect_xt->{_max_amplitude} = '';
139 $iSelect_xt->{_max_x1} = '';
140 $iSelect_xt->{_min_amplitude} = '';
141 $iSelect_xt->{_min_x1} = '';
142 $iSelect_xt->{_message_type} = '';
143 $iSelect_xt->{_number_of_tries} = '';
144 $iSelect_xt->{_offset_type} = '';
145 $iSelect_xt->{_purpose} = '';
146 $iSelect_xt->{_textfile_in} = '';
147  
148 }
149  
150 =head2 subroutine calcNdisplay
151  
152 main processing flow
153 calculate mute and display results
154  
155 =cut
156  
157 sub calcNdisplay {
158  
159 my ($self) = @_;
160  
161 # SORT a TEXT FILE
162 my @sort;
163 $sort[1] = (
164 " sort \\
165 -n \\
166 "
167 );
168  
169 =head2 GAIN
170
171 DATA
172  
173 =cut
174  
175 # $sugain->clear();
176 # $sugain->pbal($on);
177 # $sugain[1] = $sugain->Step();
178 #
179 # $sugain->clear();
180 # $sugain->agc($on);
181 # $sugain->width(0.1);
182 # $sugain[2] = $sugain->Step();
183  
184 $sugain->clear();
185 $sugain->tpower(3);
186 $sugain[3] = $sugain->Step();
187  
188 =head2 FILTER DATA
189
190 =cut
191  
192 if ( defined $iSelect_xt->{_freq}
193 && $iSelect_xt->{_freq} ne $empty_string )
194 {
195  
196 # print("iSelect_xt, sufilter frequencies: $iSelect_xt->{_freq}\n");
197 $sufilter->clear();
198 $sufilter->freq( $iSelect_xt->{_freq} );
199 $sufilter[1] = $sufilter->Step();
200  
201 }
202 elsif ( not defined $iSelect_xt->{_freq}
203 or $iSelect_xt->{_freq} eq $empty_string )
204 {
205  
206 $iSelect_xt->{_error_freq} = $true;
207 # print("iSelect_xt, missing frequencies -- warning\n");
208  
209 }
210 else {
211 print("iSelect_xt, missing frequencies -- warning \n");
212 }
213  
214 =head2 WINDOW DATA
215  
216 by
217  
218 =cut
219  
220 $suwind->clear();
221 $suwind->setheaderword( $iSelect_xt->{_gather_header} );
222 $suwind->min( $iSelect_xt->{_gather_num} );
223 $suwind->max( $iSelect_xt->{_gather_num} );
224  
225 # print("gather num is $iSelect_xt->{_gather_num}\n\n");
226 $suwind[1] = $suwind->Step();
227  
228 $suwind->clear();
229 $suwind->tmin( $iSelect_xt->{_min_x1} );
230 $suwind->tmax( $iSelect_xt->{_max_x1} );
231 $suwind[2] = $suwind->Step();
232  
233 =head2 DISPLAY Suximage
234  
235 DATA
236  
237 =cut
238  
239 $base_caption[1] =
240 $iSelect_xt->{_file_in}
241 . quotemeta(' ')
242 . quotemeta('f=')
243 . $iSelect_xt->{_freq};
244 $windowtitle[1] = quotemeta('GATHER = ') . $iSelect_xt->{_gather_num};
245  
246 $suximage->clear();
247 $suximage->box_width(400);
248 $suximage->box_height(600);
249 $suximage->box_X0(200);
250 $suximage->box_Y0(150);
251 $suximage->title( $base_caption[1] );
252 $suximage->windowtitle( $windowtitle[1] );
253 $suximage->ylabel( quotemeta('TWTT s') );
254 $suximage->xlabel( $iSelect_xt->{_offset_type} );
255 $suximage->legend($on);
256 $suximage->cmap('rgb0');
257 $suximage->loclip( $iSelect_xt->{_min_amplitude} );
258 $suximage->hiclip( $iSelect_xt->{_max_amplitude} );
259  
260 # purposes can refine the style of plots
261 # geopsy plot preference for JML
262 if ( length $iSelect_xt->{_purpose}
263 and $iSelect_xt->{_purpose} eq $purpose->{_geopsy}
264 and $iSelect_xt->{_max_x1} > $iSelect_xt->{_min_x1} )
265 {
266  
267 # $suximage->x1beg( $iSelect_xt->{_max_x1} );
268 # $suximage->x1end( $iSelect_xt->{_min_x1} );
269 # frequency is hzntl and velocity is vertical in geopsy,
270 # so the x axis is reversed compared to a normal seismic plot.
271 $suximage->orientation('normal');
272 $suximage->ylabel( quotemeta('frequency Hz') );
273 $suximage->box_width(800);
274 $suximage->box_height(400);
275 $suximage->cmap('hsv2');
276 # print("iSelect_xt, \n");
277  
278 }
279 else {
280 $suximage->x1beg( $iSelect_xt->{_min_x1} );
281 $suximage->x1end( $iSelect_xt->{_max_x1} );
282 }
283  
284 $suximage->verbose($off);
285  
286 =item
287
288 choose to save picks
289
290 =cut
291  
292 if ( $iSelect_xt->{_number_of_tries} > 0 ) {
293  
294 $iSelect_xt->{_TX_outbound} = $itemp_picks_ . $iSelect_xt->{_file_in};
295 $suximage->picks( $DATA_DIR_OUT . '/' . $iSelect_xt->{_TX_outbound} );
296  
297 # print("iSelect_xt, suximage, writing picks to $itemp_picks_$iSelect_xt->{_file_in} \n");
298 # print("iSelect_xt, suximage, PATH: $DATA_DIR_OUT \n\n");
299 # print("number of tries is $iSelect_xt->{_number_of_tries} \n\n");
300 }
301 $suximage[1] = $suximage->Step();
302  
303 =head2 DISPLAY suxwigb
304  
305 DATA
306  
307 =cut
308  
309 $base_caption[2] =
310 $iSelect_xt->{_file_in}
311 . quotemeta(' ')
312 . quotemeta('f=')
313 . $iSelect_xt->{_freq};
314 $windowtitle[2] = quotemeta('GATHER = ') . $iSelect_xt->{_gather_num};
315  
316 $suxwigb->clear();
317 $suxwigb->box_width( quotemeta(400) );
318 $suxwigb->box_height( quotemeta(600) );
319 $suxwigb->box_X0( quotemeta(750) );
320 $suxwigb->box_Y0( quotemeta(150) );
321 $suxwigb->title( $base_caption[2] );
322 $suxwigb->windowtitle( $windowtitle[2] );
323 $suxwigb->ylabel( quotemeta('TWTT s') );
324 $suxwigb->xlabel( $iSelect_xt->{_offset_type} );
325 $suxwigb->loclip( $iSelect_xt->{_min_amplitude} );
326 $suxwigb->hiclip( $iSelect_xt->{_max_amplitude} );
327  
328 # purposes can refine the style of plots
329 # geopsy plot preference for JML
330 if ( length $iSelect_xt->{_purpose}
331 and $iSelect_xt->{_purpose} eq $purpose->{_geopsy}
332 and $iSelect_xt->{_max_x1} > $iSelect_xt->{_min_x1} )
333 {
334  
335 # $suxwigb->x1beg( $iSelect_xt->{_max_x1} );
336 # $suxwigb->x1end( $iSelect_xt->{_min_x1} );
337  
338 # frequency is hzntl and velocity is vertical in geopsy,
339 # so the x axis is reversed compared to a normal seismic plot.
340 # $suximage->orientation('normal');
341 # $suximage->ylabel( quotemeta('frequency Hz') );
342 print("iSelect_xt, suxwigb with \'geopsy\' purpose\n");
343  
344 }
345 else {
346 $suxwigb->x1beg( $iSelect_xt->{_min_x1} );
347 $suxwigb->x1end( $iSelect_xt->{_max_x1} );
348 }
349 $suxwigb->verbose($off);
350  
351 =item choose to save picks
352
353 =cut
354  
355 if ( $iSelect_xt->{_number_of_tries} > 0 ) {
356  
357 $iSelect_xt->{_TX_outbound} = $itemp_picks_ . $iSelect_xt->{_file_in};
358 $suxwigb->picks( $DATA_DIR_OUT . '/' . $iSelect_xt->{_TX_outbound} );
359  
360 # print("iSelect_xt, suxwigb, writing picks to $itemp_picks_$iSelect_xt->{_file_in} \n");
361 # print("iSelect_xt, suxwigb, PATH: $DATA_DIR_OUT \n\n");
362 # print("number of tries is $iSelect_xt->{_number_of_tries} \n\n");
363 }
364  
365 $suxwigb[1] = $suxwigb->Step();
366  
367 =head2 DEFINE FLOW(S)
368  
369 In interactive mode:
370 First time you see the image, number_of_tries = 0
371 For second, third ... times, number_of_tries >0
372 The pick file can be saved.
373  
374 =cut
375  
376 if ( defined $iSelect_xt->{_purpose}
377 and $iSelect_xt->{_purpose} ne $empty_string )
378 {
379 # CASE 1: With GEOPSY purpose
380  
381 if ( $iSelect_xt->{_purpose} eq $purpose->{_geopsy}
382 && $iSelect_xt->{_error_freq} eq $true )
383 {
384  
385 # CASE 1A: With geopsy and no filter
386 # $sugain[1], $to,
387 # @items = (
388 # $suwind[1], $in, $iSelect_xt->{_inbound}, $to,
389 # $suwind[2], $to,
390 # $suxwigb[1], $go
391 # );
392 # $flow[1] = $run->modules( \@items );
393  
394 # print("iSelect_xt, CASE1: \n $flow[1]\n");
395 # $sugain[1], $to,
396 @items = (
397 $suwind[1], $in,
398 $iSelect_xt->{_inbound}, $to,
399 $suwind[2], $to,
400 $suximage[1],
401 $go
402 );
403 $flow[2] = $run->modules( \@items );
404  
405 }
406 elsif ($iSelect_xt->{_purpose} eq $purpose->{_geopsy}
407 && $iSelect_xt->{_error_freq} eq $false )
408 {
409  
410 # CASE 2: With geopsy and filter
411 # @items = (
412 # $suwind[1], $in,
413 # $iSelect_xt->{_inbound}, $to,
414 # $suwind[2], $to, $sufilter[1],$to,
415 # $suxwigb[1], $go
416 # );
417 # $flow[1] = $run->modules( \@items );
418 # print("iSelect_xt, CASE2: \n $flow[1]\n");
419  
420 # $sugain[1], $to,
421 @items = (
422 $suwind[1], $in,
423 $iSelect_xt->{_inbound},$to,
424 $suwind[2], $to,
425 $sufilter[1],$to,
426 $suximage[1],
427 $go
428 );
429 $flow[2] = $run->modules( \@items );
430  
431 }
432 else {
433 # CASE 1 Error catch
434 # print("CASE 1 iSelect_xt, purpose:$iSelect_xt->{_purpose}\n");
435 my $ans = $iSelect_xt->{_error_freq};
436  
437 # print("CASE 1 iSelect_xt, _error: $ans\n");
438 # print("CASE 1 iSelect_xt, missing purpose and/or error_freq\n");
439 }
440  
441 }
442  
443 # CASE 2A: No purpose, with filter
444 elsif (
445 (
446 not( defined $iSelect_xt->{_purpose} )
447 || $iSelect_xt->{_purpose} eq $empty_string
448 )
449 && $iSelect_xt->{_error_freq} eq $false
450 )
451 {
452  
453 @items = (
454 $suwind[1], $in, $iSelect_xt->{_inbound}, $to,
455 $suwind[2], $to, $sufilter[1], $to,
456 $sugain[1], $to, $suxwigb[1], $go
457 );
458 $flow[1] = $run->modules( \@items );
459  
460 # print("iSelect_xt, CASE 2: $flow[1]\n");
461 #$sugain[1], $to,
462 @items = (
463 $suwind[1], $in, $iSelect_xt->{_inbound}, $to,
464 $suwind[2], $to, $sufilter[1], $to,
465 $suximage[1], $go
466 );
467  
468 $flow[2] = $run->modules( \@items );
469  
470 }
471 else {
472 # print("2. iSelect_xt, purpose:---$iSelect_xt->{_purpose}---\n");
473 # print("2. iSelect_xt, error_freq:---$iSelect_xt->{_error_freq}---\n");
474 # print("2. iSelect_xt, missing purpose and/or error in filter frequencies");
475 }
476  
477 =head2 RUN FLOW(S)
478  
479 output copy of picked data points
480 only occurs after the number of tries
481 is updated
482  
483 =cut
484  
485 if($iSelect_xt->{_purpose} eq $purpose->{_geopsy})
486 {
487 # for suximage
488 $run->flow( \$flow[2] );
489  
490 } else {
491 # for suxwigb
492 $run->flow( \$flow[1] );
493  
494 # for suximage
495 $run->flow( \$flow[2] );
496 }
497  
498 =head2 LOG FLOW(S)
499  
500 TO SCREEN AND FILE
501  
502 =cut
503  
504 # print "$flow[1]\n";
505 # $log->file($flow[1]);
506  
507 # print "$flow[2]\n";
508 # $log->file($flow[2]);
509  
510 } # end calcNdisplay subroutine
511  
512 =head2 sub gather_header
513  
514 define the message family to use
515  
516 =cut
517  
518 sub gather_header {
519 my ( $self, $type ) = @_;
520  
521 if ( defined $type && $type ne $empty_string ) {
522  
523 # e.g. 'sp1' becomes sp1
524 # print("1. iSelect_xt, gather_header: $type \n");
525  
526 control->set_infection($type);
527 $type = control->get_ticksBgone();
528 $iSelect_xt->{_gather_header} = $type;
529  
530 # print("2. iSelect_xt, gather_header: $iSelect_xt->{_gather_header} \n");
531  
532 }
533 else {
534 print("iSelect_xt, gather_header: unexpected value \n\n");
535 }
536 }
537  
538 =head2 sub file_in
539  
540 Required file name
541 on which to pick mute values
542 print("$iSelect_xt->{_inbound}\n\n");
543
544 =cut
545  
546 sub file_in {
547  
548 my ( $self, $file_in ) = @_;
549  
550 if ( defined $file_in
551 && $file_in ne $empty_string )
552 {
553  
554 # e.g. 'sp1' becomes sp1
555 $control->set_infection($file_in);
556 $file_in = control->get_ticksBgone();
557 $iSelect_xt->{_file_in} = $file_in;
558 $iSelect_xt->{_inbound} =
559 $DATA_DIR_IN . '/' . $iSelect_xt->{_file_in} . $data_suffix_in;
560  
561 # print("iSelect_xt, file_in: $iSelect_xt->{_file_in} \n");
562  
563 }
564 else {
565 print("iSelect_xt, file_in: unexpected file_in \n");
566 }
567 }
568  
569 =head2 sub freq
570  
571 creates the bandpass frequencies to filter data before
572 conducting semblance analysis
573 e.g., "3,6,40,50"
574
575 =cut
576  
577 sub freq {
578 my ( $self, $freq ) = @_;
579 $iSelect_xt->{_freq} = $freq if defined($freq);
580  
581 # print("iSelect_xt, freq is $iSelect_xt->{_freq}\n\n");
582 }
583  
584 =head2 subroutine gather
585  
586 sets gather number to consider
587  
588 =cut
589  
590 sub gather_num {
591 my ( $self, $gather_num ) = @_;
592 $iSelect_xt->{_gather_num} = $gather_num if defined($gather_num);
593 }
594  
595 =head2 sub gather_type
596  
597 define the message family to use
598  
599 =cut
600  
601 sub gather_type {
602  
603 my ( $self, $type ) = @_;
604  
605 if ( $type && $type ne $empty_string ) {
606  
607 # e.g. 'sp1' becomes sp1
608 $control->set_infection($type);
609 $type = control->get_ticksBgone();
610  
611 $iSelect_xt->{_gather_type} = $type;
612  
613 # print("1. iSelect_xt,gather_type, $iSelect_xt->{_gather_type}\n");
614  
615 }
616 else {
617 print("iSelect_xt,gather_type,missing gather_type\n");
618 }
619 return ();
620 }
621  
622 =head2 sub max_amplitude
623  
624 maximum amplitude to plot
625  
626 =cut
627  
628 sub max_amplitude {
629 my ( $self, $max_amplitude ) = @_;
630 $iSelect_xt->{_max_amplitude} = $max_amplitude if defined($max_amplitude);
631  
632 # print("max_amplitude is $iSelect_xt->{_max_amplitude}\n\n");
633 }
634  
635 =head2 sub max_x1
636  
637 maximum time/Hz to plot
638  
639 =cut
640  
641 sub max_x1 {
642 my ( $self, $max_x1 ) = @_;
643  
644 if ( length $max_x1 ) {
645  
646 $iSelect_xt->{_max_x1} = $max_x1;
647  
648 # print("max_x1 is $iSelect_xt->{_max_x1}\n\n");
649  
650 }
651 else {
652 print("iSelect_xt, max_x1, value missing\n");
653 }
654 return ();
655 }
656  
657 =head3 sub min_amplitude
658  
659 minumum amplitude to plot
660  
661 =cut
662  
663 sub min_amplitude {
664  
665 my ( $self, $min_amplitude ) = @_;
666 $iSelect_xt->{_min_amplitude} = $min_amplitude if defined($min_amplitude);
667  
668 # print("min_amplitude is $iSelect_xt->{_min_amplitude}\n\n");
669 }
670  
671 =head3 sub min_x1
672  
673 minumum time/ Hz to plot
674  
675 =cut
676  
677 sub min_x1 {
678 my ( $self, $min_x1 ) = @_;
679  
680 if ( length $min_x1 ) {
681  
682 $iSelect_xt->{_min_x1} = $min_x1;
683  
684 # print("min_x1 is $iSelect_xt->{_min_x1}\n\n");
685  
686 }
687 else {
688 print("iSelect_xt,min_x1, unexpected min time-s\n");
689 }
690 }
691  
692 =head2 sub number_of_tries
693  
694 keep track of the number of attempts
695 at picking top mute
696  
697 =cut
698  
699 sub number_of_tries {
700 my ( $self, $number_of_tries ) = @_;
701 $iSelect_xt->{_number_of_tries} = $number_of_tries
702 if defined($number_of_tries);
703  
704 # print("num of tries is $iSelect_xt->{_number_of_tries}\n\n");
705 }
706  
707 =head2 sub offset_type
708  
709 define the message family to use
710  
711 =cut
712  
713 sub offset_type {
714 my ( $self, $type ) = @_;
715 $iSelect_xt->{_offset_type} = $type if defined($type);
716  
717 if ( $iSelect_xt->{_offset_type} eq 'p' ) {
718  
719 $iSelect_xt->{_offset_type} = 'tracl';
720  
721 }
722 }
723  
724 =head2 sub set_purpose
725  
726 define where the data will need to go
727 define the type of behavior
728
729 =cut
730  
731 sub set_purpose {
732  
733 my ( $self, $type ) = @_;
734  
735 if ( defined $type
736 && $type ne $empty_string )
737 {
738  
739 my $control = control->new();
740 $control->set_infection($type);
741 $type = control->get_ticksBgone();
742  
743 # print("iSelect_xt,set_purpose: $type\n");
744 # print("iSelect_xt,set_purpose: $purpose->{_geopsy}\n");
745  
746 if ( $type eq $purpose->{_geopsy} ) {
747  
748 $iSelect_xt->{_purpose} = $type;
749  
750 # print("iSelect_xt,set_purpose: $iSelect_xt->{_purpose}\n");
751  
752 }
753 else {
754  
755 # print("iSelect_xt,set_purpose is unavailable, NADA\n");
756 }
757  
758 }
759 else {
760  
761 # print("iSelect_xt,set_purpose value is empty NADA\n");
762 }
763 }
764  
765 =head2 sub suxwigb_defaults
766  
767 selecting if there are appropriate suxwigb defaults
768  
769 =cut
770  
771 sub suxwigb_defaults {
772 my ( $self, $suxwigb_defaults ) = @_;
773 $iSelect_xt->{_suxwigb_defaults} = $suxwigb_defaults
774 if defined($suxwigb_defaults);
775  
776 #print("num of tries is $iSelect_xt->{_suxwigb_defaults}\n\n");
777  
778 }
779  
780 1;