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

filter: Statementstmt 0.0% 0 / 673 Branchbran 0.0% 0 / 184 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 98 Podpod 0.0% 0 / 96 totaltotal 0.0% 0 / 1051 CC 93 SCAR 17.7
CC
93
Cov
0%
absclip
6.0
bclip
6.0
bias
6.0
CRAP 5.9
1 package App::SeismicUnixGui::sunix::plot::suxwigb;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: SUXWIGB - X-windows Bit-mapped WIGgle plot of a segy data set
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 This program also can use XWIGB parameters (see below)
22  
23 SUXWIGB - X-windows Bit-mapped WIGgle plot of a segy data set
24 This is a modified suxwigb that uses the depth or coordinate scaling
25 when such values are used as keys.
26  
27 suxwigb <stdin [optional parameters] | ...
28  
29 Optional parameters:
30 key=(keyword) if set, the values of x2 are set from header field
31 specified by keyword
32 n2=tr.ntr or number of traces in the data set (ntr is an alias for n2)
33 d1=tr.d1 or tr.dt/10^6 sampling interval in the fast dimension
34 =.004 for seismic (if not set)
35 =1.0 for nonseismic (if not set)
36 d2=tr.d2 sampling interval in the slow dimension
37 =1.0 (if not set)
38 f1=tr.f1 or tr.delrt/10^3 or 0.0 first sample in the fast dimension
39 f2=tr.f2 or tr.tracr or tr.tracl first sample in the slow dimension
40 =1.0 for seismic (if not set)
41 =d2 for nonseismic (if not set)
42  
43 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
44 vsp (same as normal with axis 2 reversed)
45 Note: vsp requires use of a keyword
46 verbose=0 =1 to print some useful information
47  
48  
49 tmpdir= if non-empty, use the value as a directory path
50 prefix for storing temporary files; else if the
51 the CWP_TMPDIR environment variable is set use
52 its value for the path; else use tmpfile()
53  
54 Note that for seismic time domain data, the "fast dimension" is
55 time and the "slow dimension" is usually trace number or range.
56 Also note that "foreign" data tapes may have something unexpected
57 in the d2,f2 fields, use segyclean to clear these if you can afford
58 the processing time or use d2= f2= to override the header values if
59 not.
60  
61 If key=keyword is set, then the values of x2 are taken from the header
62 field represented by the keyword (for example key=offset, will show
63 traces in true offset). This permit unequally spaced traces to be plotted.
64 Type sukeyword -o to see the complete list of SU keywords.
65  
66 This program is really just a wrapper for the plotting program: xwigb
67 See the xwigb selfdoc for the remaining parameters.
68  
69  
70 Credits:
71  
72 CWP: Dave Hale and Zhiming Li (xwigb, etc.)
73 Jack Cohen and John Stockwell (suxwigb, etc.)
74 Delphi: Alexander Koek, added support for irregularly spaced traces
75  
76 Modified by Brian Zook, Southwest Research Institute, to honor
77 scale factors, added vsp style
78  
79 Notes:
80 When the number of traces isn't known, we need to count
81 the traces for xwigb. You can make this value "known"
82 either by getparring n2 or by having the ntr field set
83 in the trace header. A getparred value takes precedence
84 over the value in the trace header.
85  
86 When we must compute ntr, we don't allocate a 2-d array,
87 but just content ourselves with copying trace by trace from
88 the data "file" to the pipe into the plotting program.
89 Although we could use tr.data, we allocate a trace buffer
90 for code clarity.
91
92 This program also can use XWIGB parameters
93 XWIGB - X WIGgle-trace plot of f(x1,x2) via Bitmap
94  
95 xwigb n1= [optional parameters] <binaryfile
96  
97 X Functionality:
98 Button 1 Zoom with rubberband box
99 Button 2 Show mouse (x1,x2) coordinates while pressed
100 q or Q key Quit
101 s key Save current mouse (x1,x2) location to file
102 p or P key Plot current window with pswigb (only from disk files)
103 a or page up keys enhance clipping by 10%
104 c or page down keys reduce clipping by 10%
105 up,down,left,right keys move zoom window by half width/height
106 i or +(keypad) zoom in by factor 2
107 o or -(keypad) zoom out by factor 2
108 l lock the zoom while moving the coursor
109 u unlock the zoom
110 1,2,...,9 Zoom/Move factor of the window size
111  
112 Notes:
113 Reaching the window limits while moving within changes the zoom
114 factor in this direction. The use of zoom locking(l) disables it
115  
116 Required Parameters:
117 n1 number of samples in 1st (fast) dimension
118  
119 Optional Parameters:
120 d1=1.0 sampling interval in 1st dimension
121 f1=0.0 first sample in 1st dimension
122 n2=all number of samples in 2nd (slow) dimension
123 d2=1.0 sampling interval in 2nd dimension
124 f2=0.0 first sample in 2nd dimension
125 x2=f2,f2+d2,... array of sampled values in 2nd dimension
126 mpicks=/dev/tty file to save mouse picks in
127 bias=0.0 data value corresponding to location along axis 2
128 perc=100.0 percentile for determining clip
129 clip=(perc percentile) data values < bias+clip and > bias-clip are clipped
130 xcur=1.0 wiggle excursion in traces corresponding to clip
131 wt=1 =0 for no wiggle-trace; =1 for wiggle-trace
132 va=1 =0 for no variable-area; =1 for variable-area fill
133 =2 for variable area, solid/grey fill
134 SHADING: 2<=va<=5 va=2 light grey, va=5 black
135 verbose=0 =1 for info printed on stderr (0 for no info)
136 xbox=50 x in pixels of upper left corner of window
137 ybox=50 y in pixels of upper left corner of window
138 wbox=550 width in pixels of window
139 hbox=700 height in pixels of window
140 x1beg=x1min value at which axis 1 begins
141 x1end=x1max value at which axis 1 ends
142 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
143 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
144 n1tic=1 number of tics per numbered tic on axis 1
145 grid1=none grid lines on axis 1 - none, dot, dash, or solid
146 x2beg=x2min value at which axis 2 begins
147 x2end=x2max value at which axis 2 ends
148 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
149 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
150 n2tic=1 number of tics per numbered tic on axis 2
151 grid2=none grid lines on axis 2 - none, dot, dash, or solid
152 label2= label on axis 2
153 labelfont=Erg14 font name for axes labels
154 title= title of plot
155 titlefont=Rom22 font name for title
156 windowtitle=xwigb title on window
157 labelcolor=blue color for axes labels
158 titlecolor=red color for title
159 gridcolor=blue color for grid lines
160 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
161 seismic (axis 1 vertical, axis 2 horizontal)
162 endian= =0 little endian =1 big endian
163 interp=0 no interpolation in display
164 =1 use 8 point sinc interpolation
165 wigclip=0 If 0, the plot box is expanded to accommodate
166 the larger wiggles created by xcur>1. If this
167 flag is non-zero, the extra-large wiggles are
168 are clipped at the boundary of the plot box.
169 plotfile=plotfile.ps filename for interactive ploting (P)
170 curve=curve1,curve2,... file(s) containing points to draw curve(s)
171 npair=n1,n2,n2,... number(s) of pairs in each file
172 curvecolor=color1,color2,... color(s) for curve(s)
173  
174 Notes:
175 Xwigb will try to detect the endian value of the X-display and will
176 set it to the right value. If it gets obviously wrong information the
177 endian value will be set to the endian value of the machine that is
178 given at compile time as the value of CWPENDIAN defined in cwp.h
179 and set via the compile time flag ENDIANFLAG in Makefile.config.
180  
181 The only time that you might want to change the value of the endian
182 variable is if you are viewing traces on a machine with a different
183 byte order than the machine you are creating the traces on AND if for
184 some reason the automaic detection of the display byte order fails.
185 Set endian to that of the machine you are viewing the traces on.
186  
187 The interp flag is useful for making better quality wiggle trace for
188 making plots from screen dumps. However, this flag assumes that the
189 data are purely oscillatory. This option may not be appropriate for all
190 data sets.
191  
192 The curve file is an ascii file with the points specified as x1 x2
193 pairs, separated by a space, one pair to a line. A "vector" of curve
194 files and curve colors may be specified as curvefile=file1,file2,etc.
195 and curvecolor=color1,color2,etc, and the number of pairs of values
196 in each file as npair=npair1,npair2,... .
197  
198  
199 Author: Dave Hale, Colorado School of Mines, 08/09/90
200  
201 Endian stuff by:
202 Morten Wendell Pedersen, Aarhus University (visiting CSM, June 1995)
203 & John Stockwell, Colorado School of Mines, 5 June 1995
204  
205 Stewart A. Levin, Mobil - Added ps print option
206 John Stockwell - Added optional sinc interpolation
207 Stewart A. Levin, Mobil - protect title, labels in pswigb call
208  
209 Brian J. Zook, SwRI - Added style=normal and wigclip flag
210  
211 Brian K. Macy, Phillips Petroleum, 11/27/98, added curve plotting option
212 Curve plotting notes:
213 MODIFIED: P. Michaels, Boise State Univeristy 29 December 2000
214 Added solid/grey color scheme for peaks/troughs
215
216 G.Klein, IFG Kiel University, 2002-09-29, added cursor scrolling and
217 interactive change of zoom and clipping.
218 IFM-GEOMAR Kiel, 2004-03-12, added zoom locking
219 IFM-GEOMAR Kiel, 2004-03-25, interactive plotting fixed
220  
221 =head2 CHANGES and their DATES
222  
223 =cut
224  
225 use Moose;
226 our $VERSION = '0.0.2';
227  
228 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
229  
230 my $get = L_SU_global_constants->new();
231  
232 my $var = $get->var();
233 my $empty_string = $var->{_empty_string};
234  
235 my $suxwigb = {
236 _absclip => '',
237 _bias => '',
238 _box_width => '',
239 _box_height => '',
240 _box_X0 => '',
241 _box_Y0 => '',
242 _clip => '',
243 _cmap => '',
244 _curve => '',
245 _curvecolor => '',
246 _curvefile => '',
247 _ftr => '',
248 _d1 => '',
249 _d1num => '',
250 _dt => '',
251 _d2 => '',
252 _dx => '',
253 _dx_major_divisions => '',
254 _dy_major_divisions => '',
255 _dt_major_divisions => '',
256 _d2num => '',
257 _dtr => '',
258 _endian => '',
259 _f1num => '',
260 _f1 => '',
261 _first_y => '',
262 _first_time_sample_value => '',
263 _f2 => '',
264 _first_x => '',
265 _first_distance_sample_value => '',
266 _first_distance_tick_num => '',
267 _f1num => '',
268 _first_time_tick_num => '',
269 _f2num => '',
270 _grid1 => '',
271 _grid2 => '',
272 _gridcolor => '',
273 _hbox => '',
274 _headerword => '',
275 _hiclip => '',
276 _interp => '',
277 _key => '',
278 _label2 => '',
279 _labelfont => '',
280 _labelcolor => '',
281 _label1 => '',
282 _label2 => '',
283 _loclip => '',
284 _mpicks => '',
285 _n1 => '',
286 _n1tic => '',
287 _num_minor_ticks_betw_major_time_ticks => '',
288 _n2 => '',
289 _n2tic => '',
290 _npair => '',
291 _num_minor_ticks_betw_major_distance_ticks => '',
292 _percent => '',
293 _plotfile => '',
294 _orientation => '',
295 _perc => '',
296 _picks => '',
297 _shading => '',
298 _style => '',
299 _tend_s => '',
300 _tstart_s => '',
301 _tmpdir => '',
302 _trace_inc => '',
303 _trace_inc_m => '',
304 _title => '',
305 _titlefont => '',
306 _titlecolor => '',
307 _va => '',
308 _verbose => '',
309 _wbox => '',
310 _wigclip => '',
311 _wt => '',
312 _windowtitle => '',
313 _x2beg => '',
314 _xstart_m => '',
315 _x2end => '',
316 _xend_m => '',
317 _xcur => '',
318 _x2 => '',
319 _x1beg => '',
320 _xbox => '',
321 _x1end => '',
322 _xlabel => '',
323 _x_tick_increment => '',
324 _xcur => '',
325 _ylabel => '',
326 _y_tick_increment => '',
327 _ybox => '',
328 _Step => '',
329 _note => '',
330 };
331  
332 =head2 sub Step
333  
334 collects switches and assembles bash instructions
335 by adding the program name
336  
337 =cut
338  
339 sub Step {
340  
341 $suxwigb->{_Step} = 'suxwigb' . $suxwigb->{_Step};
342 return ( $suxwigb->{_Step} );
343  
344 }
345  
346 =head2 sub note
347  
348 collects switches and assembles bash instructions
349 by adding the program name
350  
351 =cut
352  
353 sub note {
354  
355 $suxwigb->{_note} = 'suxwigb' . $suxwigb->{_note};
356 return ( $suxwigb->{_note} );
357  
358 }
359  
360 =head2 sub clear
361  
362 50 + 43 personalized params
363 clear global variables from the memory
364  
365 =cut
366  
367 sub clear {
368  
369 $suxwigb->{_d1} = '';
370 $suxwigb->{_d2} = '';
371 $suxwigb->{_f1} = '';
372 $suxwigb->{_f2} = '';
373 $suxwigb->{_key} = '';
374 $suxwigb->{_n2} = '';
375 $suxwigb->{_style} = '';
376 $suxwigb->{_tmpdir} = '';
377 $suxwigb->{_absclip} = '';
378 $suxwigb->{_bias} = '';
379 $suxwigb->{_box_width} = '';
380 $suxwigb->{_box_height} = '';
381 $suxwigb->{_box_X0} = '';
382 $suxwigb->{_box_Y0} = '';
383 $suxwigb->{_clip} = '';
384 $suxwigb->{_cmap} = '';
385 $suxwigb->{_curve} = '';
386 $suxwigb->{_curvecolor} = '';
387 $suxwigb->{_curvefile} = '';
388 $suxwigb->{_ftr} = '';
389 $suxwigb->{_d1} = '';
390 $suxwigb->{_d1num} = '';
391 $suxwigb->{_dt} = '';
392 $suxwigb->{_d2} = '';
393 $suxwigb->{_dx} = '';
394 $suxwigb->{_dx_major_divisions} = '';
395 $suxwigb->{_dy_major_divisions} = '';
396 $suxwigb->{_dt_major_divisions} = '';
397 $suxwigb->{_d2num} = '';
398 $suxwigb->{_dtr} = '';
399 $suxwigb->{_endian} = '';
400 $suxwigb->{_f1num} = '';
401 $suxwigb->{_f1} = '';
402 $suxwigb->{_first_y} = '';
403 $suxwigb->{_first_time_sample_value} = '';
404 $suxwigb->{_f2} = '';
405 $suxwigb->{_first_x} = '';
406 $suxwigb->{_first_distance_sample_value} = '';
407 $suxwigb->{_first_distance_tick_num} = '';
408 $suxwigb->{_f1num} = '';
409 $suxwigb->{_first_time_tick_num} = '';
410 $suxwigb->{_f2num} = '';
411 $suxwigb->{_grid1} = '';
412 $suxwigb->{_grid2} = '';
413 $suxwigb->{_gridcolor} = '';
414 $suxwigb->{_hbox} = '';
415 $suxwigb->{_headerword} = '';
416 $suxwigb->{_hiclip} = '';
417 $suxwigb->{_interp} = '';
418 $suxwigb->{_key} = '';
419 $suxwigb->{_label2} = '';
420 $suxwigb->{_labelfont} = '';
421 $suxwigb->{_labelcolor} = '';
422 $suxwigb->{_label1} = '';
423 $suxwigb->{_label2} = '';
424 $suxwigb->{_loclip} = '';
425 $suxwigb->{_mpicks} = '';
426 $suxwigb->{_n1} = '';
427 $suxwigb->{_n1tic} = '';
428 $suxwigb->{_num_minor_ticks_betw_major_time_ticks} = '';
429 $suxwigb->{_n2} = '';
430 $suxwigb->{_n2tic} = '';
431 $suxwigb->{_npair} = '';
432 $suxwigb->{_num_minor_ticks_betw_major_distance_ticks} = '';
433 $suxwigb->{_percent} = '';
434 $suxwigb->{_plotfile} = '';
435 $suxwigb->{_orientation} = '';
436 $suxwigb->{_perc} = '';
437 $suxwigb->{_picks} = '';
438 $suxwigb->{_shading} = '';
439 $suxwigb->{_style} = '';
440 $suxwigb->{_tend_s} = '';
441 $suxwigb->{_tstart_s} = '';
442 $suxwigb->{_tmpdir} = '';
443 $suxwigb->{_trace_inc} = '';
444 $suxwigb->{_trace_inc_m} = '';
445 $suxwigb->{_title} = '';
446 $suxwigb->{_titlefont} = '';
447 $suxwigb->{_titlecolor} = '';
448 $suxwigb->{_va} = '';
449 $suxwigb->{_verbose} = '';
450 $suxwigb->{_wbox} = '';
451 $suxwigb->{_wigclip} = '';
452 $suxwigb->{_wt} = '';
453 $suxwigb->{_windowtitle} = '';
454 $suxwigb->{_x2beg} = '';
455 $suxwigb->{_xstart_m} = '';
456 $suxwigb->{_x2end} = '';
457 $suxwigb->{_xend_m} = '';
458 $suxwigb->{_xcur} = '';
459 $suxwigb->{_x2} = '';
460 $suxwigb->{_x1beg} = '';
461 $suxwigb->{_xbox} = '';
462 $suxwigb->{_x1end} = '';
463 $suxwigb->{_xlabel} = '';
464 $suxwigb->{_x_tick_increment} = '';
465 $suxwigb->{_xcur} = '';
466 $suxwigb->{_ylabel} = '';
467 $suxwigb->{_y_tick_increment} = '';
468 $suxwigb->{_ybox} = '';
469 $suxwigb->{_verbose} = '';
470 $suxwigb->{_Step} = '';
471 $suxwigb->{_note} = '';
472 }
473  
474 =head2 sub absclip
475  
476 define min and max plotting values
477 define min and max plotting values
478
479 =cut
480  
481 sub absclip {
482  
483 my ( $self, $absclip ) = @_;
484 if ( $absclip ne $empty_string ) {
485  
486 $suxwigb->{_absclip} = $absclip;
487 $suxwigb->{_note} =
488 $suxwigb->{_note} . ' clip=' . $suxwigb->{_absclip};
489 $suxwigb->{_Step} =
490 $suxwigb->{_Step} . ' clip=' . $suxwigb->{_absclip};
491  
492 }
493 else {
494 print("suxwigb,missing absclip,\n");
495 }
496 }
497  
498 =head2 sub bclip
499  
500  
501 =cut
502  
503 sub bclip {
504  
505 my ( $self, $bclip ) = @_;
506 if ( $bclip ne $empty_string ) {
507  
508 $suxwigb->{_bclip} = $bclip;
509 $suxwigb->{_note} =
510 $suxwigb->{_note} . ' bclip=' . $suxwigb->{_bclip};
511 $suxwigb->{_Step} =
512 $suxwigb->{_Step} . ' bclip=' . $suxwigb->{_bclip};
513  
514 }
515 else {
516 print("suxwigb, bclip, missing bclip,\n");
517 }
518 }
519  
520 =head2 sub bias
521  
522 G. Bonot 091718
523 Only shows data to the right (along axis 2) of each sample data value. Data accounts for
524 the right side of waveform amplitude and is adjusted on input
525  
526 =cut
527  
528 sub bias {
529  
530 my ( $self, $bias ) = @_;
531 if ( $bias ne $empty_string ) {
532  
533 $suxwigb->{_bias} = $bias;
534 $suxwigb->{_note} = $suxwigb->{_note} . ' bias=' . $suxwigb->{_bias};
535 $suxwigb->{_Step} = $suxwigb->{_Step} . ' bias=' . $suxwigb->{_bias};
536  
537 }
538 else {
539 print("suxwigb,missing bias,\n");
540 }
541 }
542  
543 =head2 sub box_X0
544  
545  
546 =cut
547  
548 sub box_X0 {
549  
550 my ( $self, $xbox ) = @_;
551 if ( $xbox ne $empty_string ) {
552  
553 $suxwigb->{_xbox} = $xbox;
554 $suxwigb->{_note} = $suxwigb->{_note} . ' xbox=' . $suxwigb->{_xbox};
555 $suxwigb->{_Step} = $suxwigb->{_Step} . ' xbox=' . $suxwigb->{_xbox};
556  
557 }
558 else {
559 print("suxwigb,box_X0 ,missing xbox\n");
560 }
561 }
562  
563 =head2 sub box_Y0
564  
565  
566 =cut
567  
568 sub box_Y0 {
569  
570 my ( $self, $ybox ) = @_;
571 if ( $ybox ne $empty_string ) {
572  
573 $suxwigb->{_ybox} = $ybox;
574 $suxwigb->{_note} = $suxwigb->{_note} . ' ybox=' . $suxwigb->{_ybox};
575 $suxwigb->{_Step} = $suxwigb->{_Step} . ' ybox=' . $suxwigb->{_ybox};
576  
577 }
578 else {
579 print("suxwigb,box_Y0 ,missing ybox\n");
580 }
581 }
582  
583 =head2 sub box_height
584  
585  
586 =cut
587  
588 sub box_height {
589  
590 my ( $self, $hbox ) = @_;
591 if ( $hbox ne $empty_string ) {
592  
593 $suxwigb->{_hbox} = $hbox;
594 $suxwigb->{_note} = $suxwigb->{_note} . ' hbox=' . $suxwigb->{_hbox};
595 $suxwigb->{_Step} = $suxwigb->{_Step} . ' hbox=' . $suxwigb->{_hbox};
596  
597 }
598 else {
599 print("suxwigb,box_height,missing hbox,\n");
600 }
601 }
602  
603 =head2 sub box_width
604  
605  
606 =cut
607  
608 sub box_width {
609  
610 my ( $self, $wbox ) = @_;
611 if ( $wbox ne $empty_string ) {
612  
613 $suxwigb->{_wbox} = $wbox;
614 $suxwigb->{_note} = $suxwigb->{_note} . ' wbox=' . $suxwigb->{_wbox};
615 $suxwigb->{_Step} = $suxwigb->{_Step} . ' wbox=' . $suxwigb->{_wbox};
616  
617 }
618 else {
619 print("box_width wbox,\n");
620 }
621 }
622  
623 =head2 sub clip
624  
625 define min and max plotting values
626  
627 =cut
628  
629 sub clip {
630  
631 my ( $self, $clip ) = @_;
632 if ( $clip ne $empty_string ) {
633  
634 $suxwigb->{_clip} = $clip;
635 $suxwigb->{_note} = $suxwigb->{_note} . ' clip=' . $suxwigb->{_clip};
636 $suxwigb->{_Step} = $suxwigb->{_Step} . ' clip=' . $suxwigb->{_clip};
637  
638 }
639 else {
640 print("suxwigb,missing clip,\n");
641 }
642 }
643  
644 =head2 sub cmap
645 define min and max plotting values
646  
647 =cut
648  
649 sub cmap {
650  
651 my ( $self, $cmap ) = @_;
652 if ( $cmap ne $empty_string ) {
653  
654 $suxwigb->{_cmap} = $cmap;
655 $suxwigb->{_note} = $suxwigb->{_note} . ' cmap=' . $suxwigb->{_cmap};
656 $suxwigb->{_Step} = $suxwigb->{_Step} . ' cmap=' . $suxwigb->{_cmap};
657  
658 }
659 else {
660 print("suxwigb,cmap, missing cmap,\n");
661 }
662 }
663  
664 =head2 sub curve
665  
666  
667 =cut
668  
669 sub curve {
670  
671 my ( $self, $curve ) = @_;
672 if ( $curve ne $empty_string ) {
673  
674 $suxwigb->{_curve} = $curve;
675 $suxwigb->{_note} =
676 $suxwigb->{_note} . ' curve=' . $suxwigb->{_curve};
677 $suxwigb->{_Step} =
678 $suxwigb->{_Step} . ' curve=' . $suxwigb->{_curve};
679  
680 }
681 else {
682 print("suxwigb,missing curve,\n");
683 }
684 }
685  
686 =head2 sub curvecolor
687  
688  
689 =cut
690  
691 sub curvecolor {
692  
693 my ( $self, $curvecolor ) = @_;
694 if ( $curvecolor ne $empty_string ) {
695  
696 $suxwigb->{_curvecolor} = $curvecolor;
697 $suxwigb->{_note} =
698 $suxwigb->{_note} . ' curvecolor=' . $suxwigb->{_curvecolor};
699 $suxwigb->{_Step} =
700 $suxwigb->{_Step} . ' curvecolor=' . $suxwigb->{_curvecolor};
701  
702 }
703 else {
704 print("suxwigb,missing curvecolor,\n");
705 }
706 }
707  
708 =head2 sub curvefile
709  
710  
711 =cut
712  
713 sub curvefile {
714  
715 my ( $self, $curvefile ) = @_;
716 if ( $curvefile ne $empty_string ) {
717  
718 $suxwigb->{_curvefile} = $curvefile;
719 $suxwigb->{_note} =
720 $suxwigb->{_note} . ' curvefile=' . $suxwigb->{_curvefile};
721 $suxwigb->{_Step} =
722 $suxwigb->{_Step} . ' curvefile=' . $suxwigb->{_curvefile};
723  
724 }
725 else {
726 print("suxwigb,missing curvefile,\n");
727 }
728 }
729  
730 =head2 sub d1
731  
732 increment in fast dimension
733 usually time and equal to dt
734  
735 =cut
736  
737 sub d1 {
738  
739 my ( $self, $d1 ) = @_;
740 if ( $d1 ne $empty_string ) {
741  
742 $suxwigb->{_d1} = $d1;
743 $suxwigb->{_note} = $suxwigb->{_note} . ' d1=' . $suxwigb->{_d1};
744 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d1=' . $suxwigb->{_d1};
745  
746 }
747 else {
748 print("suxwigb, d1, missing d1,\n");
749 }
750 }
751  
752 =head2 subs d1 and dt
753  
754 increment in fast dimension
755 usually time and equal to dt
756  
757 =cut
758  
759 sub dt {
760  
761 my ( $self, $d1 ) = @_;
762  
763 if ( $d1 ne $empty_string ) {
764  
765 $suxwigb->{_d1} = $d1;
766 $suxwigb->{_note} = $suxwigb->{_note} . ' d1=' . $suxwigb->{_d1};
767 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d1=' . $suxwigb->{_d1};
768  
769 }
770 else {
771 print("suxwigb, dt, missing d1,\n");
772 }
773 }
774  
775 =head2 sub dt_major_divisions
776  
777 subs d1num, y_tick_increment dy_major_divisions dt_major_divisions
778  
779 numbered tick increments along x axis
780 usually in m and only for display
781
782 Kenny Lau
783 16 Sept 2018
784 Changes the interval between ticks
785  
786 =cut
787  
788 sub dt_major_divisions {
789  
790 my ( $self, $d1num ) = @_;
791 if ( $d1num ne $empty_string ) {
792  
793 $suxwigb->{_d1num} = $d1num;
794 $suxwigb->{_note} =
795 $suxwigb->{_note} . ' d1num=' . $suxwigb->{_d1num};
796 $suxwigb->{_Step} =
797 $suxwigb->{_Step} . ' d1num=' . $suxwigb->{_d1num};
798  
799 }
800 else {
801 print("suxwigb,dt_major_divisions,missing d1num,\n");
802 }
803  
804 }
805  
806 =head2 subs trace_inc trace_inc_m, dx and d2
807  
808 increment in fast dimension
809 usually time and equal to dt
810  
811 only the first trace is read in
812 if an increment is not 1 between traces
813 you should indicate here
814
815 distance increment between traces
816  
817 =cut
818  
819 sub dx {
820  
821 my ( $self, $d2 ) = @_;
822 if ( $d2 ne $empty_string ) {
823  
824 $suxwigb->{_d2} = $d2;
825 $suxwigb->{_note} = $suxwigb->{_note} . ' d2=' . $suxwigb->{_d2};
826 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d2=' . $suxwigb->{_d2};
827  
828 }
829 else {
830 print("suxwigb, dx, missing d2,\n");
831 }
832 }
833  
834 =head2 sub dy_major_divisions
835  
836 subs d1num, y_tick_increment dy_major_divisions dt_major_divisions
837  
838 numbered tick increments along x axis
839 usually in m and only for display
840
841 Kenny Lau
842 16 Sept 2018
843 Changes the interval between ticks
844  
845 =cut
846  
847 sub dy_major_divisions {
848  
849 my ( $self, $d1num ) = @_;
850 if ( $d1num ne $empty_string ) {
851  
852 $suxwigb->{_d1num} = $d1num;
853 $suxwigb->{_note} =
854 $suxwigb->{_note} . ' d1num=' . $suxwigb->{_d1num};
855 $suxwigb->{_Step} =
856 $suxwigb->{_Step} . ' d1num=' . $suxwigb->{_d1num};
857  
858 }
859 else {
860 print("suxwigb,dy_major_divisions,missing d1num,\n");
861 }
862  
863 }
864  
865 =head2 sub d1num
866  
867 subs d1num, y_tick_increment dy_major_divisions dt_major_divisions
868  
869 numbered tick increments along x axis
870 usually in m and only for display
871
872 Kenny Lau
873 16 Sept 2018
874 Changes the interval between ticks
875  
876 =cut
877  
878 sub d1num {
879  
880 my ( $self, $d1num ) = @_;
881 if ( $d1num ne $empty_string ) {
882  
883 $suxwigb->{_d1num} = $d1num;
884 $suxwigb->{_note} =
885 $suxwigb->{_note} . ' d1num=' . $suxwigb->{_d1num};
886 $suxwigb->{_Step} =
887 $suxwigb->{_Step} . ' d1num=' . $suxwigb->{_d1num};
888  
889 }
890 else {
891 print("suxwigb,missing d1num,\n");
892 }
893 }
894  
895 =head2 subs trace_inc trace_inc_m, dx and d2
896  
897 increment in fast dimension
898 usually time and equal to dt
899  
900 only the first trace is read in
901 if an increment is not 1 between traces
902 you should indicate here
903
904 distance increment between traces
905  
906 =cut
907  
908 sub d2 {
909  
910 my ( $self, $d2 ) = @_;
911 if ( $d2 ne $empty_string ) {
912  
913 $suxwigb->{_d2} = $d2;
914 $suxwigb->{_note} = $suxwigb->{_note} . ' d2=' . $suxwigb->{_d2};
915 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d2=' . $suxwigb->{_d2};
916  
917 }
918 else {
919 print("suxwigb, d2, missing d2,\n");
920 }
921 }
922  
923 =head2 subs d2num dx_major_divisions and x_tick_increment
924  
925 numbered tick increments along x axis
926 usually in m and only for display
927  
928 =cut
929  
930 sub d2num {
931  
932 my ( $self, $d2num ) = @_;
933 if ( $d2num ne $empty_string ) {
934  
935 $suxwigb->{_d2num} = $d2num;
936 $suxwigb->{_note} =
937 $suxwigb->{_note} . ' d2num=' . $suxwigb->{_d2num};
938 $suxwigb->{_Step} =
939 $suxwigb->{_Step} . ' d2num=' . $suxwigb->{_d2num};
940  
941 }
942 else {
943 print("suxwigb,d2num, missing d2num,\n");
944 }
945 }
946  
947 =head2 sub endian
948  
949  
950 =cut
951  
952 sub endian {
953  
954 my ( $self, $endian ) = @_;
955 if ( $endian ne $empty_string ) {
956  
957 $suxwigb->{_endian} = $endian;
958 $suxwigb->{_note} =
959 $suxwigb->{_note} . ' endian=' . $suxwigb->{_endian};
960 $suxwigb->{_Step} =
961 $suxwigb->{_Step} . ' endian=' . $suxwigb->{_endian};
962  
963 }
964 else {
965 print("suxwigb,missing endian,\n");
966 }
967 }
968  
969 =head2 subs f1, first_time_sample_value and first_y
970  
971 value of the first sample tihat is used
972  
973 =cut
974  
975 sub f1 {
976  
977 my ( $self, $f1 ) = @_;
978 if ( $f1 ne $empty_string ) {
979  
980 $suxwigb->{_f1} = $f1;
981 $suxwigb->{_note} = $suxwigb->{_note} . ' f1=' . $suxwigb->{_f1};
982 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f1=' . $suxwigb->{_f1};
983  
984 }
985 else {
986 print("suxwigb, f1, missing f1,\n");
987 }
988 }
989  
990 =head2 sub f1num
991  
992 subs f1num and first_time_tick_num
993  
994 first number at the first tick
995
996 Kenny Lau
997 16 Sept 2018
998 Changes the first number at the first tick
999  
1000 =cut
1001  
1002 sub f1num {
1003  
1004 my ( $self, $f1num ) = @_;
1005 if ( $f1num ne $empty_string ) {
1006  
1007 $suxwigb->{_f1num} = $f1num;
1008 $suxwigb->{_note} =
1009 $suxwigb->{_note} . ' f1num=' . $suxwigb->{_f1num};
1010 $suxwigb->{_Step} =
1011 $suxwigb->{_Step} . ' f1num=' . $suxwigb->{_f1num};
1012  
1013 }
1014 else {
1015 print("suxwigb,missing f1num,\n");
1016 }
1017 }
1018  
1019 =head2 sub f2
1020  
1021  
1022 subs f2 and first_distance_sample_value first_x
1023  
1024 value of the first sample tihat is used
1025  
1026 first value in the second dimension (X)
1027
1028 G. Bonot 091718
1029 Shifts first sample data to right by amount input
1030 i.e., f2=5 makes data befin at 5 on the x axis.
1031  
1032 =cut
1033  
1034 sub f2 {
1035  
1036 my ( $self, $f2 ) = @_;
1037 if ( $f2 ne $empty_string ) {
1038  
1039 $suxwigb->{_f2} = $f2;
1040 $suxwigb->{_note} = $suxwigb->{_note} . ' f2=' . $suxwigb->{_f2};
1041 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f2=' . $suxwigb->{_f2};
1042  
1043 }
1044 else {
1045 print("suxwigb, f2, missing f2,\n");
1046 }
1047 }
1048  
1049 =head2 sub f2num
1050 subs f2num and first_distance_tick_num
1051  
1052 first number at the first tick
1053
1054 GTL18
1055 First number of x axis. Not incremental; only represents the
1056 single first vale. X- axis increments ( d2num not equal to 0)
1057 must be created to use this feature; strictly for visual representation
1058  
1059 =cut
1060  
1061 sub f2num {
1062  
1063 my ( $self, $f2num ) = @_;
1064 if ( $f2num ne $empty_string ) {
1065  
1066 $suxwigb->{_f2num} = $f2num;
1067 $suxwigb->{_note} =
1068 $suxwigb->{_note} . ' f2num=' . $suxwigb->{_f2num};
1069 $suxwigb->{_Step} =
1070 $suxwigb->{_Step} . ' f2num=' . $suxwigb->{_f2num};
1071  
1072 }
1073 else {
1074 print("xwigb,missing f2num,\n");
1075 }
1076 }
1077  
1078 =head2 subs f2 and first_distance_sample_value first_x
1079  
1080 value of the first sample tihat is used
1081  
1082 first value in the second dimension (X)
1083  
1084 =cut
1085  
1086 sub first_distance_sample_value {
1087  
1088 my ( $self, $f2 ) = @_;
1089 if ( $f2 ne $empty_string ) {
1090  
1091 $suxwigb->{_f2} = $f2;
1092 $suxwigb->{_note} = $suxwigb->{_note} . ' f2=' . $suxwigb->{_f2};
1093 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f2=' . $suxwigb->{_f2};
1094  
1095 }
1096 else {
1097 print("suxwigb, first_distance_sample_value, missing f2,\n");
1098 }
1099 }
1100  
1101 =head2 sub first_distance_tick_num
1102 subs f2num and first_distance_tick_num
1103  
1104 first number at the first tick
1105
1106 GTL18
1107 First number of x axis. Not incremental; only represents the
1108 single first vale. X- axis increments ( d2num not equal to 0)
1109 must be created to use this feature; strictly for visual representation
1110  
1111 =cut
1112  
1113 sub first_distance_tick_num {
1114  
1115 my ( $self, $f2num ) = @_;
1116 if ( $f2num ne $empty_string ) {
1117  
1118 $suxwigb->{_f2num} = $f2num;
1119 $suxwigb->{_note} =
1120 $suxwigb->{_note} . ' f2num=' . $suxwigb->{_f2num};
1121 $suxwigb->{_Step} =
1122 $suxwigb->{_Step} . ' f2num=' . $suxwigb->{_f2num};
1123  
1124 }
1125 else {
1126 print("suxwigb,missing first_distance_tick_num,\n");
1127 }
1128 }
1129  
1130 =head2 subs f1, first_time_sample_value and first_y
1131  
1132 value of the first sample tihat is used
1133  
1134 =cut
1135  
1136 sub first_time_sample_value {
1137  
1138 my ( $self, $f1 ) = @_;
1139 if ( $f1 ne $empty_string ) {
1140  
1141 $suxwigb->{_f1} = $f1;
1142 $suxwigb->{_note} = $suxwigb->{_note} . ' f1=' . $suxwigb->{_f1};
1143 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f1=' . $suxwigb->{_f1};
1144  
1145 }
1146 else {
1147 print("suxwigb, first_time_sample_value, missing f1,\n");
1148 }
1149 }
1150  
1151 =head2 sub first_time_tick_num
1152  
1153 subs f1num and first_time_tick_num
1154  
1155 first number at the first tick
1156
1157 Kenny Lau
1158 16 Sept 2018
1159 Changes the first number at the first tick
1160  
1161 =cut
1162  
1163 sub first_time_tick_num {
1164  
1165 my ( $self, $f1num ) = @_;
1166 if ( $f1num ne $empty_string ) {
1167  
1168 $suxwigb->{_f1num} = $f1num;
1169 $suxwigb->{_note} =
1170 $suxwigb->{_note} . ' f1num=' . $suxwigb->{_f1num};
1171 $suxwigb->{_Step} =
1172 $suxwigb->{_Step} . ' f1num=' . $suxwigb->{_f1num};
1173  
1174 }
1175 else {
1176 print("suxwigb, first_time_tick_num, missing first_time_tick_num\n");
1177 }
1178 }
1179  
1180 =head2 subs f2 and first_distance_sample_value first_x
1181  
1182 value of the first sample tihat is used
1183  
1184 first value in the second dimension (X)
1185  
1186 =cut
1187  
1188 sub first_x {
1189  
1190 my ( $self, $f2 ) = @_;
1191 if ( $f2 ne $empty_string ) {
1192  
1193 $suxwigb->{_f2} = $f2;
1194 $suxwigb->{_note} = $suxwigb->{_note} . ' f2=' . $suxwigb->{_f2};
1195 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f2=' . $suxwigb->{_f2};
1196  
1197 }
1198 else {
1199 print("suxwigb, first_x, missing f2,\n");
1200 }
1201 }
1202  
1203 =head2 subs f1, first_time_sample_value and first_y
1204  
1205 value of the first sample tihat is used
1206  
1207 =cut
1208  
1209 sub first_y {
1210  
1211 my ( $self, $f1 ) = @_;
1212 if ( $f1 ne $empty_string ) {
1213  
1214 $suxwigb->{_f1} = $f1;
1215 $suxwigb->{_note} = $suxwigb->{_note} . ' f1=' . $suxwigb->{_f1};
1216 $suxwigb->{_Step} = $suxwigb->{_Step} . ' f1=' . $suxwigb->{_f1};
1217  
1218 }
1219 else {
1220 print("suxwigb, first_y, missing f1,\n");
1221 }
1222 }
1223  
1224 =head2 sub ftr
1225  
1226  
1227 =cut
1228  
1229 sub ftr {
1230  
1231 my ( $self, $ftr ) = @_;
1232 if ( $ftr ne $empty_string ) {
1233  
1234 $suxwigb->{_f1} = $ftr;
1235 $suxwigb->{_note} = $suxwigb->{_note} . 'suxwigb' . $suxwigb->{_ftr};
1236 $suxwigb->{_Step} = $suxwigb->{_Step} . 'suxwigb' . $suxwigb->{_ftr};
1237  
1238 }
1239 else {
1240 print("suxwigb, first_y, missing f1,\n");
1241 }
1242 }
1243  
1244 =head2 sub grid1
1245  
1246 Kenny Lau
1247 16 Sept 2018
1248 Changes the type of line on the first axis
1249  
1250  
1251 =cut
1252  
1253 sub grid1 {
1254  
1255 my ( $self, $grid1 ) = @_;
1256 if ( $grid1 ne $empty_string ) {
1257  
1258 $suxwigb->{_grid1} = $grid1;
1259 $suxwigb->{_note} =
1260 $suxwigb->{_note} . ' grid1=' . $suxwigb->{_grid1};
1261 $suxwigb->{_Step} =
1262 $suxwigb->{_Step} . ' grid1=' . $suxwigb->{_grid1};
1263  
1264 }
1265 else {
1266 print("suxwigb,missing grid1,\n");
1267 }
1268 }
1269  
1270 =head2 sub grid2
1271  
1272 A. Sivil 091718
1273 Adds grid lines above x axis as either a dot, dash or a solid line
1274
1275 =cut
1276  
1277 sub grid2 {
1278  
1279 my ( $self, $grid2 ) = @_;
1280 if ( $grid2 ne $empty_string ) {
1281  
1282 $suxwigb->{_grid2} = $grid2;
1283 $suxwigb->{_note} =
1284 $suxwigb->{_note} . ' grid2=' . $suxwigb->{_grid2};
1285 $suxwigb->{_Step} =
1286 $suxwigb->{_Step} . ' grid2=' . $suxwigb->{_grid2};
1287  
1288 }
1289 else {
1290 print("suxwigb,missing grid2,\n");
1291 }
1292 }
1293  
1294 =head2 sub gridcolor
1295  
1296  
1297 =cut
1298  
1299 sub gridcolor {
1300  
1301 my ( $self, $gridcolor ) = @_;
1302 if ( $gridcolor ne $empty_string ) {
1303  
1304 $suxwigb->{_gridcolor} = $gridcolor;
1305 $suxwigb->{_note} =
1306 $suxwigb->{_note} . ' gridcolor=' . $suxwigb->{_gridcolor};
1307 $suxwigb->{_Step} =
1308 $suxwigb->{_Step} . ' gridcolor=' . $suxwigb->{_gridcolor};
1309  
1310 }
1311 else {
1312 print("suxwigb,missing gridcolor,\n");
1313 }
1314 }
1315  
1316 =head2 sub hbox
1317  
1318  
1319 =cut
1320  
1321 sub hbox {
1322  
1323 my ( $self, $hbox ) = @_;
1324 if ( $hbox ne $empty_string ) {
1325  
1326 $suxwigb->{_hbox} = $hbox;
1327 $suxwigb->{_note} = $suxwigb->{_note} . ' hbox=' . $suxwigb->{_hbox};
1328 $suxwigb->{_Step} = $suxwigb->{_Step} . ' hbox=' . $suxwigb->{_hbox};
1329  
1330 }
1331 else {
1332 print("suxwigb,missing hbox,\n");
1333 }
1334 }
1335  
1336 =head2 sub headerword
1337  
1338  
1339 =cut
1340  
1341 sub headerword {
1342  
1343 my ( $self, $key ) = @_;
1344 if ( $key ne $empty_string ) {
1345  
1346 $suxwigb->{_key} = $key;
1347 $suxwigb->{_note} = $suxwigb->{_note} . ' key=' . $suxwigb->{_key};
1348 $suxwigb->{_Step} = $suxwigb->{_Step} . ' key=' . $suxwigb->{_key};
1349  
1350 }
1351 else {
1352 print("suxwigb, headerword, missing key,\n");
1353 }
1354 }
1355  
1356 =head2 sub header_word
1357  
1358  
1359 =cut
1360  
1361 sub header_word {
1362  
1363 my ( $self, $key ) = @_;
1364 if ( $key ne $empty_string ) {
1365  
1366 $suxwigb->{_key} = $key;
1367 $suxwigb->{_note} = $suxwigb->{_note} . ' key=' . $suxwigb->{_key};
1368 $suxwigb->{_Step} = $suxwigb->{_Step} . ' key=' . $suxwigb->{_key};
1369  
1370 }
1371 else {
1372 print("suxwigb, header_word, missing key,\n");
1373 }
1374 }
1375  
1376 =head2 sub hiclip
1377  
1378  
1379 =cut
1380  
1381 sub hiclip {
1382  
1383 my ( $self, $key ) = @_;
1384 if ( $key ne $empty_string ) {
1385  
1386 $suxwigb->{_key} = $key;
1387 $suxwigb->{_note} = $suxwigb->{_note} . ' bclip=' . $suxwigb->{_key};
1388 $suxwigb->{_Step} = $suxwigb->{_Step} . ' bclip=' . $suxwigb->{_key};
1389  
1390 }
1391 else {
1392 print("suxwigb, hiclip, missing key,\n");
1393 }
1394 }
1395  
1396 =head2 sub hi_clip
1397  
1398  
1399 =cut
1400  
1401 sub hi_clip {
1402  
1403 my ( $self, $key ) = @_;
1404 if ( $key ne $empty_string ) {
1405  
1406 $suxwigb->{_key} = $key;
1407 $suxwigb->{_note} = $suxwigb->{_note} . ' bclip=' . $suxwigb->{_key};
1408 $suxwigb->{_Step} = $suxwigb->{_Step} . ' bclip=' . $suxwigb->{_key};
1409  
1410 }
1411 else {
1412 print("suxwigb, hi_clip, missing key,\n");
1413 }
1414 }
1415  
1416 =head2 sub interp
1417  
1418  
1419 =cut
1420  
1421 sub interp {
1422  
1423 my ( $self, $interp ) = @_;
1424 if ( $interp ne $empty_string ) {
1425  
1426 $suxwigb->{_interp} = $interp;
1427 $suxwigb->{_note} =
1428 $suxwigb->{_note} . ' interp=' . $suxwigb->{_interp};
1429 $suxwigb->{_Step} =
1430 $suxwigb->{_Step} . ' interp=' . $suxwigb->{_interp};
1431  
1432 }
1433 else {
1434 print("suxwigb,missing interp,\n");
1435 }
1436 }
1437  
1438 =head2 sub key
1439  
1440  
1441 =cut
1442  
1443 sub key {
1444  
1445 my ( $self, $key ) = @_;
1446 if ( $key ne $empty_string ) {
1447  
1448 $suxwigb->{_key} = $key;
1449 $suxwigb->{_note} = $suxwigb->{_note} . ' key=' . $suxwigb->{_key};
1450 $suxwigb->{_Step} = $suxwigb->{_Step} . ' key=' . $suxwigb->{_key};
1451  
1452 }
1453 else {
1454 print("suxwigb, key, missing key,\n");
1455 }
1456 }
1457  
1458 =head2 sub label1
1459  
1460 =cut
1461  
1462 sub label1 {
1463  
1464 my ( $self, $label1 ) = @_;
1465 if ( $label1 ne $empty_string ) {
1466  
1467 $suxwigb->{_label1} = $label1;
1468 $suxwigb->{_note} =
1469 $suxwigb->{_note} . ' label1=' . $suxwigb->{_label1};
1470 $suxwigb->{_Step} =
1471 $suxwigb->{_Step} . ' label1=' . $suxwigb->{_label1};
1472  
1473 }
1474 else {
1475 print("suxwigb,missing label1,\n");
1476 }
1477 }
1478  
1479 =head2 sub label2
1480  
1481 A. Sivil 091718
1482 Adds label above x axis in top-right corner
1483  
1484 =cut
1485  
1486 sub label2 {
1487  
1488 my ( $self, $label2 ) = @_;
1489 if ( $label2 ne $empty_string ) {
1490  
1491 $suxwigb->{_label2} = $label2;
1492 $suxwigb->{_note} =
1493 $suxwigb->{_note} . ' label2=' . $suxwigb->{_label2};
1494 $suxwigb->{_Step} =
1495 $suxwigb->{_Step} . ' label2=' . $suxwigb->{_label2};
1496  
1497 }
1498 else {
1499 print("suxwigb,missing label2,\n");
1500 }
1501 }
1502  
1503 =head2 sub labelcolor
1504  
1505  
1506 =cut
1507  
1508 sub labelcolor {
1509  
1510 my ( $self, $labelcolor ) = @_;
1511 if ( $labelcolor ne $empty_string ) {
1512  
1513 $suxwigb->{_labelcolor} = $labelcolor;
1514 $suxwigb->{_note} =
1515 $suxwigb->{_note} . ' labelcolor=' . $suxwigb->{_labelcolor};
1516 $suxwigb->{_Step} =
1517 $suxwigb->{_Step} . ' labelcolor=' . $suxwigb->{_labelcolor};
1518  
1519 }
1520 else {
1521 print("suxwigb,missing labelcolor,\n");
1522 }
1523 }
1524  
1525 =head2 sub labelfont
1526  
1527 A. Sivil 091718
1528 Changes font for label
1529  
1530 =cut
1531  
1532 sub labelfont {
1533  
1534 my ( $self, $labelfont ) = @_;
1535 if ( $labelfont ne $empty_string ) {
1536  
1537 $suxwigb->{_labelfont} = $labelfont;
1538 $suxwigb->{_note} =
1539 $suxwigb->{_note} . ' labelfont=' . $suxwigb->{_labelfont};
1540 $suxwigb->{_Step} =
1541 $suxwigb->{_Step} . ' labelfont=' . $suxwigb->{_labelfont};
1542  
1543 }
1544 else {
1545 print("suxwigb,missing labelfont,\n");
1546 }
1547 }
1548  
1549 =head2 sub lo_clip
1550  
1551  
1552 =cut
1553  
1554 sub lo_clip {
1555  
1556 my ( $self, $key ) = @_;
1557 if ( $key ne $empty_string ) {
1558  
1559 $suxwigb->{_key} = $key;
1560 $suxwigb->{_note} = $suxwigb->{_note} . ' wclip=' . $suxwigb->{_key};
1561 $suxwigb->{_Step} = $suxwigb->{_Step} . ' wclip=' . $suxwigb->{_key};
1562  
1563 }
1564 else {
1565 print("suxwigb, lo_clip, missing key,\n");
1566 }
1567 }
1568  
1569 =head2 sub loclip
1570  
1571  
1572 =cut
1573  
1574 sub loclip {
1575  
1576 my ( $self, $key ) = @_;
1577 if ( $key ne $empty_string ) {
1578  
1579 $suxwigb->{_key} = $key;
1580 $suxwigb->{_note} = $suxwigb->{_note} . ' wclip=' . $suxwigb->{_key};
1581 $suxwigb->{_Step} = $suxwigb->{_Step} . ' wclip=' . $suxwigb->{_key};
1582  
1583 }
1584 else {
1585 print("suxwigb, loclip, missing key,\n");
1586 }
1587 }
1588  
1589 =head2 sub mpicks
1590  
1591 G. Bonot 091718
1592 Input a file name to which your mouse clicks are to be saved. No visible change observed in xwigb
1593  
1594 =cut
1595  
1596 sub mpicks {
1597  
1598 my ( $self, $mpicks ) = @_;
1599 if ( $mpicks ne $empty_string ) {
1600  
1601 $suxwigb->{_mpicks} = $mpicks;
1602 $suxwigb->{_note} =
1603 $suxwigb->{_note} . ' mpicks=' . $suxwigb->{_mpicks};
1604 $suxwigb->{_Step} =
1605 $suxwigb->{_Step} . ' mpicks=' . $suxwigb->{_mpicks};
1606  
1607 }
1608 else {
1609 print("suxwigb,missing mpicks,\n");
1610 }
1611 }
1612  
1613 =head2 sub n1
1614  
1615 =cut
1616  
1617 sub n1 {
1618  
1619 my ( $self, $n1 ) = @_;
1620 if ( $n1 ne $empty_string ) {
1621  
1622 $suxwigb->{_n1} = $n1;
1623 $suxwigb->{_note} = $suxwigb->{_note} . ' n1=' . $suxwigb->{_n1};
1624 $suxwigb->{_Step} = $suxwigb->{_Step} . ' n1=' . $suxwigb->{_n1};
1625  
1626 }
1627 else {
1628 print("suxwigb,missing n1,\n");
1629 }
1630 }
1631  
1632 =head2 sub n1tic
1633  
1634 subs n1tic and num_minor_ticks_betw_time_ticks
1635  
1636 n1tic=1 number of minor ticks shwon between each
1637 of the numbered ticks on axis 1 (usually time and pointing down)
1638
1639 Kenny Lau
1640 16 Sept 2018
1641 Breaks down one tick into X number of minor ticks
1642  
1643 =cut
1644  
1645 sub n1tic {
1646  
1647 my ( $self, $n1tic ) = @_;
1648 if ( $n1tic ne $empty_string ) {
1649  
1650 $suxwigb->{_n1tic} = $n1tic;
1651 $suxwigb->{_note} =
1652 $suxwigb->{_note} . ' n1tic=' . $suxwigb->{_n1tic};
1653 $suxwigb->{_Step} =
1654 $suxwigb->{_Step} . ' n1tic=' . $suxwigb->{_n1tic};
1655  
1656 }
1657 else {
1658 print("suxwigb,missing n1tic,\n");
1659 }
1660 }
1661  
1662 =head2 sub n2
1663  
1664  
1665 =cut
1666  
1667 sub n2 {
1668  
1669 my ( $self, $n2 ) = @_;
1670 if ( $n2 ne $empty_string ) {
1671  
1672 $suxwigb->{_n2} = $n2;
1673 $suxwigb->{_note} = $suxwigb->{_note} . ' n2=' . $suxwigb->{_n2};
1674 $suxwigb->{_Step} = $suxwigb->{_Step} . ' n2=' . $suxwigb->{_n2};
1675  
1676 }
1677 else {
1678 print("suxwigb, n2, missing n2,\n");
1679 }
1680 }
1681  
1682 =head2 ssubs n2tic and num_minor_ticks_betw_distance_ticks
1683  
1684 n2tic=1 number of minor ticks shwon between each
1685 of the numbered ticks on axis 1 (usually time and pointing down)
1686  
1687 A. Sivil 091718
1688 Adds minor ticks between each numbered tick on axis 1
1689  
1690 =cut
1691  
1692 sub n2tic {
1693  
1694 my ( $self, $n2tic ) = @_;
1695 if ( $n2tic ne $empty_string ) {
1696  
1697 $suxwigb->{_n2tic} = $n2tic;
1698 $suxwigb->{_note} =
1699 $suxwigb->{_note} . ' n2tic=' . $suxwigb->{_n2tic};
1700 $suxwigb->{_Step} =
1701 $suxwigb->{_Step} . ' n2tic=' . $suxwigb->{_n2tic};
1702  
1703 }
1704 else {
1705 print("suxwigb,missing n2tic,\n");
1706 }
1707 }
1708  
1709 =head2 sub npair
1710  
1711  
1712 =cut
1713  
1714 sub npair {
1715  
1716 my ( $self, $npair ) = @_;
1717 if ( $npair ne $empty_string ) {
1718  
1719 $suxwigb->{_npair} = $npair;
1720 $suxwigb->{_note} =
1721 $suxwigb->{_note} . ' npair=' . $suxwigb->{_npair};
1722 $suxwigb->{_Step} =
1723 $suxwigb->{_Step} . ' npair=' . $suxwigb->{_npair};
1724  
1725 }
1726 else {
1727 print("suxwigb,missing npair,\n");
1728 }
1729 }
1730  
1731 =head2 ssubs n2tic and num_minor_ticks_betw_distance_ticks
1732  
1733 n2tic=1 number of minor ticks shwon between each
1734 of the numbered ticks on axis 1 (usually time and pointing down)
1735  
1736 A. Sivil 091718
1737 Adds minor ticks between each numbered tick on axis 1
1738  
1739 =cut
1740  
1741 sub num_minor_ticks_betw_distance_ticks {
1742  
1743 my ( $self, $n2tic ) = @_;
1744 if ( $n2tic ne $empty_string ) {
1745  
1746 $suxwigb->{_n2tic} = $n2tic;
1747 $suxwigb->{_note} =
1748 $suxwigb->{_note} . ' n2tic=' . $suxwigb->{_n2tic};
1749 $suxwigb->{_Step} =
1750 $suxwigb->{_Step} . ' n2tic=' . $suxwigb->{_n2tic};
1751  
1752 }
1753 else {
1754 print("suxwigb,num_minor_ticks_betw_distance_ticks, missing n2tic,\n");
1755 }
1756 }
1757  
1758 =head2 sub num_minor_ticks_betw_time_ticks
1759  
1760 subs n1tic and num_minor_ticks_betw_time_ticks
1761  
1762 n1tic=1 number of minor ticks shwon between each
1763 of the numbered ticks on axis 1 (usually time and pointing down)
1764
1765 Kenny Lau
1766 16 Sept 2018
1767 Breaks down one tick into X number of minor ticks
1768  
1769 =cut
1770  
1771 sub num_minor_ticks_betw_time_ticks {
1772  
1773 my ( $self, $n1tic ) = @_;
1774 if ( $n1tic ne $empty_string ) {
1775  
1776 $suxwigb->{_n1tic} = $n1tic;
1777 $suxwigb->{_note} =
1778 $suxwigb->{_note} . ' n1tic=' . $suxwigb->{_n1tic};
1779 $suxwigb->{_Step} =
1780 $suxwigb->{_Step} . ' n1tic=' . $suxwigb->{_n1tic};
1781  
1782 }
1783 else {
1784 print("suxwigb, num_minor_ticks_betw_time_ticks, missing n1tic,\n");
1785 }
1786 }
1787  
1788 =head2 sub orientation
1789  
1790 seismic style of plotting (time axis pointing down)
1791 versus mathematical ( y axis up)
1792  
1793 =cut
1794  
1795 sub orientation {
1796  
1797 my ( $self, $style ) = @_;
1798 if ( $style ne $empty_string ) {
1799  
1800 $suxwigb->{_style} = $style;
1801 $suxwigb->{_note} =
1802 $suxwigb->{_note} . ' style=' . $suxwigb->{_style};
1803 $suxwigb->{_Step} =
1804 $suxwigb->{_Step} . ' style=' . $suxwigb->{_style};
1805  
1806 }
1807 else {
1808 print("suxwigb, orientation, missing style,\n");
1809 }
1810 }
1811  
1812 =head2 sub perc
1813  
1814  
1815 =cut
1816  
1817 sub perc {
1818  
1819 my ( $self, $perc ) = @_;
1820 if ( $perc ne $empty_string ) {
1821  
1822 $suxwigb->{_perc} = $perc;
1823 $suxwigb->{_note} = $suxwigb->{_note} . ' perc=' . $suxwigb->{_perc};
1824 $suxwigb->{_Step} = $suxwigb->{_Step} . ' perc=' . $suxwigb->{_perc};
1825  
1826 }
1827 else {
1828 print("suxwigb,missing perc,\n");
1829 }
1830 }
1831  
1832 =head2 sub percent
1833  
1834  
1835 =cut
1836  
1837 sub percent {
1838  
1839 my ( $self, $perc ) = @_;
1840 if ( $perc ne $empty_string ) {
1841  
1842 $suxwigb->{_perc} = $perc;
1843 $suxwigb->{_note} = $suxwigb->{_note} . ' perc=' . $suxwigb->{_perc};
1844 $suxwigb->{_Step} = $suxwigb->{_Step} . ' perc=' . $suxwigb->{_perc};
1845  
1846 }
1847 else {
1848 print("suxwigb,percent, missing perc,\n");
1849 }
1850 }
1851  
1852 =head2 sub picks
1853  
1854 automatically generates a pick file
1855
1856 =cut
1857  
1858 sub picks {
1859  
1860 my ( $self, $mpicks ) = @_;
1861 if ( $mpicks ne $empty_string ) {
1862  
1863 # print("suxwigb, picks, file_name is: $mpicks\n");
1864  
1865 $suxwigb->{_mpicks} = $mpicks;
1866 $suxwigb->{_note} =
1867 $suxwigb->{_note} . ' mpicks=' . $suxwigb->{_mpicks};
1868 $suxwigb->{_Step} =
1869 $suxwigb->{_Step} . ' mpicks=' . $suxwigb->{_mpicks};
1870  
1871 }
1872 else {
1873 print("suxwigb,picks, missing mpicks,\n");
1874 }
1875 }
1876  
1877 =head2 sub plotfile
1878  
1879  
1880 =cut
1881  
1882 sub plotfile {
1883  
1884 my ( $self, $plotfile ) = @_;
1885 if ( $plotfile ne $empty_string ) {
1886  
1887 $suxwigb->{_plotfile} = $plotfile;
1888 $suxwigb->{_note} =
1889 $suxwigb->{_note} . ' plotfile=' . $suxwigb->{_plotfile};
1890 $suxwigb->{_Step} =
1891 $suxwigb->{_Step} . ' plotfile=' . $suxwigb->{_plotfile};
1892  
1893 }
1894 else {
1895 print("suxwigb,missing plotfile,\n");
1896 }
1897 }
1898  
1899 =head2 sub shading
1900 plot data using a variable area scheme
1901 also sub shading
1902 Rachel Gnieski 091718
1903 Plot data using a variable area scheme: Should change the shading of the plot
1904 background by inputting a value between 2 and 5 but could not get it to function
1905  
1906 =cut
1907  
1908 sub shading {
1909  
1910 my ( $self, $va ) = @_;
1911 if ( $va ne $empty_string ) {
1912  
1913 $suxwigb->{_va} = $va;
1914 $suxwigb->{_note} = $suxwigb->{_note} . ' va=' . $suxwigb->{_va};
1915 $suxwigb->{_Step} = $suxwigb->{_Step} . ' va=' . $suxwigb->{_va};
1916  
1917 }
1918 else {
1919 print("suxwigb,shading, missing va\n");
1920 }
1921 }
1922  
1923 =head2 sub style
1924  
1925 seismic style of plotting (time axis pointing down)
1926 versus mathematical ( y axis up)
1927  
1928 =cut
1929  
1930 sub style {
1931  
1932 my ( $self, $style ) = @_;
1933 if ( $style ne $empty_string ) {
1934  
1935 $suxwigb->{_style} = $style;
1936 $suxwigb->{_note} =
1937 $suxwigb->{_note} . ' style=' . $suxwigb->{_style};
1938 $suxwigb->{_Step} =
1939 $suxwigb->{_Step} . ' style=' . $suxwigb->{_style};
1940  
1941 }
1942 else {
1943 print("suxwigb, style, missing style,\n");
1944 }
1945 }
1946  
1947 =head2 sub title
1948  
1949 allows for a default graph title ($on) or
1950 a user-defined title
1951  
1952 =cut
1953  
1954 sub title {
1955  
1956 my ( $self, $title ) = @_;
1957 if ( $title ne $empty_string ) {
1958  
1959 $suxwigb->{_title} = $title;
1960 $suxwigb->{_note} =
1961 $suxwigb->{_note} . ' title=' . $suxwigb->{_title};
1962 $suxwigb->{_Step} =
1963 $suxwigb->{_Step} . ' title=' . $suxwigb->{_title};
1964  
1965 }
1966 else {
1967 print("suxwigb,missing title,\n");
1968 }
1969 }
1970  
1971 =head2 sub titlecolor
1972  
1973 allows for a default graph title ($on) or
1974 a user-defined title
1975  
1976 =cut
1977  
1978 sub titlecolor {
1979  
1980 my ( $self, $titlecolor ) = @_;
1981 if ( $titlecolor ne $empty_string ) {
1982  
1983 $suxwigb->{_titlecolor} = $titlecolor;
1984 $suxwigb->{_note} =
1985 $suxwigb->{_note} . ' titlecolor=' . $suxwigb->{_titlecolor};
1986 $suxwigb->{_Step} =
1987 $suxwigb->{_Step} . ' titlecolor=' . $suxwigb->{_titlecolor};
1988  
1989 }
1990 else {
1991 print("suxwigb,missing titlecolor,\n");
1992 }
1993 }
1994  
1995 =head2 sub titlefont
1996  
1997  
1998 =cut
1999  
2000 sub titlefont {
2001  
2002 my ( $self, $titlefont ) = @_;
2003 if ( $titlefont ne $empty_string ) {
2004  
2005 $suxwigb->{_titlefont} = $titlefont;
2006 $suxwigb->{_note} =
2007 $suxwigb->{_note} . ' titlefont=' . $suxwigb->{_titlefont};
2008 $suxwigb->{_Step} =
2009 $suxwigb->{_Step} . ' titlefont=' . $suxwigb->{_titlefont};
2010  
2011 }
2012 else {
2013 print("suxwigb,missing titlefont,\n");
2014 }
2015 }
2016  
2017 =head2 sub tmpdir
2018  
2019  
2020 =cut
2021  
2022 sub tmpdir {
2023  
2024 my ( $self, $tmpdir ) = @_;
2025 if ( $tmpdir ne $empty_string ) {
2026  
2027 $suxwigb->{_tmpdir} = $tmpdir;
2028 $suxwigb->{_note} =
2029 $suxwigb->{_note} . ' tmpdir=' . $suxwigb->{_tmpdir};
2030 $suxwigb->{_Step} =
2031 $suxwigb->{_Step} . ' tmpdir=' . $suxwigb->{_tmpdir};
2032  
2033 }
2034 else {
2035 print("suxwigb, tmpdir, missing tmpdir,\n");
2036 }
2037 }
2038  
2039 =head2 subs trace_inc trace_inc_m, dx and d2
2040  
2041 increment in fast dimension
2042 usually time and equal to dt
2043  
2044 only the first trace is read in
2045 if an increment is not 1 between traces
2046 you should indicate here
2047
2048 distance increment between traces
2049  
2050 =cut
2051  
2052 sub trace_inc {
2053  
2054 my ( $self, $d2 ) = @_;
2055 if ( $d2 ne $empty_string ) {
2056  
2057 $suxwigb->{_d2} = $d2;
2058 $suxwigb->{_note} = $suxwigb->{_note} . ' d2=' . $suxwigb->{_d2};
2059 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d2=' . $suxwigb->{_d2};
2060  
2061 }
2062 else {
2063 print("suxwigb, trace_inc, missing d2,\n");
2064 }
2065 }
2066  
2067 =head2 subs trace_inc trace_inc_m, dx and d2
2068  
2069 increment in fast dimension
2070 usually time and equal to dt
2071  
2072 only the first trace is read in
2073 if an increment is not 1 between traces
2074 you should indicate here
2075
2076 distance increment between traces
2077  
2078 =cut
2079  
2080 sub trace_inc_m {
2081  
2082 my ( $self, $d2 ) = @_;
2083 if ( $d2 ne $empty_string ) {
2084  
2085 $suxwigb->{_d2} = $d2;
2086 $suxwigb->{_note} = $suxwigb->{_note} . ' d2=' . $suxwigb->{_d2};
2087 $suxwigb->{_Step} = $suxwigb->{_Step} . ' d2=' . $suxwigb->{_d2};
2088  
2089 }
2090 else {
2091 print("suxwigb, trace_inc_m, missing d2,\n");
2092 }
2093 }
2094  
2095 =head2 sub tend_s
2096  
2097 minimum value of yaxis (time usually) in seconds
2098  
2099 =cut
2100  
2101 sub tend_s {
2102  
2103 my ( $self, $x1end ) = @_;
2104 if ( $x1end ne $empty_string ) {
2105  
2106 $suxwigb->{_x1end} = $x1end;
2107 $suxwigb->{_note} =
2108 $suxwigb->{_note} . ' x1end=' . $suxwigb->{_x1end};
2109 $suxwigb->{_Step} =
2110 $suxwigb->{_Step} . ' x1end=' . $suxwigb->{_x1end};
2111  
2112 }
2113 else {
2114 print("suxwigb,tend_s, missing x1end,\n");
2115 }
2116 }
2117  
2118 =head2 sub tstart_s
2119  
2120 minimum value of yaxis (time usually) in seconds
2121  
2122 =cut
2123  
2124 sub tstart_s {
2125  
2126 my ( $self, $x1beg ) = @_;
2127 if ( $x1beg ne $empty_string ) {
2128  
2129 $suxwigb->{_x1beg} = $x1beg;
2130 $suxwigb->{_note} =
2131 $suxwigb->{_note} . ' x1beg=' . $suxwigb->{_x1beg};
2132 $suxwigb->{_Step} =
2133 $suxwigb->{_Step} . ' x1beg=' . $suxwigb->{_x1beg};
2134  
2135 }
2136 else {
2137 print("suxwigb,tstart_s, missing x1beg,\n");
2138 }
2139 }
2140  
2141 =head2 sub va
2142 plot data using a variable area scheme
2143 also sub shading
2144 Rachel Gnieski 091718
2145 Plot data using a variable area scheme: Should change the shading of the plot
2146 background by inputting a value between 2 and 5 but could not get it to function
2147  
2148 =cut
2149  
2150 sub va {
2151  
2152 my ( $self, $va ) = @_;
2153 if ( $va ne $empty_string ) {
2154  
2155 $suxwigb->{_va} = $va;
2156 $suxwigb->{_note} = $suxwigb->{_note} . ' va=' . $suxwigb->{_va};
2157 $suxwigb->{_Step} = $suxwigb->{_Step} . ' va=' . $suxwigb->{_va};
2158  
2159 }
2160 else {
2161 print("suxwigb,missing va,\n");
2162 }
2163 }
2164  
2165 =head2 sub verbose
2166  
2167  
2168 =cut
2169  
2170 sub verbose {
2171  
2172 my ( $self, $verbose ) = @_;
2173 if ( $verbose ne $empty_string ) {
2174  
2175 $suxwigb->{_verbose} = $verbose;
2176 $suxwigb->{_note} =
2177 $suxwigb->{_note} . ' verbose=' . $suxwigb->{_verbose};
2178 $suxwigb->{_Step} =
2179 $suxwigb->{_Step} . ' verbose=' . $suxwigb->{_verbose};
2180  
2181 }
2182 else {
2183 print("suxwigb, verbose, missing verbose,\n");
2184 }
2185 }
2186  
2187 =head2 sub wbox
2188  
2189  
2190 =cut
2191  
2192 sub wbox {
2193  
2194 my ( $self, $wbox ) = @_;
2195 if ( $wbox ne $empty_string ) {
2196  
2197 $suxwigb->{_wbox} = $wbox;
2198 $suxwigb->{_note} = $suxwigb->{_note} . ' wbox=' . $suxwigb->{_wbox};
2199 $suxwigb->{_Step} = $suxwigb->{_Step} . ' wbox=' . $suxwigb->{_wbox};
2200  
2201 }
2202 else {
2203 print("suxwigb,missing wbox,\n");
2204 }
2205 }
2206  
2207 =head2 sub wclip
2208  
2209  
2210 =cut
2211  
2212 sub wclip {
2213  
2214 my ( $self, $wclip ) = @_;
2215 if ( $wclip ne $empty_string ) {
2216  
2217 $suxwigb->{_wclip} = $wclip;
2218 $suxwigb->{_note} =
2219 $suxwigb->{_note} . ' wclip=' . $suxwigb->{_wclip};
2220 $suxwigb->{_Step} =
2221 $suxwigb->{_Step} . ' wclip=' . $suxwigb->{_wclip};
2222  
2223 }
2224 else {
2225 print("suxwigb, wclip, missing wclip,\n");
2226 }
2227 }
2228  
2229 =head2 sub wigclip
2230  
2231  
2232 =cut
2233  
2234 sub wigclip {
2235  
2236 my ( $self, $wigclip ) = @_;
2237 if ( $wigclip ne $empty_string ) {
2238  
2239 $suxwigb->{_wigclip} = $wigclip;
2240 $suxwigb->{_note} =
2241 $suxwigb->{_note} . ' wigclip=' . $suxwigb->{_wigclip};
2242 $suxwigb->{_Step} =
2243 $suxwigb->{_Step} . ' wigclip=' . $suxwigb->{_wigclip};
2244  
2245 }
2246 else {
2247 print("suxwigb,missing wigclip,\n");
2248 }
2249 }
2250  
2251 =head2 sub windowtitle
2252  
2253  
2254 =cut
2255  
2256 sub windowtitle {
2257  
2258 my ( $self, $windowtitle ) = @_;
2259 if ( $windowtitle ne $empty_string ) {
2260  
2261 $suxwigb->{_windowtitle} = $windowtitle;
2262 $suxwigb->{_note} =
2263 $suxwigb->{_note} . ' windowtitle=' . $suxwigb->{_windowtitle};
2264 $suxwigb->{_Step} =
2265 $suxwigb->{_Step} . ' windowtitle=' . $suxwigb->{_windowtitle};
2266  
2267 }
2268 else {
2269 print("suxwigb,missing windowtitle,\n");
2270 }
2271 }
2272  
2273 =head2 sub wt
2274  
2275  
2276 =cut
2277  
2278 sub wt {
2279  
2280 my ( $self, $wt ) = @_;
2281 if ( $wt ne $empty_string ) {
2282  
2283 $suxwigb->{_wt} = $wt;
2284 $suxwigb->{_note} = $suxwigb->{_note} . ' wt=' . $suxwigb->{_wt};
2285 $suxwigb->{_Step} = $suxwigb->{_Step} . ' wt=' . $suxwigb->{_wt};
2286  
2287 }
2288 else {
2289 print("suxwigb,missing wt,\n");
2290 }
2291 }
2292  
2293 =head2 sub x1beg
2294  
2295 minimum value of yaxis (time usually) in seconds
2296  
2297 =cut
2298  
2299 sub x1beg {
2300  
2301 my ( $self, $x1beg ) = @_;
2302 if ( $x1beg ne $empty_string ) {
2303  
2304 $suxwigb->{_x1beg} = $x1beg;
2305 $suxwigb->{_note} =
2306 $suxwigb->{_note} . ' x1beg=' . $suxwigb->{_x1beg};
2307 $suxwigb->{_Step} =
2308 $suxwigb->{_Step} . ' x1beg=' . $suxwigb->{_x1beg};
2309  
2310 }
2311 else {
2312 print("suxwigb,missing x1beg,\n");
2313 }
2314 }
2315  
2316 =head2 sub x1end
2317  
2318 minimum value of yaxis (time usually) in seconds
2319  
2320 =cut
2321  
2322 sub x1end {
2323  
2324 my ( $self, $x1end ) = @_;
2325 if ( $x1end ne $empty_string ) {
2326  
2327 $suxwigb->{_x1end} = $x1end;
2328 $suxwigb->{_note} =
2329 $suxwigb->{_note} . ' x1end=' . $suxwigb->{_x1end};
2330 $suxwigb->{_Step} =
2331 $suxwigb->{_Step} . ' x1end=' . $suxwigb->{_x1end};
2332  
2333 }
2334 else {
2335 print("suxwigb,missing x1end,\n");
2336 }
2337 }
2338  
2339 =head2 sub x2
2340  
2341 G. Bonot 091718
2342 Lists array of values in the second dimension; displays one isolated sample value
2343 in different of the input value
2344  
2345  
2346 =cut
2347  
2348 sub x2 {
2349  
2350 my ( $self, $x2 ) = @_;
2351 if ( $x2 ne $empty_string ) {
2352  
2353 $suxwigb->{_x2} = $x2;
2354 $suxwigb->{_note} = $suxwigb->{_note} . ' x2=' . $suxwigb->{_x2};
2355 $suxwigb->{_Step} = $suxwigb->{_Step} . ' x2=' . $suxwigb->{_x2};
2356  
2357 }
2358 else {
2359 print("suxwigb,missing x2,\n");
2360 }
2361 }
2362  
2363 =head2 sub x2beg
2364  
2365 minimum value of x axis (time usually) in seconds
2366 First value shown on x axis GTL18
2367
2368  
2369 =cut
2370  
2371 sub x2beg {
2372  
2373 my ( $self, $x2beg ) = @_;
2374 if ( $x2beg ne $empty_string ) {
2375  
2376 $suxwigb->{_x2beg} = $x2beg;
2377 $suxwigb->{_note} =
2378 $suxwigb->{_note} . ' x2beg=' . $suxwigb->{_x2beg};
2379 $suxwigb->{_Step} =
2380 $suxwigb->{_Step} . ' x2beg=' . $suxwigb->{_x2beg};
2381  
2382 }
2383 else {
2384 print("suxwigb,missing x2beg,\n");
2385 }
2386 }
2387  
2388 =head2 sub x2end
2389
2390 max value of xaxis (distance or traces, usually) in seconds
2391 Last value for data shown on x axis GTL18
2392  
2393 =cut
2394  
2395 sub x2end {
2396  
2397 my ( $self, $x2end ) = @_;
2398 if ( $x2end ne $empty_string ) {
2399  
2400 $suxwigb->{_x2end} = $x2end;
2401 $suxwigb->{_note} =
2402 $suxwigb->{_note} . ' x2end=' . $suxwigb->{_x2end};
2403 $suxwigb->{_Step} =
2404 $suxwigb->{_Step} . ' x2end=' . $suxwigb->{_x2end};
2405  
2406 }
2407 else {
2408 print("suxwigb,missing x2end,\n");
2409 }
2410 }
2411  
2412 =head2 sub xbox
2413  
2414 Rachel Gnieski 091718
2415 x pixels fo the upper corner of the window: Changing this value determines where the
2416 graph will open up on the screen based on the horizontal row of pixels
2417  
2418 =cut
2419  
2420 sub xbox {
2421  
2422 my ( $self, $xbox ) = @_;
2423 if ( $xbox ne $empty_string ) {
2424  
2425 $suxwigb->{_xbox} = $xbox;
2426 $suxwigb->{_note} = $suxwigb->{_note} . ' xbox=' . $suxwigb->{_xbox};
2427 $suxwigb->{_Step} = $suxwigb->{_Step} . ' xbox=' . $suxwigb->{_xbox};
2428  
2429 }
2430 else {
2431 print("suxwigb,missing xbox,\n");
2432 }
2433 }
2434  
2435 =head2 sub xcur
2436  
2437 how many adjacent wiggles can be overploted
2438  
2439 =cut
2440  
2441 sub xcur {
2442  
2443 my ( $self, $xcur ) = @_;
2444 if ( $xcur ne $empty_string ) {
2445  
2446 $suxwigb->{_xcur} = $xcur;
2447 $suxwigb->{_note} = $suxwigb->{_note} . ' xcur=' . $suxwigb->{_xcur};
2448 $suxwigb->{_Step} = $suxwigb->{_Step} . ' xcur=' . $suxwigb->{_xcur};
2449  
2450 }
2451 else {
2452 print("suxwigb,missing xcur,\n");
2453 }
2454 }
2455  
2456 =head2 sub xend_m
2457  
2458
2459 =cut
2460  
2461 sub xend_m {
2462  
2463 my ( $self, $x2end ) = @_;
2464 if ( $x2end ne $empty_string ) {
2465  
2466 $suxwigb->{_x2end} = $x2end;
2467 $suxwigb->{_note} =
2468 $suxwigb->{_note} . ' x2end=' . $suxwigb->{_x2end};
2469 $suxwigb->{_Step} =
2470 $suxwigb->{_Step} . ' x2end=' . $suxwigb->{_x2end};
2471  
2472 }
2473 else {
2474 print("suxwigb,xend_m, missing x2end,\n");
2475 }
2476 }
2477  
2478 =head2 subs xlabel or label2 ylabel or label1
2479  
2480  
2481 =cut
2482  
2483 sub xlabel {
2484  
2485 my ( $self, $label2 ) = @_;
2486 if ( $label2 ne $empty_string ) {
2487  
2488 $suxwigb->{_label2} = $label2;
2489 $suxwigb->{_note} =
2490 $suxwigb->{_note} . ' label2=' . $suxwigb->{_label2};
2491 $suxwigb->{_Step} =
2492 $suxwigb->{_Step} . ' label2=' . $suxwigb->{_label2};
2493  
2494 }
2495 else {
2496 print("suxwigb, xlabelmissing label2,\n");
2497 }
2498 }
2499  
2500 =head2 sub xstart_m
2501  
2502
2503 =cut
2504  
2505 sub xstart_m {
2506  
2507 my ( $self, $x2beg ) = @_;
2508 if ( $x2beg ne $empty_string ) {
2509  
2510 $suxwigb->{_x2beg} = $x2beg;
2511 $suxwigb->{_note} =
2512 $suxwigb->{_note} . ' x2beg=' . $suxwigb->{_x2beg};
2513 $suxwigb->{_Step} =
2514 $suxwigb->{_Step} . ' x2beg=' . $suxwigb->{_x2beg};
2515  
2516 }
2517 else {
2518 print("suxwigb,xstart_m, missing x2beg,\n");
2519 }
2520 }
2521  
2522 =head2 subs d2num dx_major_divisions and x_tick_increment
2523  
2524 numbered tick increments along x axis
2525 usually in m and only for display
2526  
2527 =cut
2528  
2529 sub x_tick_increment {
2530  
2531 my ( $self, $d2num ) = @_;
2532 if ( $d2num ne $empty_string ) {
2533  
2534 $suxwigb->{_d2num} = $d2num;
2535 $suxwigb->{_note} =
2536 $suxwigb->{_note} . ' d2num=' . $suxwigb->{_d2num};
2537 $suxwigb->{_Step} =
2538 $suxwigb->{_Step} . ' d2num=' . $suxwigb->{_d2num};
2539  
2540 }
2541 else {
2542 print("suxwigb,d2num, missing d2num,\n");
2543 }
2544 }
2545  
2546 =head2 sub ybox
2547  
2548 Rachel Gnieski 091718
2549 y pixels for the upper left corner of the window. Changing this value determines
2550 where the graph will open up on the screen based on the vertical column of pixes.
2551  
2552 =cut
2553  
2554 sub ybox {
2555  
2556 my ( $self, $ybox ) = @_;
2557 if ( $ybox ne $empty_string ) {
2558  
2559 $suxwigb->{_ybox} = $ybox;
2560 $suxwigb->{_note} = $suxwigb->{_note} . ' ybox=' . $suxwigb->{_ybox};
2561 $suxwigb->{_Step} = $suxwigb->{_Step} . ' ybox=' . $suxwigb->{_ybox};
2562  
2563 }
2564 else {
2565 print("suxwigb,missing ybox,\n");
2566 }
2567 }
2568  
2569 =head2 subs ylabel or label1
2570  
2571  
2572 =cut
2573  
2574 sub ylabel {
2575  
2576 my ( $self, $label1 ) = @_;
2577 if ( $label1 ne $empty_string ) {
2578  
2579 $suxwigb->{_label1} = $label1;
2580 $suxwigb->{_note} =
2581 $suxwigb->{_note} . ' label1=' . $suxwigb->{_label1};
2582 $suxwigb->{_Step} =
2583 $suxwigb->{_Step} . ' label1=' . $suxwigb->{_label1};
2584  
2585 }
2586 else {
2587 print("suxwigb, ylabel, missing label1,\n");
2588 }
2589 }
2590  
2591 =head2 sub y_tick_increment
2592  
2593 subs d1num, y_tick_increment dy_major_divisions dt_major_divisions
2594  
2595 numbered tick increments along x axis
2596 usually in m and only for display
2597
2598 Kenny Lau
2599 16 Sept 2018
2600 Changes the interval between ticks
2601  
2602 =cut
2603  
2604 sub y_tick_increment {
2605  
2606 my ( $self, $d1num ) = @_;
2607 if ( $d1num ne $empty_string ) {
2608  
2609 $suxwigb->{_d1num} = $d1num;
2610 $suxwigb->{_note} =
2611 $suxwigb->{_note} . ' d1num=' . $suxwigb->{_d1num};
2612 $suxwigb->{_Step} =
2613 $suxwigb->{_Step} . ' d1num=' . $suxwigb->{_d1num};
2614  
2615 }
2616 else {
2617 print("suxwigb,y_tick_increment,missing d1num,\n");
2618 }
2619 }
2620  
2621 =head2 sub get_max_index
2622
2623 max index = number of input variables -1
2624
2625 =cut
2626  
2627 sub get_max_index {
2628 my ($self) = @_;
2629 my $max_index = 51;
2630  
2631 return ($max_index);
2632 }
2633  
2634 1;