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

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