lib/App/SeismicUnixGui/sunix/plot/xpicker.pm untested

filter: Statementstmt 0.0% 0 / 357 Branchbran 0.0% 0 / 92 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 54 Podpod 0.0% 0 / 50 totaltotal 0.0% 0 / 553 CC 47 SCAR 17.4
CC
47
Cov
0%
bias
6.0
clip
6.0
d1
6.0
CRAP 5.7
1 package App::SeismicUnixGui::sunix::plot::xpicker;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR:
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 XPICKER - X wiggle-trace plot of f(x1,x2) via Bitmap with PICKing
25  
26  
27  
28 xpicker n1= [optional parameters] <binaryfile
29  
30  
31  
32 X Menu functionality:
33  
34 Pick Filename Window default is pick_file
35  
36 Load load an existing Pick Filename
37  
38 Save save to Pick Filename
39  
40 View only/Pick default is View, click to enable Picking
41  
42 Add/Delete default is Add, click to delete picks
43  
44 Cross off/on default is Cross off, click to enable Crosshairs
45  
46  
47  
48 In View mode:
49  
50 a or page up keys enhance clipping by 10%
51  
52 c or page down keys reduce clipping by 10%
53  
54 up,down,left,right keys move zoom window by half width/height
55  
56 i or +(keypad) zoom in by factor 2
57  
58 o or -(keypad) zoom out by factor 2
59  
60 l lock the zoom while moving the coursor
61  
62 u unlock the zoom
63  
64  
65  
66 Notes:
67  
68 Menu selections and toggles ("clicks") are made with button 1
69  
70 Pick selections are made with button 3
71  
72 Edit a pick selection by dragging it with button 3 down or
73  
74 by making a new pick on that trace
75  
76 Reaching the window limits while moving within changes the zoom
77  
78 factor in this direction. The use of zoom locking(l) disables it
79  
80  
81  
82 Other X Mouse functionality:
83  
84 Mouse Button 1 Zoom with rubberbox
85  
86 Mouse Button 2 Show mouse (x1,x2) coordinates while pressed
87  
88  
89  
90 The following keys are active in View Only mode:
91  
92  
93  
94 Required Parameters:
95  
96 n1= number of samples in 1st (fast) dimension
97  
98  
99  
100 Optional Parameters:
101  
102 mpicks=pick_file name of output (input) pick file
103  
104 d1=1.0 sampling interval in 1st dimension
105  
106 f1=d1 first sample in 1st dimension
107  
108 n2=all number of samples in 2nd (slow) dimension
109  
110 d2=1.0 sampling interval in 2nd dimension
111  
112 f2=d2 first sample in 2nd dimension
113  
114 x2=f2,f2+d2,... array of sampled values in 2nd dimension
115  
116 bias=0.0 data value corresponding to location along axis 2
117  
118 perc=100.0 percentile for determining clip
119  
120 clip=(perc percentile) data values < bias+clip and > bias-clip are clipped
121  
122 xcur=1.0 wiggle excursion in traces corresponding to clip
123  
124 wt=1 =0 for no wiggle-trace; =1 for wiggle-trace
125  
126 va=1 =0 for no variable-area; =1 for variable-area fill
127  
128 =2 for variable area, solid/grey fill
129  
130 SHADING: 2<=va<=5 va=2 light grey, va=5 black
131  
132 verbose=1 =1 for info printed on stderr (0 for no info)
133  
134 xbox=50 x in pixels of upper left corner of window
135  
136 ybox=50 y in pixels of upper left corner of window
137  
138 wbox=550 width in pixels of window
139  
140 hbox=700 height in pixels of window
141  
142 x1beg=x1min value at which axis 1 begins
143  
144 x1end=x1max value at which axis 1 ends
145  
146 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
147  
148 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
149  
150 n1tic=1 number of tics per numbered tic on axis 1
151  
152 grid1=none grid lines on axis 1 - none, dot, dash, or solid
153  
154 label1= label on axis 1
155  
156 x2beg=x2min value at which axis 2 begins
157  
158 x2end=x2max value at which axis 2 ends
159  
160 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
161  
162 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
163  
164 n2tic=1 number of tics per numbered tic on axis 2
165  
166 grid2=none grid lines on axis 2 - none, dot, dash, or solid
167  
168 label2= label on axis 2
169  
170 labelfont=Erg14 font name for axes labels
171  
172 title= title of plot
173  
174 titlefont=Rom22 font name for title
175  
176 labelcolor=blue color for axes labels
177  
178 titlecolor=red color for title
179  
180 gridcolor=blue color for grid lines
181  
182 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
183  
184 seismic (axis 1 vertical, axis 2 horizontal)
185  
186 endian= =0 little endian, =1 big endian
187  
188 interp=0 no sinc interpolation
189  
190 =1 perform sinc interpolation
191  
192 x2file= file of "acceptable" x2 values
193  
194 x1x2=1 save picks in the order (x1,x2)
195  
196 =0 save picks in the order (x2,x1)
197  
198  
199  
200 Notes:
201  
202 Xpicker will try to detect the endian value of the X-display and will
203  
204 set it to the right value. If it gets obviously wrong information the
205  
206 endian value will be set to the endian value of the machine that is
207  
208 given at compile time as the value of CWPENDIAN defined in cwp.h
209  
210 and set via the compile time flag ENDIANFLAG in Makefile.config.
211  
212  
213  
214 The only time that you might want to change the value of the endian
215  
216 variable is if you are viewing traces on a machine with a different
217  
218 byte order than the machine you are creating the traces on AND if for
219  
220 some reason the automaic detection of the display byte order fails.
221  
222 Set endian to that of the machine you are viewing the traces on.
223  
224  
225  
226 The interp flag is useful for making better quality wiggle trace for
227  
228 making plots from screen dumps. However, this flag assumes that the
229  
230 data are purely oscillatory. This option may not be appropriate for all
231  
232 data sets.
233  
234  
235  
236 If the x2file= option is set, then the values from the specified file
237  
238 will define the set of "acceptable" values of x2 for xpicker to
239  
240 output. The format is a single column of ASCII values. The number of
241  
242 specified values is arbitrary.
243  
244  
245  
246 Such a file can be built from an SU data set via:
247  
248 sugethw < sudata key=offset output=geom > x2example
249  
250  
251  
252 If the value of x2file= is not set, then
253  
254 xpicker will use the values specified via: x2=.,.,.,. or those that are",
255  
256 computed from the values of f2= and d2= as being the "acceptible
257  
258 values.
259  
260  
261  
262 See the selfdoc of suxpicker for information on using key fields from
263  
264 the SU trace headers directly.
265  
266  
267  
268  
269  
270  
271  
272 Author: Dave Hale, Colorado School of Mines, 08/09/90
273  
274 with picking by Wenying Cai of University of Utah.
275  
276 Endian stuff by Morten Pedersen and John Stockwell of CWP.
277  
278 Interp stuff by Tony Kocurko of Memorial University of Newfoundland
279  
280 Modified to include acceptable values by Bill Lutter of the
281  
282 Department of Geology, University of Wisconsin 10/96
283  
284 MODIFIED: P. Michaels, Boise State Univeristy 29 December 2000
285  
286 Added solid/grey color scheme for peaks/troughs
287  
288
289  
290 G.Klein, IFG Kiel University, 2003-09-29, added cursor scrolling and
291  
292 interactive change of zoom and clipping.
293  
294  
295  
296 NOTES:
297  
298 Interactive picker improved to allow x-axis of picks to be
299  
300 coordinated with "key=header" parameter set in driver routine
301  
302 suxpicker. Multiple picks per trace are now allowed.
303  
304  
305  
306 Input:
307  
308 The command line of suxpicker is unchanged. The parameter"key=header"
309  
310 set in suxpicker controls a) trace x-axis displayed via xpicker and
311  
312 b) the header values in the first column of a pick file either read in
313  
314 or written out from xpicker c) header values expected in optional file
315  
316 or written out from xpicker c) header values expected in optional file
317  
318 x2file= which reads into xpicker allowable trace x-axis values.
319  
320  
321  
322 a) example command line: suxpicker key=offset < shot10.plotpik
323  
324  
325  
326 b) pick file format:
327  
328 x-axis_value_1 time_1
329  
330 x-axis_value_2 time_2
331  
332 x-axis_value_3 time_3
333  
334 etc.
335  
336 x-axis_value_n time_n
337  
338  
339  
340 pick file example:
341  
342 1000.000000 0.500000
343  
344 2000.000000 1.000000
345  
346 3000.000000 1.500000
347  
348 4000.000000 2.000000
349  
350 5000.000000 2.500000
351  
352  
353  
354 c) format of optional file x2file=:
355  
356 header_value_1
357  
358 header_value_2
359  
360 etc.
361  
362 header_val_m
363  
364  
365  
366 If file "x2file=" exists in directory from which suxpicker is
367  
368 invoked, then these trace header x-axis values are the only allowable
369  
370 x-axis pick values used in the pick "add" or "delete" menu operation.
371  
372 Header values do not need to be sorted or 1 to 1 with input traces.
373  
374 Further, pick file x-axis values can be read into xpicker via load
375  
376 operation without having to match key_pickx1_val x-axis values and
377  
378 can also be rewritten out an output pickfile. As indicated, only
379  
380 the "add" and "delete" pick operations are influenced by existence
381  
382 of this file.
383  
384  
385  
386 Offset header values for "x2file=" can be generated by the
387  
388 command line:
389  
390  
391  
392 sugethw < su_segyfile key=offset output=geom > x2examplefile=
393  
394  
395  
396 Output: Only change is in format of pick_file (format described above).
397  
398 If x2file= file exists then x-axis value of added picks
399  
400 will be forced to nearest allowable trace x-axis value (input values
401  
402 of x2file= file). If x2file= is not set, then the values of x2
403  
404 that are either assigned uniformly to the traces via f2 and d2,
405  
406 or by the vector of values of x2=.,.,.,. will be the "acceptable"
407  
408 values.
409  
410  
411  
412 Strategy:
413  
414 a) malloc() and realloc() used to dynamically allocate memory
415  
416 for array of x-axis value read in from optional file
417  
418 x2file=. This is done in function read_keyval().
419  
420  
421  
422 b) The pick file dimensions are set in main program via malloc()
423  
424 and then initialized (*apick)[i].picked = FALSE) in function
425  
426 init_picks(). The pick file is declared as pick_t **apick, in
427  
428 order to use realloc() as needed in functions load_picks where the
429  
430 pick file is read in and edit_picks where picks are added. The
431  
432 call to realloc() and further initializing is performed in
433  
434 function realloc_picks().
435  
436  
437  
438 c) If x2file= file exists the mouse derived x-axis value
439  
440 for a pick to be added is checked against allowable x-axis values
441  
442 to find the closest match via function add_pick called from
443  
444 edit_picks. If the pick is to be deleted, first a search is done
445  
446 to find the closest x-axis value, then the existing pick values
447  
448 are searched to find the closest radial value (x**2 + t**2) via
449  
450 function del_pick() invoked from edit_picks.
451  
452  
453  
454 d) Code modifications are limited to above mentioned functions,
455  
456 except for additional parameters passed to functions edit_picks,
457  
458 load_picks, save_picks, and check_buttons.
459  
460
461  
462  
463  
464 =head2 User's notes (Juan Lorenzo)
465 untested
466  
467 =cut
468  
469  
470 =head2 CHANGES and their DATES
471  
472 =cut
473  
474 use Moose;
475 our $VERSION = '0.0.1';
476  
477  
478 =head2 Import packages
479  
480 =cut
481  
482 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
483  
484 use App::SeismicUnixGui::misc::SeismicUnix qw($go $in $off $on $out $ps $to $suffix_ascii $suffix_bin $suffix_ps $suffix_segy $suffix_su);
485 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
486  
487  
488 =head2 instantiation of packages
489  
490 =cut
491  
492 my $get = L_SU_global_constants->new();
493 my $Project = Project_config->new();
494 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
495 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
496 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
497  
498 my $PS_SEISMIC = $Project->PS_SEISMIC();
499  
500 my $var = $get->var();
501 my $on = $var->{_on};
502 my $off = $var->{_off};
503 my $true = $var->{_true};
504 my $false = $var->{_false};
505 my $empty_string = $var->{_empty_string};
506  
507 =head2 Encapsulated
508 hash of private variables
509  
510 =cut
511  
512 my $xpicker = {
513 _bias => '',
514 _clip => '',
515 _d1 => '',
516 _d1num => '',
517 _d2 => '',
518 _d2num => '',
519 _endian => '',
520 _f1 => '',
521 _f1num => '',
522 _f2 => '',
523 _f2num => '',
524 _grid1 => '',
525 _grid2 => '',
526 _gridcolor => '',
527 _hbox => '',
528 _interp => '',
529 _key => '',
530 _label1 => '',
531 _label2 => '',
532 _labelcolor => '',
533 _labelfont => '',
534 _mpicks => '',
535 _n1 => '',
536 _n1tic => '',
537 _n2 => '',
538 _n2tic => '',
539 _perc => '',
540 _picked => '',
541 _style => '',
542 _title => '',
543 _titlecolor => '',
544 _titlefont => '',
545 _va => '',
546 _verbose => '',
547 _wbox => '',
548 _wt => '',
549 _x1beg => '',
550 _x1end => '',
551 _x1x2 => '',
552 _x2 => '',
553 _x2beg => '',
554 _x2end => '',
555 _x2file => '',
556 _xbox => '',
557 _xcur => '',
558 _ybox => '',
559 _Step => '',
560 _note => '',
561  
562 };
563  
564 =head2 sub Step
565  
566 collects switches and assembles bash instructions
567 by adding the program name
568  
569 =cut
570  
571 sub Step {
572  
573 $xpicker->{_Step} = 'xpicker'.$xpicker->{_Step};
574 return ( $xpicker->{_Step} );
575  
576 }
577  
578  
579 =head2 sub note
580  
581 collects switches and assembles bash instructions
582 by adding the program name
583  
584 =cut
585  
586 sub note {
587  
588 $xpicker->{_note} = 'xpicker'.$xpicker->{_note};
589 return ( $xpicker->{_note} );
590  
591 }
592  
593  
594  
595 =head2 sub clear
596  
597 =cut
598  
599 sub clear {
600  
601 $xpicker->{_bias} = '';
602 $xpicker->{_clip} = '';
603 $xpicker->{_d1} = '';
604 $xpicker->{_d1num} = '';
605 $xpicker->{_d2} = '';
606 $xpicker->{_d2num} = '';
607 $xpicker->{_endian} = '';
608 $xpicker->{_f1} = '';
609 $xpicker->{_f1num} = '';
610 $xpicker->{_f2} = '';
611 $xpicker->{_f2num} = '';
612 $xpicker->{_grid1} = '';
613 $xpicker->{_grid2} = '';
614 $xpicker->{_gridcolor} = '';
615 $xpicker->{_hbox} = '';
616 $xpicker->{_interp} = '';
617 $xpicker->{_key} = '';
618 $xpicker->{_label1} = '';
619 $xpicker->{_label2} = '';
620 $xpicker->{_labelcolor} = '';
621 $xpicker->{_labelfont} = '';
622 $xpicker->{_mpicks} = '';
623 $xpicker->{_n1} = '';
624 $xpicker->{_n1tic} = '';
625 $xpicker->{_n2} = '';
626 $xpicker->{_n2tic} = '';
627 $xpicker->{_perc} = '';
628 $xpicker->{_picked} = '';
629 $xpicker->{_style} = '';
630 $xpicker->{_title} = '';
631 $xpicker->{_titlecolor} = '';
632 $xpicker->{_titlefont} = '';
633 $xpicker->{_va} = '';
634 $xpicker->{_verbose} = '';
635 $xpicker->{_wbox} = '';
636 $xpicker->{_wt} = '';
637 $xpicker->{_x1beg} = '';
638 $xpicker->{_x1end} = '';
639 $xpicker->{_x1x2} = '';
640 $xpicker->{_x2} = '';
641 $xpicker->{_x2beg} = '';
642 $xpicker->{_x2end} = '';
643 $xpicker->{_x2file} = '';
644 $xpicker->{_xbox} = '';
645 $xpicker->{_xcur} = '';
646 $xpicker->{_ybox} = '';
647 $xpicker->{_Step} = '';
648 $xpicker->{_note} = '';
649 }
650  
651  
652 =head2 sub bias
653  
654  
655 =cut
656  
657 sub bias {
658  
659 my ( $self,$bias ) = @_;
660 if ( $bias ne $empty_string ) {
661  
662 $xpicker->{_bias} = $bias;
663 $xpicker->{_note} = $xpicker->{_note}.' bias='.$xpicker->{_bias};
664 $xpicker->{_Step} = $xpicker->{_Step}.' bias='.$xpicker->{_bias};
665  
666 } else {
667 print("xpicker, bias, missing bias,\n");
668 }
669 }
670  
671  
672 =head2 sub clip
673  
674  
675 =cut
676  
677 sub clip {
678  
679 my ( $self,$clip ) = @_;
680 if ( $clip ne $empty_string ) {
681  
682 $xpicker->{_clip} = $clip;
683 $xpicker->{_note} = $xpicker->{_note}.' clip='.$xpicker->{_clip};
684 $xpicker->{_Step} = $xpicker->{_Step}.' clip='.$xpicker->{_clip};
685  
686 } else {
687 print("xpicker, clip, missing clip,\n");
688 }
689 }
690  
691  
692 =head2 sub d1
693  
694  
695 =cut
696  
697 sub d1 {
698  
699 my ( $self,$d1 ) = @_;
700 if ( $d1 ne $empty_string ) {
701  
702 $xpicker->{_d1} = $d1;
703 $xpicker->{_note} = $xpicker->{_note}.' d1='.$xpicker->{_d1};
704 $xpicker->{_Step} = $xpicker->{_Step}.' d1='.$xpicker->{_d1};
705  
706 } else {
707 print("xpicker, d1, missing d1,\n");
708 }
709 }
710  
711  
712 =head2 sub d1num
713  
714  
715 =cut
716  
717 sub d1num {
718  
719 my ( $self,$d1num ) = @_;
720 if ( $d1num ne $empty_string ) {
721  
722 $xpicker->{_d1num} = $d1num;
723 $xpicker->{_note} = $xpicker->{_note}.' d1num='.$xpicker->{_d1num};
724 $xpicker->{_Step} = $xpicker->{_Step}.' d1num='.$xpicker->{_d1num};
725  
726 } else {
727 print("xpicker, d1num, missing d1num,\n");
728 }
729 }
730  
731  
732 =head2 sub d2
733  
734  
735 =cut
736  
737 sub d2 {
738  
739 my ( $self,$d2 ) = @_;
740 if ( $d2 ne $empty_string ) {
741  
742 $xpicker->{_d2} = $d2;
743 $xpicker->{_note} = $xpicker->{_note}.' d2='.$xpicker->{_d2};
744 $xpicker->{_Step} = $xpicker->{_Step}.' d2='.$xpicker->{_d2};
745  
746 } else {
747 print("xpicker, d2, missing d2,\n");
748 }
749 }
750  
751  
752 =head2 sub d2num
753  
754  
755 =cut
756  
757 sub d2num {
758  
759 my ( $self,$d2num ) = @_;
760 if ( $d2num ne $empty_string ) {
761  
762 $xpicker->{_d2num} = $d2num;
763 $xpicker->{_note} = $xpicker->{_note}.' d2num='.$xpicker->{_d2num};
764 $xpicker->{_Step} = $xpicker->{_Step}.' d2num='.$xpicker->{_d2num};
765  
766 } else {
767 print("xpicker, d2num, missing d2num,\n");
768 }
769 }
770  
771  
772 =head2 sub endian
773  
774  
775 =cut
776  
777 sub endian {
778  
779 my ( $self,$endian ) = @_;
780 if ( $endian ne $empty_string ) {
781  
782 $xpicker->{_endian} = $endian;
783 $xpicker->{_note} = $xpicker->{_note}.' endian='.$xpicker->{_endian};
784 $xpicker->{_Step} = $xpicker->{_Step}.' endian='.$xpicker->{_endian};
785  
786 } else {
787 print("xpicker, endian, missing endian,\n");
788 }
789 }
790  
791  
792 =head2 sub f1
793  
794  
795 =cut
796  
797 sub f1 {
798  
799 my ( $self,$f1 ) = @_;
800 if ( $f1 ne $empty_string ) {
801  
802 $xpicker->{_f1} = $f1;
803 $xpicker->{_note} = $xpicker->{_note}.' f1='.$xpicker->{_f1};
804 $xpicker->{_Step} = $xpicker->{_Step}.' f1='.$xpicker->{_f1};
805  
806 } else {
807 print("xpicker, f1, missing f1,\n");
808 }
809 }
810  
811  
812 =head2 sub f1num
813  
814  
815 =cut
816  
817 sub f1num {
818  
819 my ( $self,$f1num ) = @_;
820 if ( $f1num ne $empty_string ) {
821  
822 $xpicker->{_f1num} = $f1num;
823 $xpicker->{_note} = $xpicker->{_note}.' f1num='.$xpicker->{_f1num};
824 $xpicker->{_Step} = $xpicker->{_Step}.' f1num='.$xpicker->{_f1num};
825  
826 } else {
827 print("xpicker, f1num, missing f1num,\n");
828 }
829 }
830  
831  
832 =head2 sub f2
833  
834  
835 =cut
836  
837 sub f2 {
838  
839 my ( $self,$f2 ) = @_;
840 if ( $f2 ne $empty_string ) {
841  
842 $xpicker->{_f2} = $f2;
843 $xpicker->{_note} = $xpicker->{_note}.' f2='.$xpicker->{_f2};
844 $xpicker->{_Step} = $xpicker->{_Step}.' f2='.$xpicker->{_f2};
845  
846 } else {
847 print("xpicker, f2, missing f2,\n");
848 }
849 }
850  
851  
852 =head2 sub f2num
853  
854  
855 =cut
856  
857 sub f2num {
858  
859 my ( $self,$f2num ) = @_;
860 if ( $f2num ne $empty_string ) {
861  
862 $xpicker->{_f2num} = $f2num;
863 $xpicker->{_note} = $xpicker->{_note}.' f2num='.$xpicker->{_f2num};
864 $xpicker->{_Step} = $xpicker->{_Step}.' f2num='.$xpicker->{_f2num};
865  
866 } else {
867 print("xpicker, f2num, missing f2num,\n");
868 }
869 }
870  
871  
872 =head2 sub grid1
873  
874  
875 =cut
876  
877 sub grid1 {
878  
879 my ( $self,$grid1 ) = @_;
880 if ( $grid1 ne $empty_string ) {
881  
882 $xpicker->{_grid1} = $grid1;
883 $xpicker->{_note} = $xpicker->{_note}.' grid1='.$xpicker->{_grid1};
884 $xpicker->{_Step} = $xpicker->{_Step}.' grid1='.$xpicker->{_grid1};
885  
886 } else {
887 print("xpicker, grid1, missing grid1,\n");
888 }
889 }
890  
891  
892 =head2 sub grid2
893  
894  
895 =cut
896  
897 sub grid2 {
898  
899 my ( $self,$grid2 ) = @_;
900 if ( $grid2 ne $empty_string ) {
901  
902 $xpicker->{_grid2} = $grid2;
903 $xpicker->{_note} = $xpicker->{_note}.' grid2='.$xpicker->{_grid2};
904 $xpicker->{_Step} = $xpicker->{_Step}.' grid2='.$xpicker->{_grid2};
905  
906 } else {
907 print("xpicker, grid2, missing grid2,\n");
908 }
909 }
910  
911  
912 =head2 sub gridcolor
913  
914  
915 =cut
916  
917 sub gridcolor {
918  
919 my ( $self,$gridcolor ) = @_;
920 if ( $gridcolor ne $empty_string ) {
921  
922 $xpicker->{_gridcolor} = $gridcolor;
923 $xpicker->{_note} = $xpicker->{_note}.' gridcolor='.$xpicker->{_gridcolor};
924 $xpicker->{_Step} = $xpicker->{_Step}.' gridcolor='.$xpicker->{_gridcolor};
925  
926 } else {
927 print("xpicker, gridcolor, missing gridcolor,\n");
928 }
929 }
930  
931  
932 =head2 sub hbox
933  
934  
935 =cut
936  
937 sub hbox {
938  
939 my ( $self,$hbox ) = @_;
940 if ( $hbox ne $empty_string ) {
941  
942 $xpicker->{_hbox} = $hbox;
943 $xpicker->{_note} = $xpicker->{_note}.' hbox='.$xpicker->{_hbox};
944 $xpicker->{_Step} = $xpicker->{_Step}.' hbox='.$xpicker->{_hbox};
945  
946 } else {
947 print("xpicker, hbox, missing hbox,\n");
948 }
949 }
950  
951  
952 =head2 sub interp
953  
954  
955 =cut
956  
957 sub interp {
958  
959 my ( $self,$interp ) = @_;
960 if ( $interp ne $empty_string ) {
961  
962 $xpicker->{_interp} = $interp;
963 $xpicker->{_note} = $xpicker->{_note}.' interp='.$xpicker->{_interp};
964 $xpicker->{_Step} = $xpicker->{_Step}.' interp='.$xpicker->{_interp};
965  
966 } else {
967 print("xpicker, interp, missing interp,\n");
968 }
969 }
970  
971  
972 =head2 sub key
973  
974  
975 =cut
976  
977 sub key {
978  
979 my ( $self,$key ) = @_;
980 if ( $key ne $empty_string ) {
981  
982 $xpicker->{_key} = $key;
983 $xpicker->{_note} = $xpicker->{_note}.' key='.$xpicker->{_key};
984 $xpicker->{_Step} = $xpicker->{_Step}.' key='.$xpicker->{_key};
985  
986 } else {
987 print("xpicker, key, missing key,\n");
988 }
989 }
990  
991  
992 =head2 sub label1
993  
994  
995 =cut
996  
997 sub label1 {
998  
999 my ( $self,$label1 ) = @_;
1000 if ( $label1 ne $empty_string ) {
1001  
1002 $xpicker->{_label1} = $label1;
1003 $xpicker->{_note} = $xpicker->{_note}.' label1='.$xpicker->{_label1};
1004 $xpicker->{_Step} = $xpicker->{_Step}.' label1='.$xpicker->{_label1};
1005  
1006 } else {
1007 print("xpicker, label1, missing label1,\n");
1008 }
1009 }
1010  
1011  
1012 =head2 sub label2
1013  
1014  
1015 =cut
1016  
1017 sub label2 {
1018  
1019 my ( $self,$label2 ) = @_;
1020 if ( $label2 ne $empty_string ) {
1021  
1022 $xpicker->{_label2} = $label2;
1023 $xpicker->{_note} = $xpicker->{_note}.' label2='.$xpicker->{_label2};
1024 $xpicker->{_Step} = $xpicker->{_Step}.' label2='.$xpicker->{_label2};
1025  
1026 } else {
1027 print("xpicker, label2, missing label2,\n");
1028 }
1029 }
1030  
1031  
1032 =head2 sub labelcolor
1033  
1034  
1035 =cut
1036  
1037 sub labelcolor {
1038  
1039 my ( $self,$labelcolor ) = @_;
1040 if ( $labelcolor ne $empty_string ) {
1041  
1042 $xpicker->{_labelcolor} = $labelcolor;
1043 $xpicker->{_note} = $xpicker->{_note}.' labelcolor='.$xpicker->{_labelcolor};
1044 $xpicker->{_Step} = $xpicker->{_Step}.' labelcolor='.$xpicker->{_labelcolor};
1045  
1046 } else {
1047 print("xpicker, labelcolor, missing labelcolor,\n");
1048 }
1049 }
1050  
1051  
1052 =head2 sub labelfont
1053  
1054  
1055 =cut
1056  
1057 sub labelfont {
1058  
1059 my ( $self,$labelfont ) = @_;
1060 if ( $labelfont ne $empty_string ) {
1061  
1062 $xpicker->{_labelfont} = $labelfont;
1063 $xpicker->{_note} = $xpicker->{_note}.' labelfont='.$xpicker->{_labelfont};
1064 $xpicker->{_Step} = $xpicker->{_Step}.' labelfont='.$xpicker->{_labelfont};
1065  
1066 } else {
1067 print("xpicker, labelfont, missing labelfont,\n");
1068 }
1069 }
1070  
1071  
1072 =head2 sub mpicks
1073  
1074  
1075 =cut
1076  
1077 sub mpicks {
1078  
1079 my ( $self,$mpicks ) = @_;
1080 if ( $mpicks ne $empty_string ) {
1081  
1082 $xpicker->{_mpicks} = $mpicks;
1083 $xpicker->{_note} = $xpicker->{_note}.' mpicks='.$xpicker->{_mpicks};
1084 $xpicker->{_Step} = $xpicker->{_Step}.' mpicks='.$xpicker->{_mpicks};
1085  
1086 } else {
1087 print("xpicker, mpicks, missing mpicks,\n");
1088 }
1089 }
1090  
1091  
1092 =head2 sub n1
1093  
1094  
1095 =cut
1096  
1097 sub n1 {
1098  
1099 my ( $self,$n1 ) = @_;
1100 if ( $n1 ne $empty_string ) {
1101  
1102 $xpicker->{_n1} = $n1;
1103 $xpicker->{_note} = $xpicker->{_note}.' n1='.$xpicker->{_n1};
1104 $xpicker->{_Step} = $xpicker->{_Step}.' n1='.$xpicker->{_n1};
1105  
1106 } else {
1107 print("xpicker, n1, missing n1,\n");
1108 }
1109 }
1110  
1111  
1112 =head2 sub n1tic
1113  
1114  
1115 =cut
1116  
1117 sub n1tic {
1118  
1119 my ( $self,$n1tic ) = @_;
1120 if ( $n1tic ne $empty_string ) {
1121  
1122 $xpicker->{_n1tic} = $n1tic;
1123 $xpicker->{_note} = $xpicker->{_note}.' n1tic='.$xpicker->{_n1tic};
1124 $xpicker->{_Step} = $xpicker->{_Step}.' n1tic='.$xpicker->{_n1tic};
1125  
1126 } else {
1127 print("xpicker, n1tic, missing n1tic,\n");
1128 }
1129 }
1130  
1131  
1132 =head2 sub n2
1133  
1134  
1135 =cut
1136  
1137 sub n2 {
1138  
1139 my ( $self,$n2 ) = @_;
1140 if ( $n2 ne $empty_string ) {
1141  
1142 $xpicker->{_n2} = $n2;
1143 $xpicker->{_note} = $xpicker->{_note}.' n2='.$xpicker->{_n2};
1144 $xpicker->{_Step} = $xpicker->{_Step}.' n2='.$xpicker->{_n2};
1145  
1146 } else {
1147 print("xpicker, n2, missing n2,\n");
1148 }
1149 }
1150  
1151  
1152 =head2 sub n2tic
1153  
1154  
1155 =cut
1156  
1157 sub n2tic {
1158  
1159 my ( $self,$n2tic ) = @_;
1160 if ( $n2tic ne $empty_string ) {
1161  
1162 $xpicker->{_n2tic} = $n2tic;
1163 $xpicker->{_note} = $xpicker->{_note}.' n2tic='.$xpicker->{_n2tic};
1164 $xpicker->{_Step} = $xpicker->{_Step}.' n2tic='.$xpicker->{_n2tic};
1165  
1166 } else {
1167 print("xpicker, n2tic, missing n2tic,\n");
1168 }
1169 }
1170  
1171  
1172 =head2 sub perc
1173  
1174  
1175 =cut
1176  
1177 sub perc {
1178  
1179 my ( $self,$perc ) = @_;
1180 if ( $perc ne $empty_string ) {
1181  
1182 $xpicker->{_perc} = $perc;
1183 $xpicker->{_note} = $xpicker->{_note}.' perc='.$xpicker->{_perc};
1184 $xpicker->{_Step} = $xpicker->{_Step}.' perc='.$xpicker->{_perc};
1185  
1186 } else {
1187 print("xpicker, perc, missing perc,\n");
1188 }
1189 }
1190  
1191  
1192 =head2 sub picked
1193  
1194  
1195 =cut
1196  
1197 sub picked {
1198  
1199 my ( $self,$picked ) = @_;
1200 if ( $picked ne $empty_string ) {
1201  
1202 $xpicker->{_picked} = $picked;
1203 $xpicker->{_note} = $xpicker->{_note}.' picked='.$xpicker->{_picked};
1204 $xpicker->{_Step} = $xpicker->{_Step}.' picked='.$xpicker->{_picked};
1205  
1206 } else {
1207 print("xpicker, picked, missing picked,\n");
1208 }
1209 }
1210  
1211  
1212 =head2 sub style
1213  
1214  
1215 =cut
1216  
1217 sub style {
1218  
1219 my ( $self,$style ) = @_;
1220 if ( $style ne $empty_string ) {
1221  
1222 $xpicker->{_style} = $style;
1223 $xpicker->{_note} = $xpicker->{_note}.' style='.$xpicker->{_style};
1224 $xpicker->{_Step} = $xpicker->{_Step}.' style='.$xpicker->{_style};
1225  
1226 } else {
1227 print("xpicker, style, missing style,\n");
1228 }
1229 }
1230  
1231  
1232 =head2 sub title
1233  
1234  
1235 =cut
1236  
1237 sub title {
1238  
1239 my ( $self,$title ) = @_;
1240 if ( $title ne $empty_string ) {
1241  
1242 $xpicker->{_title} = $title;
1243 $xpicker->{_note} = $xpicker->{_note}.' title='.$xpicker->{_title};
1244 $xpicker->{_Step} = $xpicker->{_Step}.' title='.$xpicker->{_title};
1245  
1246 } else {
1247 print("xpicker, title, missing title,\n");
1248 }
1249 }
1250  
1251  
1252 =head2 sub titlecolor
1253  
1254  
1255 =cut
1256  
1257 sub titlecolor {
1258  
1259 my ( $self,$titlecolor ) = @_;
1260 if ( $titlecolor ne $empty_string ) {
1261  
1262 $xpicker->{_titlecolor} = $titlecolor;
1263 $xpicker->{_note} = $xpicker->{_note}.' titlecolor='.$xpicker->{_titlecolor};
1264 $xpicker->{_Step} = $xpicker->{_Step}.' titlecolor='.$xpicker->{_titlecolor};
1265  
1266 } else {
1267 print("xpicker, titlecolor, missing titlecolor,\n");
1268 }
1269 }
1270  
1271  
1272 =head2 sub titlefont
1273  
1274  
1275 =cut
1276  
1277 sub titlefont {
1278  
1279 my ( $self,$titlefont ) = @_;
1280 if ( $titlefont ne $empty_string ) {
1281  
1282 $xpicker->{_titlefont} = $titlefont;
1283 $xpicker->{_note} = $xpicker->{_note}.' titlefont='.$xpicker->{_titlefont};
1284 $xpicker->{_Step} = $xpicker->{_Step}.' titlefont='.$xpicker->{_titlefont};
1285  
1286 } else {
1287 print("xpicker, titlefont, missing titlefont,\n");
1288 }
1289 }
1290  
1291  
1292 =head2 sub va
1293  
1294  
1295 =cut
1296  
1297 sub va {
1298  
1299 my ( $self,$va ) = @_;
1300 if ( $va ne $empty_string ) {
1301  
1302 $xpicker->{_va} = $va;
1303 $xpicker->{_note} = $xpicker->{_note}.' va='.$xpicker->{_va};
1304 $xpicker->{_Step} = $xpicker->{_Step}.' va='.$xpicker->{_va};
1305  
1306 } else {
1307 print("xpicker, va, missing va,\n");
1308 }
1309 }
1310  
1311  
1312 =head2 sub verbose
1313  
1314  
1315 =cut
1316  
1317 sub verbose {
1318  
1319 my ( $self,$verbose ) = @_;
1320 if ( $verbose ne $empty_string ) {
1321  
1322 $xpicker->{_verbose} = $verbose;
1323 $xpicker->{_note} = $xpicker->{_note}.' verbose='.$xpicker->{_verbose};
1324 $xpicker->{_Step} = $xpicker->{_Step}.' verbose='.$xpicker->{_verbose};
1325  
1326 } else {
1327 print("xpicker, verbose, missing verbose,\n");
1328 }
1329 }
1330  
1331  
1332 =head2 sub wbox
1333  
1334  
1335 =cut
1336  
1337 sub wbox {
1338  
1339 my ( $self,$wbox ) = @_;
1340 if ( $wbox ne $empty_string ) {
1341  
1342 $xpicker->{_wbox} = $wbox;
1343 $xpicker->{_note} = $xpicker->{_note}.' wbox='.$xpicker->{_wbox};
1344 $xpicker->{_Step} = $xpicker->{_Step}.' wbox='.$xpicker->{_wbox};
1345  
1346 } else {
1347 print("xpicker, wbox, missing wbox,\n");
1348 }
1349 }
1350  
1351  
1352 =head2 sub wt
1353  
1354  
1355 =cut
1356  
1357 sub wt {
1358  
1359 my ( $self,$wt ) = @_;
1360 if ( $wt ne $empty_string ) {
1361  
1362 $xpicker->{_wt} = $wt;
1363 $xpicker->{_note} = $xpicker->{_note}.' wt='.$xpicker->{_wt};
1364 $xpicker->{_Step} = $xpicker->{_Step}.' wt='.$xpicker->{_wt};
1365  
1366 } else {
1367 print("xpicker, wt, missing wt,\n");
1368 }
1369 }
1370  
1371  
1372 =head2 sub x1beg
1373  
1374  
1375 =cut
1376  
1377 sub x1beg {
1378  
1379 my ( $self,$x1beg ) = @_;
1380 if ( $x1beg ne $empty_string ) {
1381  
1382 $xpicker->{_x1beg} = $x1beg;
1383 $xpicker->{_note} = $xpicker->{_note}.' x1beg='.$xpicker->{_x1beg};
1384 $xpicker->{_Step} = $xpicker->{_Step}.' x1beg='.$xpicker->{_x1beg};
1385  
1386 } else {
1387 print("xpicker, x1beg, missing x1beg,\n");
1388 }
1389 }
1390  
1391  
1392 =head2 sub x1end
1393  
1394  
1395 =cut
1396  
1397 sub x1end {
1398  
1399 my ( $self,$x1end ) = @_;
1400 if ( $x1end ne $empty_string ) {
1401  
1402 $xpicker->{_x1end} = $x1end;
1403 $xpicker->{_note} = $xpicker->{_note}.' x1end='.$xpicker->{_x1end};
1404 $xpicker->{_Step} = $xpicker->{_Step}.' x1end='.$xpicker->{_x1end};
1405  
1406 } else {
1407 print("xpicker, x1end, missing x1end,\n");
1408 }
1409 }
1410  
1411  
1412 =head2 sub x1x2
1413  
1414  
1415 =cut
1416  
1417 sub x1x2 {
1418  
1419 my ( $self,$x1x2 ) = @_;
1420 if ( $x1x2 ne $empty_string ) {
1421  
1422 $xpicker->{_x1x2} = $x1x2;
1423 $xpicker->{_note} = $xpicker->{_note}.' x1x2='.$xpicker->{_x1x2};
1424 $xpicker->{_Step} = $xpicker->{_Step}.' x1x2='.$xpicker->{_x1x2};
1425  
1426 } else {
1427 print("xpicker, x1x2, missing x1x2,\n");
1428 }
1429 }
1430  
1431  
1432 =head2 sub x2
1433  
1434  
1435 =cut
1436  
1437 sub x2 {
1438  
1439 my ( $self,$x2 ) = @_;
1440 if ( $x2 ne $empty_string ) {
1441  
1442 $xpicker->{_x2} = $x2;
1443 $xpicker->{_note} = $xpicker->{_note}.' x2='.$xpicker->{_x2};
1444 $xpicker->{_Step} = $xpicker->{_Step}.' x2='.$xpicker->{_x2};
1445  
1446 } else {
1447 print("xpicker, x2, missing x2,\n");
1448 }
1449 }
1450  
1451  
1452 =head2 sub x2beg
1453  
1454  
1455 =cut
1456  
1457 sub x2beg {
1458  
1459 my ( $self,$x2beg ) = @_;
1460 if ( $x2beg ne $empty_string ) {
1461  
1462 $xpicker->{_x2beg} = $x2beg;
1463 $xpicker->{_note} = $xpicker->{_note}.' x2beg='.$xpicker->{_x2beg};
1464 $xpicker->{_Step} = $xpicker->{_Step}.' x2beg='.$xpicker->{_x2beg};
1465  
1466 } else {
1467 print("xpicker, x2beg, missing x2beg,\n");
1468 }
1469 }
1470  
1471  
1472 =head2 sub x2end
1473  
1474  
1475 =cut
1476  
1477 sub x2end {
1478  
1479 my ( $self,$x2end ) = @_;
1480 if ( $x2end ne $empty_string ) {
1481  
1482 $xpicker->{_x2end} = $x2end;
1483 $xpicker->{_note} = $xpicker->{_note}.' x2end='.$xpicker->{_x2end};
1484 $xpicker->{_Step} = $xpicker->{_Step}.' x2end='.$xpicker->{_x2end};
1485  
1486 } else {
1487 print("xpicker, x2end, missing x2end,\n");
1488 }
1489 }
1490  
1491  
1492 =head2 sub x2file
1493  
1494  
1495 =cut
1496  
1497 sub x2file {
1498  
1499 my ( $self,$x2file ) = @_;
1500 if ( $x2file ne $empty_string ) {
1501  
1502 $xpicker->{_x2file} = $x2file;
1503 $xpicker->{_note} = $xpicker->{_note}.' x2file='.$xpicker->{_x2file};
1504 $xpicker->{_Step} = $xpicker->{_Step}.' x2file='.$xpicker->{_x2file};
1505  
1506 } else {
1507 print("xpicker, x2file, missing x2file,\n");
1508 }
1509 }
1510  
1511  
1512 =head2 sub xbox
1513  
1514  
1515 =cut
1516  
1517 sub xbox {
1518  
1519 my ( $self,$xbox ) = @_;
1520 if ( $xbox ne $empty_string ) {
1521  
1522 $xpicker->{_xbox} = $xbox;
1523 $xpicker->{_note} = $xpicker->{_note}.' xbox='.$xpicker->{_xbox};
1524 $xpicker->{_Step} = $xpicker->{_Step}.' xbox='.$xpicker->{_xbox};
1525  
1526 } else {
1527 print("xpicker, xbox, missing xbox,\n");
1528 }
1529 }
1530  
1531  
1532 =head2 sub xcur
1533  
1534  
1535 =cut
1536  
1537 sub xcur {
1538  
1539 my ( $self,$xcur ) = @_;
1540 if ( $xcur ne $empty_string ) {
1541  
1542 $xpicker->{_xcur} = $xcur;
1543 $xpicker->{_note} = $xpicker->{_note}.' xcur='.$xpicker->{_xcur};
1544 $xpicker->{_Step} = $xpicker->{_Step}.' xcur='.$xpicker->{_xcur};
1545  
1546 } else {
1547 print("xpicker, xcur, missing xcur,\n");
1548 }
1549 }
1550  
1551  
1552 =head2 sub ybox
1553  
1554  
1555 =cut
1556  
1557 sub ybox {
1558  
1559 my ( $self,$ybox ) = @_;
1560 if ( $ybox ne $empty_string ) {
1561  
1562 $xpicker->{_ybox} = $ybox;
1563 $xpicker->{_note} = $xpicker->{_note}.' ybox='.$xpicker->{_ybox};
1564 $xpicker->{_Step} = $xpicker->{_Step}.' ybox='.$xpicker->{_ybox};
1565  
1566 } else {
1567 print("xpicker, ybox, missing ybox,\n");
1568 }
1569 }
1570  
1571  
1572 =head2 sub get_max_index
1573  
1574 max index = number of input variables -1
1575
1576 =cut
1577
1578 sub get_max_index {
1579 my ($self) = @_;
1580 my $max_index = 45;
1581  
1582 return($max_index);
1583 }
1584
1585
1586 1;