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

filter: Statementstmt 0.0% 0 / 603 Branchbran 0.0% 0 / 176 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 94 Podpod 0.0% 0 / 92 totaltotal 0.0% 0 / 965 CC 89 SCAR 17.7
CC
89
Cov
0%
absclip
6.0
balance
6.0
bclip
6.0
CRAP 5.9
1 package App::SeismicUnixGui::sunix::plot::ximage;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: XIMAGE - X IMAGE plot of a uniformly-sampled function f(x1,x2)
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 XIMAGE - X IMAGE plot of a uniformly-sampled function f(x1,x2)
22  
23 ximage n1= [optional parameters] <binaryfile
24  
25 X Functionality:
26 Button 1 Zoom with rubberband box
27 Button 2 Show mouse (x1,x2) coordinates while pressed
28 q or Q key Quit
29 s key Save current mouse (x1,x2) location to file
30 p or P key Plot current window with pswigb (only from disk files)
31 a or page up keys enhance clipping by 10%
32 c or page down keys reduce clipping by 10%
33 up,down,left,right keys move zoom window by half width/height
34 i or +(keypad) zoom in by factor 2
35 o or -(keypad) zoom out by factor 2
36  
37 ... change colormap interactively
38 r install next RGB - colormap
39 R install previous RGB - colormap
40 h install next HSV - colormap
41 H install previous HSV - colormap
42 H install previous HSV - colormap
43 (Move mouse cursor out and back into window for r,R,h,H to take effect)
44  
45 Required Parameters:
46 n1 number of samples in 1st (fast) dimension
47  
48 Optional Parameters:
49 d1=1.0 sampling interval in 1st dimension
50 f1=0.0 first sample in 1st dimension
51 n2=all number of samples in 2nd (slow) dimension
52 d2=1.0 sampling interval in 2nd dimension
53 f2=0.0 first sample in 2nd dimension
54 mpicks=/dev/tty file to save mouse picks in
55 perc=100.0 percentile used to determine clip
56 clip=(perc percentile) clip used to determine bclip and wclip
57 bperc=perc percentile for determining black clip value
58 wperc=100.0-perc percentile for determining white clip value
59 bclip=clip data values outside of [bclip,wclip] are clipped
60 wclip=-clip data values outside of [bclip,wclip] are clipped
61 balance=0 bclip & wclip individually
62 =1 set them to the same abs value
63 if specified via perc (avoids colorbar skew)
64 cmap=hsv\'n\' or rgb\'m\' \'n\' is a number from 0 to 13
65 \'m\' is a number from 0 to 11
66 cmap=rgb0 is equal to cmap=gray
67 cmap=hsv1 is equal to cmap=hue
68 (compatibility to older versions)
69 legend=0 =1 display the color scale
70 units= unit label for legend
71 legendfont=times_roman10 font name for title
72 verbose=1 =1 for info printed on stderr (0 for no info)
73 xbox=50 x in pixels of upper left corner of window
74 ybox=50 y in pixels of upper left corner of window
75 wbox=550 width in pixels of window
76 hbox=700 height in pixels of window
77 lwidth=16 colorscale (legend) width in pixels
78 lheight=hbox/3 colorscale (legend) height in pixels
79 lx=3 colorscale (legend) x-position in pixels
80 ly=(hbox-lheight)/3 colorscale (legend) y-position in pixels
81 x1beg=x1min value at which axis 1 begins
82 x1end=x1max value at which axis 1 ends
83 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
84 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
85 n1tic=1 number of tics per numbered tic on axis 1
86 grid1=none grid lines on axis 1 - none, dot, dash, or solid
87 label1= label on axis 1
88 x2beg=x2min value at which axis 2 begins
89 x2end=x2max value at which axis 2 ends
90 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
91 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
92 n2tic=1 number of tics per numbered tic on axis 2
93 grid2=none grid lines on axis 2 - none, dot, dash, or solid
94 label2= label on axis 2
95 labelfont=Erg14 font name for axes labels
96 title= title of plot
97 titlefont=Rom22 font name for title
98 windowtitle=ximage title on window
99 labelcolor=blue color for axes labels
100 titlecolor=red color for title
101 gridcolor=blue color for grid lines
102 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
103 seismic (axis 1 vertical, axis 2 horizontal)
104 blank=0 This indicates what portion of the lower range
105 to blank out (make the background color). The
106 value should range from 0 to 1.
107 plotfile=plotfile.ps filename for interactive ploting (P)
108 curve=curve1,curve2,... file(s) containing points to draw curve(s)
109 npair=n1,n2,n2,... number(s) of pairs in each file
110 curvecolor=color1,color2,... color(s) for curve(s)
111 blockinterp=0 whether to use block interpolation (0=no, 1=yes)
112  
113  
114 NOTES:
115 The curve file is an ascii file with the points specified as x1 x2
116 pairs separated by a space, one pair to a line. A "vector" of curve
117 files and curve colors may be specified as curvefile=file1,file2,etc.
118 and curvecolor=color1,color2,etc, and the number of pairs of values
119 in each file as npair=npair1,npair2,... .
120  
121  
122 Author: Dave Hale, Colorado School of Mines, 08/09/90
123  
124 Stewart A. Levin, Mobil - Added ps print option
125  
126 Brian Zook, Southwest Research Institute, 6/27/96, added blank option
127  
128 Toralf Foerster, Baltic Sea Research Institute, 9/15/96, new colormaps
129  
130 Berend Scheffers, Delft, colorbar (legend)
131  
132 Brian K. Macy, Phillips Petroleum, 11/27/98, added curve plotting option
133
134 G.Klein, GEOMAR Kiel, 2004-03-12, added cursor scrolling and
135 interactive change of zoom and clipping.
136
137 Zhaobo Meng, ConocoPhillips, 12/02/04, added amplitude display
138
139 Garry Perratt, Geocon, 08/04/05, modified perc handling to center colorbar if balance==1.
140  
141 INTL2B_block - blocky interpolation of a 2-D array of bytes
142  
143 intl2b_block blocky interpolation of a 2-D array of bytes
144  
145 Function Prototype:
146 void intl2b_block(int nxin, float dxin, float fxin,
147 int nyin, float dyin, float fyin, unsigned char *zin,
148 int nxout, float dxout, float fxout,
149 int nyout, float dyout, float fyout, unsigned char *zout);
150  
151 Input:
152 nxin number of x samples input (fast dimension of zin)
153 dxin x sampling interval input
154 fxin first x sample input
155 nyin number of y samples input (slow dimension of zin)
156 dyin y sampling interval input
157 fyin first y sample input
158 zin array[nyin][nxin] of input samples (see notes)
159 nxout number of x samples output (fast dimension of zout)
160 dxout x sampling interval output
161 fxout first x sample output
162 nyout number of y samples output (slow dimension of zout)
163 dyout y sampling interval output
164 fyout first y sample output
165  
166 Output:
167 zout array[nyout][nxout] of output samples (see notes)
168  
169 Notes:
170 The arrays zin and zout must passed as pointers to the first element of
171 a two-dimensional contiguous array of unsigned char values.
172  
173 Constant extrapolation of zin is used to compute zout for
174 output x and y outside the range of input x and y.
175  
176 Author: James Gunning, CSIRO Petroleum 1999. Hacked from
177 intl2b() by Dave Hale, Colorado School of Mines, c. 1989-1991
178 =head2 CHANGES and their DATES
179  
180 =cut
181  
182 use Moose;
183 our $VERSION = '0.0.1';
184 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
185  
186 my $get = L_SU_global_constants->new();
187  
188 my $var = $get->var();
189 my $empty_string = $var->{_empty_string};
190  
191 my $ximage = {
192 _balance => '',
193 _bclip => '',
194 _blank => '',
195 _blockinterp => '',
196 _bperc => '',
197 _clip => '',
198 _cmap => '',
199 _curve => '',
200 _curvecolor => '',
201 _curvefile => '',
202 _d1 => '',
203 _d1num => '',
204 _d2 => '',
205 _d2num => '',
206 _f1 => '',
207 _f1num => '',
208 _f2 => '',
209 _f2num => '',
210 _grid1 => '',
211 _grid2 => '',
212 _gridcolor => '',
213 _hbox => '',
214 _label1 => '',
215 _label2 => '',
216 _labelcolor => '',
217 _labelfont => '',
218 _legend => '',
219 _legendfont => '',
220 _lheight => '',
221 _lwidth => '',
222 _lx => '',
223 _ly => '',
224 _mpicks => '',
225 _n1 => '',
226 _n1tic => '',
227 _n2 => '',
228 _n2tic => '',
229 _npair => '',
230 _perc => '',
231 _plotfile => '',
232 _style => '',
233 _title => '',
234 _titlecolor => '',
235 _titlefont => '',
236 _units => '',
237 _verbose => '',
238 _wbox => '',
239 _wclip => '',
240 _windowtitle => '',
241 _wperc => '',
242 _x1beg => '',
243 _x1end => '',
244 _x2beg => '',
245 _x2end => '',
246 _xbox => '',
247 _ybox => '',
248 _Step => '',
249 _note => '',
250 };
251  
252 =head2 sub Step
253  
254 collects switches and assembles bash instructions
255 by adding the program name
256  
257 =cut
258  
259 sub Step {
260  
261 $ximage->{_Step} = 'ximage' . $ximage->{_Step};
262 return ( $ximage->{_Step} );
263  
264 }
265  
266 =head2 sub note
267  
268 collects switches and assembles bash instructions
269 by adding the program name
270  
271 =cut
272  
273 sub note {
274  
275 $ximage->{_note} = 'ximage' . $ximage->{_note};
276 return ( $ximage->{_note} );
277  
278 }
279  
280 =head2 sub clear
281  
282 =cut
283  
284 sub clear {
285  
286 $ximage->{_balance} = '';
287 $ximage->{_bclip} = '';
288 $ximage->{_blank} = '';
289 $ximage->{_blockinterp} = '';
290 $ximage->{_bperc} = '';
291 $ximage->{_clip} = '';
292 $ximage->{_cmap} = '';
293 $ximage->{_curve} = '';
294 $ximage->{_curvecolor} = '';
295 $ximage->{_curvefile} = '';
296 $ximage->{_d1} = '';
297 $ximage->{_d1num} = '';
298 $ximage->{_d2} = '';
299 $ximage->{_d2num} = '';
300 $ximage->{_f1} = '';
301 $ximage->{_f1num} = '';
302 $ximage->{_f2} = '';
303 $ximage->{_f2num} = '';
304 $ximage->{_grid1} = '';
305 $ximage->{_grid2} = '';
306 $ximage->{_gridcolor} = '';
307 $ximage->{_hbox} = '';
308 $ximage->{_label1} = '';
309 $ximage->{_label2} = '';
310 $ximage->{_labelcolor} = '';
311 $ximage->{_labelfont} = '';
312 $ximage->{_legend} = '';
313 $ximage->{_legendfont} = '';
314 $ximage->{_lheight} = '';
315 $ximage->{_lwidth} = '';
316 $ximage->{_lx} = '';
317 $ximage->{_ly} = '';
318 $ximage->{_mpicks} = '';
319 $ximage->{_n1} = '';
320 $ximage->{_n1tic} = '';
321 $ximage->{_n2} = '';
322 $ximage->{_n2tic} = '';
323 $ximage->{_npair} = '';
324 $ximage->{_perc} = '';
325 $ximage->{_plotfile} = '';
326 $ximage->{_style} = '';
327 $ximage->{_title} = '';
328 $ximage->{_titlecolor} = '';
329 $ximage->{_titlefont} = '';
330 $ximage->{_units} = '';
331 $ximage->{_verbose} = '';
332 $ximage->{_wbox} = '';
333 $ximage->{_wclip} = '';
334 $ximage->{_windowtitle} = '';
335 $ximage->{_wperc} = '';
336 $ximage->{_x1beg} = '';
337 $ximage->{_x1end} = '';
338 $ximage->{_x2beg} = '';
339 $ximage->{_x2end} = '';
340 $ximage->{_xbox} = '';
341 $ximage->{_ybox} = '';
342 $ximage->{_Step} = '';
343 $ximage->{_note} = '';
344 }
345  
346 =head2 sub absclip
347  
348  
349 =cut
350  
351 sub absclip {
352  
353 my ( $self, $clip ) = @_;
354 if ( $clip ne $empty_string ) {
355  
356 $ximage->{_clip} = $clip;
357 $ximage->{_note} = $ximage->{_note} . ' clip=' . $ximage->{_clip};
358 $ximage->{_Step} = $ximage->{_Step} . ' clip=' . $ximage->{_clip};
359  
360 }
361 else {
362 print("ximage, absclip, missing clip,\n");
363 }
364 }
365  
366 =head2 sub balance
367  
368  
369 =cut
370  
371 sub balance {
372  
373 my ( $self, $balance ) = @_;
374 if ( $balance ne $empty_string ) {
375  
376 $ximage->{_balance} = $balance;
377 $ximage->{_note} =
378 $ximage->{_note} . ' balance=' . $ximage->{_balance};
379 $ximage->{_Step} =
380 $ximage->{_Step} . ' balance=' . $ximage->{_balance};
381  
382 }
383 else {
384 print("ximage, balance, missing balance,\n");
385 }
386 }
387  
388 =head2 sub bclip
389  
390  
391 =cut
392  
393 sub bclip {
394  
395 my ( $self, $bclip ) = @_;
396 if ( $bclip ne $empty_string ) {
397  
398 $ximage->{_bclip} = $bclip;
399 $ximage->{_note} = $ximage->{_note} . ' bclip=' . $ximage->{_bclip};
400 $ximage->{_Step} = $ximage->{_Step} . ' bclip=' . $ximage->{_bclip};
401  
402 }
403 else {
404 print("ximage, bclip, missing bclip,\n");
405 }
406 }
407  
408 =head2 sub blank
409  
410  
411 =cut
412  
413 sub blank {
414  
415 my ( $self, $blank ) = @_;
416 if ( $blank ne $empty_string ) {
417  
418 $ximage->{_blank} = $blank;
419 $ximage->{_note} = $ximage->{_note} . ' blank=' . $ximage->{_blank};
420 $ximage->{_Step} = $ximage->{_Step} . ' blank=' . $ximage->{_blank};
421  
422 }
423 else {
424 print("ximage, blank, missing blank,\n");
425 }
426 }
427  
428 =head2 sub blockinterp
429  
430  
431 =cut
432  
433 sub blockinterp {
434  
435 my ( $self, $blockinterp ) = @_;
436 if ( $blockinterp ne $empty_string ) {
437  
438 $ximage->{_blockinterp} = $blockinterp;
439 $ximage->{_note} =
440 $ximage->{_note} . ' blockinterp=' . $ximage->{_blockinterp};
441 $ximage->{_Step} =
442 $ximage->{_Step} . ' blockinterp=' . $ximage->{_blockinterp};
443  
444 }
445 else {
446 print("ximage, blockinterp, missing blockinterp,\n");
447 }
448 }
449  
450 =head2 sub box_X0
451  
452  
453 =cut
454  
455 sub box_X0 {
456  
457 my ( $self, $xbox ) = @_;
458 if ($xbox) {
459  
460 $ximage->{_xbox} = $xbox;
461 $ximage->{_note} = $ximage->{_note} . ' xbox=' . $ximage->{_xbox};
462 $ximage->{_Step} = $ximage->{_Step} . ' xbox=' . $ximage->{_xbox};
463  
464 }
465 else {
466 print("ximage, wbox, missing box_X0,\n");
467 }
468 }
469  
470 =head2 sub box_Y0
471  
472  
473 =cut
474  
475 sub box_Y0 {
476  
477 my ( $self, $ybox ) = @_;
478 if ($ybox) {
479  
480 $ximage->{_ybox} = $ybox;
481 $ximage->{_note} = $ximage->{_note} . ' ybox=' . $ximage->{_ybox};
482 $ximage->{_Step} = $ximage->{_Step} . ' ybox=' . $ximage->{_ybox};
483  
484 }
485 else {
486 print("ximage, box_Y0, missing box_Y0,\n");
487 }
488 }
489  
490 =head2 sub box_height
491  
492  
493 =cut
494  
495 sub box_height {
496  
497 my ( $self, $hbox ) = @_;
498 if ($hbox) {
499  
500 $ximage->{_hbox} = $hbox;
501 $ximage->{_note} = $ximage->{_note} . ' hbox=' . $ximage->{_hbox};
502 $ximage->{_Step} = $ximage->{_Step} . ' hbox=' . $ximage->{_hbox};
503  
504 }
505 else {
506 print("ximage, hbox, missing box_height,\n");
507 }
508 }
509  
510 =head2 sub box_width
511  
512  
513 =cut
514  
515 sub box_width {
516  
517 my ( $self, $wbox ) = @_;
518 if ($wbox) {
519  
520 $ximage->{_wbox} = $wbox;
521 $ximage->{_note} = $ximage->{_note} . ' wbox=' . $ximage->{_wbox};
522 $ximage->{_Step} = $ximage->{_Step} . ' wbox=' . $ximage->{_wbox};
523  
524 }
525 else {
526 print("ximage, wbox, missing box_width,\n");
527 }
528 }
529  
530 =head2 sub bperc
531  
532  
533 =cut
534  
535 sub bperc {
536  
537 my ( $self, $bperc ) = @_;
538 if ( $bperc ne $empty_string ) {
539  
540 $ximage->{_bperc} = $bperc;
541 $ximage->{_note} = $ximage->{_note} . ' bperc=' . $ximage->{_bperc};
542 $ximage->{_Step} = $ximage->{_Step} . ' bperc=' . $ximage->{_bperc};
543  
544 }
545 else {
546 print("ximage, bperc, missing bperc,\n");
547 }
548 }
549  
550 =head2 sub clip
551  
552 determine the absolute clip for data
553  
554 =cut
555  
556 sub clip {
557  
558 my ( $self, $clip ) = @_;
559 if ( $clip ne $empty_string ) {
560  
561 $ximage->{_clip} = $clip;
562 $ximage->{_note} = $ximage->{_note} . ' clip=' . $ximage->{_clip};
563 $ximage->{_Step} = $ximage->{_Step} . ' clip=' . $ximage->{_clip};
564  
565 }
566 else {
567 print("ximage, clip, missing clip,\n");
568 }
569 }
570  
571 =head2 sub cmap
572  
573  
574 =cut
575  
576 sub cmap {
577  
578 my ( $self, $cmap ) = @_;
579 if ( $cmap ne $empty_string ) {
580  
581 $ximage->{_cmap} = $cmap;
582 $ximage->{_note} = $ximage->{_note} . ' cmap=' . $ximage->{_cmap};
583 $ximage->{_Step} = $ximage->{_Step} . ' cmap=' . $ximage->{_cmap};
584  
585 }
586 else {
587 print("ximage, cmap, missing cmap,\n");
588 }
589 }
590  
591 =head2 sub curve
592  
593  
594 =cut
595  
596 sub curve {
597  
598 my ( $self, $curve ) = @_;
599 if ( $curve ne $empty_string ) {
600  
601 $ximage->{_curve} = $curve;
602 $ximage->{_note} = $ximage->{_note} . ' curve=' . $ximage->{_curve};
603 $ximage->{_Step} = $ximage->{_Step} . ' curve=' . $ximage->{_curve};
604  
605 }
606 else {
607 print("ximage, curve, missing curve,\n");
608 }
609 }
610  
611 =head2 sub curvecolor
612  
613  
614 =cut
615  
616 sub curvecolor {
617  
618 my ( $self, $curvecolor ) = @_;
619 if ( $curvecolor ne $empty_string ) {
620  
621 $ximage->{_curvecolor} = $curvecolor;
622 $ximage->{_note} =
623 $ximage->{_note} . ' curvecolor=' . $ximage->{_curvecolor};
624 $ximage->{_Step} =
625 $ximage->{_Step} . ' curvecolor=' . $ximage->{_curvecolor};
626  
627 }
628 else {
629 print("ximage, curvecolor, missing curvecolor,\n");
630 }
631 }
632  
633 =head2 sub curvefile
634  
635  
636 =cut
637  
638 sub curvefile {
639  
640 my ( $self, $curvefile ) = @_;
641 if ( $curvefile ne $empty_string ) {
642  
643 $ximage->{_curvefile} = $curvefile;
644 $ximage->{_note} =
645 $ximage->{_note} . ' curvefile=' . $ximage->{_curvefile};
646 $ximage->{_Step} =
647 $ximage->{_Step} . ' curvefile=' . $ximage->{_curvefile};
648  
649 }
650 else {
651 print("ximage, curvefile, missing curvefile,\n");
652 }
653 }
654  
655 =head2 sub d1
656  
657  
658 subs d1 and dt and dz
659  
660 increment in fast dimension
661 usually time and equal to dt
662  
663  
664 =cut
665  
666 sub d1 {
667  
668 my ( $self, $d1 ) = @_;
669 if ( $d1 ne $empty_string ) {
670  
671 $ximage->{_d1} = $d1;
672 $ximage->{_note} = $ximage->{_note} . ' d1=' . $ximage->{_d1};
673 $ximage->{_Step} = $ximage->{_Step} . ' d1=' . $ximage->{_d1};
674  
675 }
676 else {
677 print("ximage, d1, missing d1,\n");
678 }
679 }
680  
681 =head2 sub d1num
682  
683  
684 subs d1num , y_tick_increment dy_major_divisions dt_major_divisions
685  
686 numbered tick interval in fast dimension(t)
687  
688  
689 =cut
690  
691 sub d1num {
692  
693 my ( $self, $d1num ) = @_;
694 if ( $d1num ne $empty_string ) {
695  
696 $ximage->{_d1num} = $d1num;
697 $ximage->{_note} = $ximage->{_note} . ' d1num=' . $ximage->{_d1num};
698 $ximage->{_Step} = $ximage->{_Step} . ' d1num=' . $ximage->{_d1num};
699  
700 }
701 else {
702 print("ximage, d1num, missing d1num,\n");
703 }
704 }
705  
706 =head2 sub d2
707  
708  
709 subs d2 and trace_in
710
711 only the first trace is read in
712 if an increment is not 1 between traces
713 you should indicate here
714  
715 =cut
716  
717 sub d2 {
718  
719 my ( $self, $d2 ) = @_;
720 if ( $d2 ne $empty_string ) {
721  
722 $ximage->{_d2} = $d2;
723 $ximage->{_note} = $ximage->{_note} . ' d2=' . $ximage->{_d2};
724 $ximage->{_Step} = $ximage->{_Step} . ' d2=' . $ximage->{_d2};
725  
726 }
727 else {
728 print("ximage, d2, missing d2,\n");
729 }
730 }
731  
732 =head2 sub dt_major_divisions
733  
734 subs d1num , y_tick_increment dy_major_divisions dt_major_divisions
735  
736 numbered tick interval in fast dimension(t)
737  
738 =cut
739  
740 sub dt_major_divisions {
741  
742 my ( $self, $d1num ) = @_;
743 if ($d1num) {
744  
745 $ximage->{_d1num} = $d1num;
746 $ximage->{_note} = $ximage->{_note} . ' d1num=' . $ximage->{_d1num};
747 $ximage->{_Step} = $ximage->{_Step} . ' d1num=' . $ximage->{_d1num};
748  
749 }
750 else {
751 print("ximage, dt_major_divisions, missing dt_major_divisions,\n");
752 }
753 }
754  
755 =head2 sub dx
756  
757 only the first trace is read in
758 if an increment is not 1 between traces
759 you should indicate here
760  
761 =cut
762  
763 sub dx {
764  
765 my ( $self, $d2 ) = @_;
766 if ($d2) {
767  
768 $ximage->{_d2} = $d2;
769 $ximage->{_note} = $ximage->{_note} . ' d2=' . $ximage->{_d2};
770 $ximage->{_Step} = $ximage->{_Step} . ' d2=' . $ximage->{_d2};
771  
772 }
773 else {
774 print("ximage, dx, missing dx,\n");
775 }
776 }
777  
778 =head2 sub dy_major_divisions
779  
780 subs d1num , y_tick_increment dy_major_divisions dt_major_divisions
781  
782 numbered tick interval in fast dimension(t)
783  
784 =cut
785  
786 sub dy_major_divisions {
787  
788 my ( $self, $d1num ) = @_;
789 if ($d1num) {
790  
791 $ximage->{_d1num} = $d1num;
792 $ximage->{_note} = $ximage->{_note} . ' d1num=' . $ximage->{_d1num};
793 $ximage->{_Step} = $ximage->{_Step} . ' d1num=' . $ximage->{_d1num};
794  
795 }
796 else {
797 print("ximage, dy_major_divisions, missing dy_major_divisions,\n");
798 }
799 }
800  
801 =head2 sub d2num
802  
803 subs d2num dx_major_divisions and x_tick_increment
804 numbered tick interval
805  
806  
807 =cut
808  
809 sub d2num {
810  
811 my ( $self, $d2num ) = @_;
812 if ( $d2num ne $empty_string ) {
813  
814 $ximage->{_d2num} = $d2num;
815 $ximage->{_note} = $ximage->{_note} . ' d2num=' . $ximage->{_d2num};
816 $ximage->{_Step} = $ximage->{_Step} . ' d2num=' . $ximage->{_d2num};
817  
818 }
819 else {
820 print("ximage, d2num, missing d2num,\n");
821 }
822 }
823  
824 =head2 sub dt
825  
826 subs d1 and dt and dz
827  
828 increment in fast dimension
829 usually time and equal to dt
830  
831 =cut
832  
833 sub dt {
834  
835 my ( $self, $d1 ) = @_;
836 if ($d1) {
837  
838 $ximage->{_d1} = $d1;
839 $ximage->{_note} = $ximage->{_note} . ' d1=' . $ximage->{_d1};
840 $ximage->{_Step} = $ximage->{_Step} . ' d1=' . $ximage->{_d1};
841  
842 }
843 else {
844 print("ximage, dt, missing dt,\n");
845 }
846 }
847  
848 =head2 sub dx_major_divisions
849  
850 subs d2num dx_major_divisions and x_tick_increment
851 numbered tick interval
852  
853 =cut
854  
855 sub dx_major_divisions {
856  
857 my ( $self, $d2num ) = @_;
858 if ($d2num) {
859  
860 $ximage->{_d2num} = $d2num;
861 $ximage->{_note} = $ximage->{_note} . ' d2num=' . $ximage->{_d2num};
862 $ximage->{_Step} = $ximage->{_Step} . ' d2num=' . $ximage->{_d2num};
863  
864 }
865 else {
866 print("ximage, dx_major_divisions, missing dx_major_divisions,\n");
867 }
868 }
869  
870 =head2 sub dy_minor_divisions
871  
872 subs dy_minor_divisions n1tic and num_minor_ticks_betw_time_ticks
873  
874 n1tic=1 number of minor ticks shwon between each
875 of the numbered ticks on axis 1 (usually time and pointing down)
876  
877  
878 =cut
879  
880 sub dy_minor_divisions {
881  
882 my ( $self, $n1tic ) = @_;
883 if ($n1tic) {
884  
885 $ximage->{_n1tic} = $n1tic;
886 $ximage->{_note} = $ximage->{_note} . ' n1tic=' . $ximage->{_n1tic};
887 $ximage->{_Step} = $ximage->{_Step} . ' n1tic=' . $ximage->{_n1tic};
888  
889 }
890 else {
891 print("ximage, dy_minor_divisions, missing dy_minor_divisions,\n");
892 }
893 }
894  
895 =head2 sub dz
896  
897 subs d1 and dt and dz
898  
899 increment in fast dimension
900 usually time and equal to dt
901  
902 =cut
903  
904 sub dz {
905  
906 my ( $self, $d1 ) = @_;
907 if ($d1) {
908  
909 $ximage->{_d1} = $d1;
910 $ximage->{_note} = $ximage->{_note} . ' d1=' . $ximage->{_d1};
911 $ximage->{_Step} = $ximage->{_Step} . ' d1=' . $ximage->{_d1};
912  
913 }
914 else {
915 print("ximage, dz, missing dz,\n");
916 }
917 }
918  
919 =head2 sub f1
920  
921 subs f1, first_time_sample_value and first_y
922  
923 value of the first sample tihat is use
924  
925 =cut
926  
927 sub f1 {
928  
929 my ( $self, $f1 ) = @_;
930 if ( $f1 ne $empty_string ) {
931  
932 $ximage->{_f1} = $f1;
933 $ximage->{_note} = $ximage->{_note} . ' f1=' . $ximage->{_f1};
934 $ximage->{_Step} = $ximage->{_Step} . ' f1=' . $ximage->{_f1};
935  
936 }
937 else {
938 print("ximage, f1, missing f1,\n");
939 }
940 }
941  
942 =head2 sub f1num
943  
944 subs f1num first_time_tick_num
945  
946 first tick number in the
947 fast dimension (e.g., time)
948  
949 =cut
950  
951 sub f1num {
952  
953 my ( $self, $f1num ) = @_;
954 if ( $f1num ne $empty_string ) {
955  
956 $ximage->{_f1num} = $f1num;
957 $ximage->{_note} = $ximage->{_note} . ' f1num=' . $ximage->{_f1num};
958 $ximage->{_Step} = $ximage->{_Step} . ' f1num=' . $ximage->{_f1num};
959  
960 }
961 else {
962 print("ximage, f1num, missing f1num,\n");
963 }
964 }
965  
966 =head2 sub f2
967  
968 subs f2 and first_distance_sample_value first_x
969  
970 value of the first sample tihat is used
971  
972 first value in the second dimension (X)
973  
974 =cut
975  
976 sub f2 {
977  
978 my ( $self, $f2 ) = @_;
979 if ( $f2 ne $empty_string ) {
980  
981 $ximage->{_f2} = $f2;
982 $ximage->{_note} = $ximage->{_note} . ' f2=' . $ximage->{_f2};
983 $ximage->{_Step} = $ximage->{_Step} . ' f2=' . $ximage->{_f2};
984  
985 }
986 else {
987 print("ximage, f2, missing f2,\n");
988 }
989 }
990  
991 =head2 sub f2num
992  
993 subs f2num first_tick_number_x
994  
995 first tick number in the
996 slow dimension (e.g., distance)
997  
998 =cut
999  
1000 sub f2num {
1001  
1002 my ( $self, $f2num ) = @_;
1003 if ( $f2num ne $empty_string ) {
1004  
1005 $ximage->{_f2num} = $f2num;
1006 $ximage->{_note} = $ximage->{_note} . ' f2num=' . $ximage->{_f2num};
1007 $ximage->{_Step} = $ximage->{_Step} . ' f2num=' . $ximage->{_f2num};
1008  
1009 }
1010 else {
1011 print("ximage, f2num, missing f2num,\n");
1012 }
1013 }
1014  
1015 =head2 sub first_distance_sample_value
1016  
1017 subs f2 and first_distance_sample_value first_x
1018  
1019 value of the first sample tihat is used
1020  
1021 first value in the second dimension (X)
1022  
1023 =cut
1024  
1025 sub first_distance_sample_value {
1026  
1027 my ( $self, $f2 ) = @_;
1028 if ($f2) {
1029  
1030 $ximage->{_f2} = $f2;
1031 $ximage->{_note} = $ximage->{_note} . ' f2=' . $ximage->{_f2};
1032 $ximage->{_Step} = $ximage->{_Step} . ' f2=' . $ximage->{_f2};
1033  
1034 }
1035 else {
1036 print(
1037 "ximage, first_distance_sample_value , missing first_distance_sample_value ,\n"
1038 );
1039 }
1040 }
1041  
1042 =head2 sub first_x
1043  
1044 subs f2 and first_distance_sample_value first_x
1045  
1046 value of the first sample tihat is used
1047  
1048 first value in the second dimension (X)
1049  
1050 =cut
1051  
1052 sub first_x {
1053  
1054 my ( $self, $f2 ) = @_;
1055 if ($f2) {
1056  
1057 $ximage->{_f2} = $f2;
1058 $ximage->{_note} = $ximage->{_note} . ' f2=' . $ximage->{_f2};
1059 $ximage->{_Step} = $ximage->{_Step} . ' f2=' . $ximage->{_f2};
1060  
1061 }
1062 else {
1063 print("ximage, first_x , missing first_x ,\n");
1064 }
1065 }
1066  
1067 =head2 sub first_distance_tick_num
1068  
1069 subs f2num first_distance_tick_num
1070  
1071 first tick number in the
1072 slow dimension (distance)
1073  
1074 =cut
1075  
1076 sub first_distance_tick_num {
1077 my ( $variable, $f2num ) = @_;
1078 if ($f2num) {
1079 $ximage->{_f2num} = $f2num;
1080 $ximage->{_Step} = $ximage->{_Step} . ' f2num=' . $ximage->{_f2num};
1081 $ximage->{_note} = $ximage->{_note} . ' f2num=' . $ximage->{_f2num};
1082 }
1083 }
1084  
1085 =head2 sub first_tick_number_x
1086  
1087 subs f2num first_tick_number_x
1088  
1089 first tick number in the
1090 slow dimension (e.g., distance)
1091  
1092 =cut
1093  
1094 sub first_tick_number_x {
1095  
1096 my ( $self, $f2num ) = @_;
1097 if ($f2num) {
1098  
1099 $ximage->{_f2num} = $f2num;
1100 $ximage->{_note} = $ximage->{_note} . ' f2num=' . $ximage->{_f2num};
1101 $ximage->{_Step} = $ximage->{_Step} . ' f2num=' . $ximage->{_f2num};
1102  
1103 }
1104 else {
1105 print("ximage, first_tick_number_x, missing first_tick_number_x,\n");
1106 }
1107 }
1108  
1109 =head2 sub first_time_sample_value
1110  
1111 subs f1, first_time_sample_value and first_y
1112  
1113 value of the first sample tihat is use
1114  
1115 =cut
1116  
1117 sub first_time_sample_value {
1118  
1119 my ( $self, $f1 ) = @_;
1120 if ($f1) {
1121  
1122 $ximage->{_f1} = $f1;
1123 $ximage->{_note} = $ximage->{_note} . ' f1=' . $ximage->{_f1};
1124 $ximage->{_Step} = $ximage->{_Step} . ' f1=' . $ximage->{_f1};
1125  
1126 }
1127 else {
1128 print(
1129 "ximage, first_time_sample_value, missing first_time_sample_value,\n"
1130 );
1131 }
1132 }
1133  
1134 =head2 sub first_time_tick_num
1135  
1136 subs f1num first_time_tick_num
1137  
1138 first tick number in the
1139 fast dimension (e.g., time)
1140  
1141 =cut
1142  
1143 sub first_time_tick_num {
1144  
1145 my ( $self, $f1num ) = @_;
1146 if ($f1num) {
1147  
1148 $ximage->{_f1num} = $f1num;
1149 $ximage->{_note} = $ximage->{_note} . ' f1num=' . $ximage->{_f1num};
1150 $ximage->{_Step} = $ximage->{_Step} . ' f1num=' . $ximage->{_f1num};
1151  
1152 }
1153 else {
1154 print("ximage, first_time_tick_num, missing first_time_tick_num,\n");
1155 }
1156 }
1157  
1158 =head2 sub first_y
1159  
1160 subs f1, first_time_sample_value and first_y
1161  
1162 value of the first sample that is used
1163  
1164 =cut
1165  
1166 sub first_y {
1167  
1168 my ( $self, $f1 ) = @_;
1169 if ($f1) {
1170  
1171 $ximage->{_f1} = $f1;
1172 $ximage->{_note} = $ximage->{_note} . ' f1=' . $ximage->{_f1};
1173 $ximage->{_Step} = $ximage->{_Step} . ' f1=' . $ximage->{_f1};
1174  
1175 }
1176 else {
1177 print("ximage, first_y, missing first_y,\n");
1178 }
1179 }
1180  
1181 =head2 sub grid1
1182  
1183  
1184 =cut
1185  
1186 sub grid1 {
1187  
1188 my ( $self, $grid1 ) = @_;
1189 if ( $grid1 ne $empty_string ) {
1190  
1191 $ximage->{_grid1} = $grid1;
1192 $ximage->{_note} = $ximage->{_note} . ' grid1=' . $ximage->{_grid1};
1193 $ximage->{_Step} = $ximage->{_Step} . ' grid1=' . $ximage->{_grid1};
1194  
1195 }
1196 else {
1197 print("ximage, grid1, missing grid1,\n");
1198 }
1199 }
1200  
1201 =head2 sub grid2
1202  
1203  
1204 =cut
1205  
1206 sub grid2 {
1207  
1208 my ( $self, $grid2 ) = @_;
1209 if ( $grid2 ne $empty_string ) {
1210  
1211 $ximage->{_grid2} = $grid2;
1212 $ximage->{_note} = $ximage->{_note} . ' grid2=' . $ximage->{_grid2};
1213 $ximage->{_Step} = $ximage->{_Step} . ' grid2=' . $ximage->{_grid2};
1214  
1215 }
1216 else {
1217 print("ximage, grid2, missing grid2,\n");
1218 }
1219 }
1220  
1221 =head2 sub gridcolor
1222  
1223  
1224 =cut
1225  
1226 sub gridcolor {
1227  
1228 my ( $self, $gridcolor ) = @_;
1229 if ( $gridcolor ne $empty_string ) {
1230  
1231 $ximage->{_gridcolor} = $gridcolor;
1232 $ximage->{_note} =
1233 $ximage->{_note} . ' gridcolor=' . $ximage->{_gridcolor};
1234 $ximage->{_Step} =
1235 $ximage->{_Step} . ' gridcolor=' . $ximage->{_gridcolor};
1236  
1237 }
1238 else {
1239 print("ximage, gridcolor, missing gridcolor,\n");
1240 }
1241 }
1242  
1243 =head2 sub hbox
1244  
1245  
1246 =cut
1247  
1248 sub hbox {
1249  
1250 my ( $self, $hbox ) = @_;
1251 if ( $hbox ne $empty_string ) {
1252  
1253 $ximage->{_hbox} = $hbox;
1254 $ximage->{_note} = $ximage->{_note} . ' hbox=' . $ximage->{_hbox};
1255 $ximage->{_Step} = $ximage->{_Step} . ' hbox=' . $ximage->{_hbox};
1256  
1257 }
1258 else {
1259 print("ximage, hbox, missing hbox,\n");
1260 }
1261 }
1262  
1263 =head2 sub hilip
1264  
1265 subs hiclip wclip
1266  
1267 =cut
1268  
1269 sub hiclip {
1270  
1271 my ( $self, $wclip ) = @_;
1272 if ($wclip) {
1273  
1274 $ximage->{_wclip} = $wclip;
1275 $ximage->{_note} = $ximage->{_note} . ' wclip=' . $ximage->{_wclip};
1276 $ximage->{_Step} = $ximage->{_Step} . ' wclip=' . $ximage->{_wclip};
1277  
1278 }
1279 else {
1280 print("ximage, hilip, missing hilip,\n");
1281 }
1282 }
1283  
1284 =head2 sub label1
1285  
1286 subs xlabel or label2 ylabel or label1
1287  
1288 =cut
1289  
1290 sub label1 {
1291  
1292 my ( $self, $label1 ) = @_;
1293 if ( $label1 ne $empty_string ) {
1294  
1295 $ximage->{_label1} = $label1;
1296 $ximage->{_note} = $ximage->{_note} . ' label1=' . $ximage->{_label1};
1297 $ximage->{_Step} = $ximage->{_Step} . ' label1=' . $ximage->{_label1};
1298  
1299 }
1300 else {
1301 print("ximage, label1, missing label1,\n");
1302 }
1303 }
1304  
1305 =head2 sub label2
1306  
1307 subs xlabel or label2 ylabel or label1
1308  
1309 =cut
1310  
1311 sub label2 {
1312  
1313 my ( $self, $label2 ) = @_;
1314 if ( $label2 ne $empty_string ) {
1315  
1316 $ximage->{_label2} = $label2;
1317 $ximage->{_note} = $ximage->{_note} . ' label2=' . $ximage->{_label2};
1318 $ximage->{_Step} = $ximage->{_Step} . ' label2=' . $ximage->{_label2};
1319  
1320 }
1321 else {
1322 print("ximage, label2, missing label2,\n");
1323 }
1324 }
1325  
1326 =head2 sub labelcolor
1327  
1328  
1329 =cut
1330  
1331 sub labelcolor {
1332  
1333 my ( $self, $labelcolor ) = @_;
1334 if ( $labelcolor ne $empty_string ) {
1335  
1336 $ximage->{_labelcolor} = $labelcolor;
1337 $ximage->{_note} =
1338 $ximage->{_note} . ' labelcolor=' . $ximage->{_labelcolor};
1339 $ximage->{_Step} =
1340 $ximage->{_Step} . ' labelcolor=' . $ximage->{_labelcolor};
1341  
1342 }
1343 else {
1344 print("ximage, labelcolor, missing labelcolor,\n");
1345 }
1346 }
1347  
1348 =head2 sub labelfont
1349  
1350  
1351 =cut
1352  
1353 sub labelfont {
1354  
1355 my ( $self, $labelfont ) = @_;
1356 if ( $labelfont ne $empty_string ) {
1357  
1358 $ximage->{_labelfont} = $labelfont;
1359 $ximage->{_note} =
1360 $ximage->{_note} . ' labelfont=' . $ximage->{_labelfont};
1361 $ximage->{_Step} =
1362 $ximage->{_Step} . ' labelfont=' . $ximage->{_labelfont};
1363  
1364 }
1365 else {
1366 print("ximage, labelfont, missing labelfont,\n");
1367 }
1368 }
1369  
1370 =head2 sub legend
1371  
1372  
1373 =cut
1374  
1375 sub legend {
1376  
1377 my ( $self, $legend ) = @_;
1378 if ( $legend ne $empty_string ) {
1379  
1380 $ximage->{_legend} = $legend;
1381 $ximage->{_note} = $ximage->{_note} . ' legend=' . $ximage->{_legend};
1382 $ximage->{_Step} = $ximage->{_Step} . ' legend=' . $ximage->{_legend};
1383  
1384 }
1385 else {
1386 print("ximage, legend, missing legend,\n");
1387 }
1388 }
1389  
1390 =head2 sub legendfont
1391  
1392  
1393 =cut
1394  
1395 sub legendfont {
1396  
1397 my ( $self, $legendfont ) = @_;
1398 if ( $legendfont ne $empty_string ) {
1399  
1400 $ximage->{_legendfont} = $legendfont;
1401 $ximage->{_note} =
1402 $ximage->{_note} . ' legendfont=' . $ximage->{_legendfont};
1403 $ximage->{_Step} =
1404 $ximage->{_Step} . ' legendfont=' . $ximage->{_legendfont};
1405  
1406 }
1407 else {
1408 print("ximage, legendfont, missing legendfont,\n");
1409 }
1410 }
1411  
1412 =head2 sub lheight
1413  
1414  
1415 =cut
1416  
1417 sub lheight {
1418  
1419 my ( $self, $lheight ) = @_;
1420 if ( $lheight ne $empty_string ) {
1421  
1422 $ximage->{_lheight} = $lheight;
1423 $ximage->{_note} =
1424 $ximage->{_note} . ' lheight=' . $ximage->{_lheight};
1425 $ximage->{_Step} =
1426 $ximage->{_Step} . ' lheight=' . $ximage->{_lheight};
1427  
1428 }
1429 else {
1430 print("ximage, lheight, missing lheight,\n");
1431 }
1432 }
1433  
1434 =head2 sub lwidth
1435  
1436  
1437 =cut
1438  
1439 sub lwidth {
1440  
1441 my ( $self, $lwidth ) = @_;
1442 if ( $lwidth ne $empty_string ) {
1443  
1444 $ximage->{_lwidth} = $lwidth;
1445 $ximage->{_note} = $ximage->{_note} . ' lwidth=' . $ximage->{_lwidth};
1446 $ximage->{_Step} = $ximage->{_Step} . ' lwidth=' . $ximage->{_lwidth};
1447  
1448 }
1449 else {
1450 print("ximage, lwidth, missing lwidth,\n");
1451 }
1452 }
1453  
1454 =head2 sub loclip
1455  
1456 subs loclip bclip
1457  
1458 =cut
1459  
1460 sub loclip {
1461  
1462 my ( $self, $bclip ) = @_;
1463 if ($bclip) {
1464  
1465 $ximage->{_bclip} = $bclip;
1466 $ximage->{_note} = $ximage->{_note} . ' bclip=' . $ximage->{_bclip};
1467 $ximage->{_Step} = $ximage->{_Step} . ' bclip=' . $ximage->{_bclip};
1468  
1469 }
1470 else {
1471 print("ximage, lolip, missing lolip,\n");
1472 }
1473 }
1474  
1475 =head2 sub lx
1476  
1477  
1478 =cut
1479  
1480 sub lx {
1481  
1482 my ( $self, $lx ) = @_;
1483 if ( $lx ne $empty_string ) {
1484  
1485 $ximage->{_lx} = $lx;
1486 $ximage->{_note} = $ximage->{_note} . ' lx=' . $ximage->{_lx};
1487 $ximage->{_Step} = $ximage->{_Step} . ' lx=' . $ximage->{_lx};
1488  
1489 }
1490 else {
1491 print("ximage, lx, missing lx,\n");
1492 }
1493 }
1494  
1495 =head2 sub ly
1496  
1497  
1498 =cut
1499  
1500 sub ly {
1501  
1502 my ( $self, $ly ) = @_;
1503 if ( $ly ne $empty_string ) {
1504  
1505 $ximage->{_ly} = $ly;
1506 $ximage->{_note} = $ximage->{_note} . ' ly=' . $ximage->{_ly};
1507 $ximage->{_Step} = $ximage->{_Step} . ' ly=' . $ximage->{_ly};
1508  
1509 }
1510 else {
1511 print("ximage, ly, missing ly,\n");
1512 }
1513 }
1514  
1515 =head2 sub mpicks
1516  
1517 sub mpicks picks
1518 automatically generates a pick file
1519  
1520 =cut
1521  
1522 sub mpicks {
1523  
1524 my ( $self, $mpicks ) = @_;
1525 if ( $mpicks ne $empty_string ) {
1526  
1527 $ximage->{_mpicks} = $mpicks;
1528 $ximage->{_note} = $ximage->{_note} . ' mpicks=' . $ximage->{_mpicks};
1529 $ximage->{_Step} = $ximage->{_Step} . ' mpicks=' . $ximage->{_mpicks};
1530  
1531 }
1532 else {
1533 print("ximage, mpicks, missing mpicks,\n");
1534 }
1535 }
1536  
1537 =head2 sub n1
1538  
1539 n1 number of samples in 1st (fast) dimension
1540  
1541  
1542 =cut
1543  
1544 sub n1 {
1545  
1546 my ( $self, $n1 ) = @_;
1547 if ( $n1 ne $empty_string ) {
1548  
1549 $ximage->{_n1} = $n1;
1550 $ximage->{_note} = $ximage->{_note} . ' n1=' . $ximage->{_n1};
1551 $ximage->{_Step} = $ximage->{_Step} . ' n1=' . $ximage->{_n1};
1552  
1553 }
1554 else {
1555 print("ximage, n1, missing n1,\n");
1556 }
1557 }
1558  
1559 =head2 sub n1tic
1560  
1561 subs dy_minor_divisions n1tic and num_minor_ticks_betw_time_ticks
1562  
1563 n1tic=1 number of minor ticks shwon between each
1564 of the numbered ticks on axis 1 (usually time and pointing down)
1565  
1566  
1567 =cut
1568  
1569 sub n1tic {
1570  
1571 my ( $self, $n1tic ) = @_;
1572 if ( $n1tic ne $empty_string ) {
1573  
1574 $ximage->{_n1tic} = $n1tic;
1575 $ximage->{_note} = $ximage->{_note} . ' n1tic=' . $ximage->{_n1tic};
1576 $ximage->{_Step} = $ximage->{_Step} . ' n1tic=' . $ximage->{_n1tic};
1577  
1578 }
1579 else {
1580 print("ximage, n1tic, missing n1tic,\n");
1581 }
1582 }
1583  
1584 =head2 sub n2
1585  
1586  
1587 =cut
1588  
1589 sub n2 {
1590  
1591 my ( $self, $n2 ) = @_;
1592 if ( $n2 ne $empty_string ) {
1593  
1594 $ximage->{_n2} = $n2;
1595 $ximage->{_note} = $ximage->{_note} . ' n2=' . $ximage->{_n2};
1596 $ximage->{_Step} = $ximage->{_Step} . ' n2=' . $ximage->{_n2};
1597  
1598 }
1599 else {
1600 print("ximage, n2, missing n2,\n");
1601 }
1602 }
1603  
1604 =head2 sub n2tic
1605  
1606 subs n2tic and num_minor_ticks_betw_distance_ticks
1607  
1608 n2tic=1 number of minor ticks shwon between each
1609 of the numbered ticks on axis 1 (usually time and pointing down)
1610  
1611  
1612  
1613 =cut
1614  
1615 sub n2tic {
1616  
1617 my ( $self, $n2tic ) = @_;
1618 if ( $n2tic ne $empty_string ) {
1619  
1620 $ximage->{_n2tic} = $n2tic;
1621 $ximage->{_note} = $ximage->{_note} . ' n2tic=' . $ximage->{_n2tic};
1622 $ximage->{_Step} = $ximage->{_Step} . ' n2tic=' . $ximage->{_n2tic};
1623  
1624 }
1625 else {
1626 print("ximage, n2tic, missing n2tic,\n");
1627 }
1628 }
1629  
1630 =head2 sub npair
1631  
1632 number of T-Vel pairs
1633  
1634 =cut
1635  
1636 sub npair {
1637  
1638 my ( $self, $npair ) = @_;
1639 if ( $npair ne $empty_string ) {
1640  
1641 $ximage->{_npair} = $npair;
1642 $ximage->{_note} = $ximage->{_note} . ' npair=' . $ximage->{_npair};
1643 $ximage->{_Step} = $ximage->{_Step} . ' npair=' . $ximage->{_npair};
1644  
1645 }
1646 else {
1647 print("ximage, npair, missing npair,\n");
1648 }
1649 }
1650  
1651 =head2 sub num_minor_ticks_betw_distance_ticks
1652  
1653 subs n2tic and num_minor_ticks_betw_distance_ticks
1654  
1655 n2tic=1 number of minor ticks shwon between each
1656 of the numbered ticks on axis 1 (usually time and pointing down)
1657  
1658  
1659 =cut
1660  
1661 sub num_minor_ticks_betw_distance_ticks {
1662  
1663 my ( $self, $n2tic ) = @_;
1664 if ($n2tic) {
1665  
1666 $ximage->{_n2tic} = $n2tic;
1667 $ximage->{_note} = $ximage->{_note} . ' n2tic=' . $ximage->{_n2tic};
1668 $ximage->{_Step} = $ximage->{_Step} . ' n2tic=' . $ximage->{_n2tic};
1669  
1670 }
1671 else {
1672 print(
1673 "ximage, num_minor_ticks_betw_distance_ticks, missing num_minor_ticks_betw_distance_ticks,\n"
1674 );
1675 }
1676 }
1677  
1678 =head2 sub num_minor_ticks_betw_time_ticks
1679  
1680 subs dy_minor_divisions n1tic and num_minor_ticks_betw_time_ticks
1681  
1682 n1tic=1 number of minor ticks shwon between each
1683 of the numbered ticks on axis 1 (usually time and pointing down)
1684  
1685  
1686 =cut
1687  
1688 sub num_minor_ticks_betw_time_ticks {
1689  
1690 my ( $self, $n1tic ) = @_;
1691 if ($n1tic) {
1692  
1693 $ximage->{_n1tic} = $n1tic;
1694 $ximage->{_note} = $ximage->{_note} . ' n1tic=' . $ximage->{_n1tic};
1695 $ximage->{_Step} = $ximage->{_Step} . ' n1tic=' . $ximage->{_n1tic};
1696  
1697 }
1698 else {
1699 print(
1700 "ximage, num_minor_ticks_betw_time_ticks, missing num_minor_ticks_betw_time_ticks,\n"
1701 );
1702 }
1703 }
1704  
1705 =head2 sub orientation
1706  
1707 subs style orientation
1708  
1709 whether the time axis is vertical (seismic stlye)
1710 or the time axis is horizontal (normal style)
1711  
1712 =cut
1713  
1714 sub orientation {
1715  
1716 my ( $self, $style ) = @_;
1717 if ($style) {
1718  
1719 $ximage->{_style} = $style;
1720 $ximage->{_note} = $ximage->{_note} . ' style=' . $ximage->{_style};
1721 $ximage->{_Step} = $ximage->{_Step} . ' style=' . $ximage->{_style};
1722  
1723 }
1724 else {
1725 print("ximage, orientation, missing orientation,\n");
1726 }
1727 }
1728  
1729 =head2 sub perc
1730  
1731  
1732 =cut
1733  
1734 sub perc {
1735  
1736 my ( $self, $perc ) = @_;
1737 if ( $perc ne $empty_string ) {
1738  
1739 $ximage->{_perc} = $perc;
1740 $ximage->{_note} = $ximage->{_note} . ' perc=' . $ximage->{_perc};
1741 $ximage->{_Step} = $ximage->{_Step} . ' perc=' . $ximage->{_perc};
1742  
1743 }
1744 else {
1745 print("ximage, perc, missing perc,\n");
1746 }
1747 }
1748  
1749 =head2 sub plotfile
1750  
1751  
1752 =cut
1753  
1754 sub plotfile {
1755  
1756 my ( $self, $plotfile ) = @_;
1757 if ( $plotfile ne $empty_string ) {
1758  
1759 $ximage->{_plotfile} = $plotfile;
1760 $ximage->{_note} =
1761 $ximage->{_note} . ' plotfile=' . $ximage->{_plotfile};
1762 $ximage->{_Step} =
1763 $ximage->{_Step} . ' plotfile=' . $ximage->{_plotfile};
1764  
1765 }
1766 else {
1767 print("ximage, plotfile, missing plotfile,\n");
1768 }
1769 }
1770  
1771 =head2 sub style
1772  
1773 subs style orientation
1774  
1775 whether the time axis is vertical (seismic stlye)
1776 or the time axis is horizontal (normal style)
1777  
1778 =cut
1779  
1780 sub style {
1781  
1782 my ( $self, $style ) = @_;
1783 if ( $style ne $empty_string ) {
1784  
1785 $ximage->{_style} = $style;
1786 $ximage->{_note} = $ximage->{_note} . ' style=' . $ximage->{_style};
1787 $ximage->{_Step} = $ximage->{_Step} . ' style=' . $ximage->{_style};
1788  
1789 }
1790 else {
1791 print("ximage, style, missing style,\n");
1792 }
1793 }
1794  
1795 =head2 sub tend_s
1796  
1797 subs x1end and tend_s
1798  
1799 minimum value of yaxis (time usually) in seconds
1800  
1801 =cut
1802  
1803 sub tend_s {
1804  
1805 my ( $self, $x1end ) = @_;
1806 if ($x1end) {
1807  
1808 $ximage->{_x1end} = $x1end;
1809 $ximage->{_note} = $ximage->{_note} . ' x1end=' . $ximage->{_x1end};
1810 $ximage->{_Step} = $ximage->{_Step} . ' x1end=' . $ximage->{_x1end};
1811  
1812 }
1813 else {
1814 print("ximage, tend_s, missing tend_s,\n");
1815 }
1816 }
1817  
1818 =head2 sub title
1819  
1820 sub title allows for a graph title at the top of the
1821 window
1822  
1823  
1824 =cut
1825  
1826 sub title {
1827  
1828 my ( $self, $title ) = @_;
1829 if ( $title ne $empty_string ) {
1830  
1831 $ximage->{_title} = $title;
1832 $ximage->{_note} = $ximage->{_note} . ' title=' . $ximage->{_title};
1833 $ximage->{_Step} = $ximage->{_Step} . ' title=' . $ximage->{_title};
1834  
1835 }
1836 else {
1837 print("ximage, title, missing title,\n");
1838 }
1839 }
1840  
1841 =head2 sub titlecolor
1842  
1843  
1844 =cut
1845  
1846 sub titlecolor {
1847  
1848 my ( $self, $titlecolor ) = @_;
1849 if ( $titlecolor ne $empty_string ) {
1850  
1851 $ximage->{_titlecolor} = $titlecolor;
1852 $ximage->{_note} =
1853 $ximage->{_note} . ' titlecolor=' . $ximage->{_titlecolor};
1854 $ximage->{_Step} =
1855 $ximage->{_Step} . ' titlecolor=' . $ximage->{_titlecolor};
1856  
1857 }
1858 else {
1859 print("ximage, titlecolor, missing titlecolor,\n");
1860 }
1861 }
1862  
1863 =head2 sub titlefont
1864  
1865  
1866 =cut
1867  
1868 sub titlefont {
1869  
1870 my ( $self, $titlefont ) = @_;
1871 if ( $titlefont ne $empty_string ) {
1872  
1873 $ximage->{_titlefont} = $titlefont;
1874 $ximage->{_note} =
1875 $ximage->{_note} . ' titlefont=' . $ximage->{_titlefont};
1876 $ximage->{_Step} =
1877 $ximage->{_Step} . ' titlefont=' . $ximage->{_titlefont};
1878  
1879 }
1880 else {
1881 print("ximage, titlefont, missing titlefont,\n");
1882 }
1883 }
1884  
1885 =head2 sub trace_inc
1886  
1887 subs d2 and trace_inc
1888
1889 only the first trace is read in
1890 if an increment is not 1 between traces
1891 you should indicate here
1892  
1893 =cut
1894  
1895 sub trace_inc {
1896  
1897 my ( $self, $d2 ) = @_;
1898 if ($d2) {
1899  
1900 $ximage->{_d2} = $d2;
1901 $ximage->{_note} = $ximage->{_note} . ' d2=' . $ximage->{_d2};
1902 $ximage->{_Step} = $ximage->{_Step} . ' d2=' . $ximage->{_d2};
1903  
1904 }
1905 else {
1906 print("ximage, trace_inc, missing trace_inc,\n");
1907 }
1908 }
1909  
1910 =head2 sub tstart_s
1911  
1912 subs x1beg and tstart_s
1913  
1914 minimum value of yaxis (time usually) in seconds
1915  
1916 =cut
1917  
1918 sub tstart_s {
1919  
1920 my ( $self, $x1beg ) = @_;
1921 if ($x1beg) {
1922  
1923 $ximage->{_x1beg} = $x1beg;
1924 $ximage->{_note} = $ximage->{_note} . ' x1beg=' . $ximage->{_x1beg};
1925 $ximage->{_Step} = $ximage->{_Step} . ' x1beg=' . $ximage->{_x1beg};
1926  
1927 }
1928 else {
1929 print("ximage, tstart_s, missing tstart_s,\n");
1930 }
1931 }
1932  
1933 =head2 sub units
1934  
1935  
1936 =cut
1937  
1938 sub units {
1939  
1940 my ( $self, $units ) = @_;
1941 if ( $units ne $empty_string ) {
1942  
1943 $ximage->{_units} = $units;
1944 $ximage->{_note} = $ximage->{_note} . ' units=' . $ximage->{_units};
1945 $ximage->{_Step} = $ximage->{_Step} . ' units=' . $ximage->{_units};
1946  
1947 }
1948 else {
1949 print("ximage, units, missing units,\n");
1950 }
1951 }
1952  
1953 =head2 sub verbose
1954  
1955  
1956 =cut
1957  
1958 sub verbose {
1959  
1960 my ( $self, $verbose ) = @_;
1961 if ( $verbose ne $empty_string ) {
1962  
1963 $ximage->{_verbose} = $verbose;
1964 $ximage->{_note} =
1965 $ximage->{_note} . ' verbose=' . $ximage->{_verbose};
1966 $ximage->{_Step} =
1967 $ximage->{_Step} . ' verbose=' . $ximage->{_verbose};
1968  
1969 }
1970 else {
1971 print("ximage, verbose, missing verbose,\n");
1972 }
1973 }
1974  
1975 =head2 sub wbox
1976  
1977  
1978 =cut
1979  
1980 sub wbox {
1981  
1982 my ( $self, $wbox ) = @_;
1983 if ( $wbox ne $empty_string ) {
1984  
1985 $ximage->{_wbox} = $wbox;
1986 $ximage->{_note} = $ximage->{_note} . ' wbox=' . $ximage->{_wbox};
1987 $ximage->{_Step} = $ximage->{_Step} . ' wbox=' . $ximage->{_wbox};
1988  
1989 }
1990 else {
1991 print("ximage, wbox, missing wbox,\n");
1992 }
1993 }
1994  
1995 =head2 sub wclip
1996  
1997  
1998 =cut
1999  
2000 sub wclip {
2001  
2002 my ( $self, $wclip ) = @_;
2003 if ( $wclip ne $empty_string ) {
2004  
2005 $ximage->{_wclip} = $wclip;
2006 $ximage->{_note} = $ximage->{_note} . ' wclip=' . $ximage->{_wclip};
2007 $ximage->{_Step} = $ximage->{_Step} . ' wclip=' . $ximage->{_wclip};
2008  
2009 }
2010 else {
2011 print("ximage, wclip, missing wclip,\n");
2012 }
2013 }
2014  
2015 =head2 sub windowtitle
2016  
2017  
2018 =cut
2019  
2020 sub windowtitle {
2021  
2022 my ( $self, $windowtitle ) = @_;
2023 if ( $windowtitle ne $empty_string ) {
2024  
2025 $ximage->{_windowtitle} = $windowtitle;
2026 $ximage->{_note} =
2027 $ximage->{_note} . ' windowtitle=' . $ximage->{_windowtitle};
2028 $ximage->{_Step} =
2029 $ximage->{_Step} . ' windowtitle=' . $ximage->{_windowtitle};
2030  
2031 }
2032 else {
2033 print("ximage, windowtitle, missing windowtitle,\n");
2034 }
2035 }
2036  
2037 =head2 sub wperc
2038  
2039  
2040 =cut
2041  
2042 sub wperc {
2043  
2044 my ( $self, $wperc ) = @_;
2045 if ( $wperc ne $empty_string ) {
2046  
2047 $ximage->{_wperc} = $wperc;
2048 $ximage->{_note} = $ximage->{_note} . ' wperc=' . $ximage->{_wperc};
2049 $ximage->{_Step} = $ximage->{_Step} . ' wperc=' . $ximage->{_wperc};
2050  
2051 }
2052 else {
2053 print("ximage, wperc, missing wperc,\n");
2054 }
2055 }
2056  
2057 =head2 sub x1beg
2058  
2059 subs x1beg and tstart_s
2060  
2061 minimum value of yaxis (time usually) in seconds
2062  
2063 =cut
2064  
2065 sub x1beg {
2066  
2067 my ( $self, $x1beg ) = @_;
2068 if ( $x1beg ne $empty_string ) {
2069  
2070 $ximage->{_x1beg} = $x1beg;
2071 $ximage->{_note} = $ximage->{_note} . ' x1beg=' . $ximage->{_x1beg};
2072 $ximage->{_Step} = $ximage->{_Step} . ' x1beg=' . $ximage->{_x1beg};
2073  
2074 }
2075 else {
2076 print("ximage, x1beg, missing x1beg,\n");
2077 }
2078 }
2079  
2080 =head2 sub x1end
2081  
2082 subs x1end and tend_s
2083  
2084 minimum value of yaxis (time usually) in seconds
2085  
2086  
2087 =cut
2088  
2089 sub x1end {
2090  
2091 my ( $self, $x1end ) = @_;
2092 if ( $x1end ne $empty_string ) {
2093  
2094 $ximage->{_x1end} = $x1end;
2095 $ximage->{_note} = $ximage->{_note} . ' x1end=' . $ximage->{_x1end};
2096 $ximage->{_Step} = $ximage->{_Step} . ' x1end=' . $ximage->{_x1end};
2097  
2098 }
2099 else {
2100 print("ximage, x1end, missing x1end,\n");
2101 }
2102 }
2103  
2104 =head2 sub x2beg
2105  
2106 subs x2beg and
2107  
2108 minimum value of yaxis (time usually) in seconds
2109  
2110 =cut
2111  
2112 sub x2beg {
2113  
2114 my ( $self, $x2beg ) = @_;
2115 if ( $x2beg ne $empty_string ) {
2116  
2117 $ximage->{_x2beg} = $x2beg;
2118 $ximage->{_note} = $ximage->{_note} . ' x2beg=' . $ximage->{_x2beg};
2119 $ximage->{_Step} = $ximage->{_Step} . ' x2beg=' . $ximage->{_x2beg};
2120  
2121 }
2122 else {
2123 print("ximage, x2beg, missing x2beg,\n");
2124 }
2125 }
2126  
2127 =head2 sub x2end
2128  
2129 subs x2end and xend_m
2130  
2131 minimum value of yaxis (time usually) in seconds
2132  
2133 =cut
2134  
2135 sub x2end {
2136  
2137 my ( $self, $x2end ) = @_;
2138 if ( $x2end ne $empty_string ) {
2139  
2140 $ximage->{_x2end} = $x2end;
2141 $ximage->{_note} = $ximage->{_note} . ' x2end=' . $ximage->{_x2end};
2142 $ximage->{_Step} = $ximage->{_Step} . ' x2end=' . $ximage->{_x2end};
2143  
2144 }
2145 else {
2146 print("ximage, x2end, missing x2end,\n");
2147 }
2148 }
2149  
2150 =head2 sub xbox
2151  
2152  
2153 =cut
2154  
2155 sub xbox {
2156  
2157 my ( $self, $xbox ) = @_;
2158 if ( $xbox ne $empty_string ) {
2159  
2160 $ximage->{_xbox} = $xbox;
2161 $ximage->{_note} = $ximage->{_note} . ' xbox=' . $ximage->{_xbox};
2162 $ximage->{_Step} = $ximage->{_Step} . ' xbox=' . $ximage->{_xbox};
2163  
2164 }
2165 else {
2166 print("ximage, xbox, missing xbox,\n");
2167 }
2168 }
2169  
2170 =head2 sub xend_m
2171  
2172 subs x2end and xend_m
2173  
2174 minimum value of yaxis (time usually) in seconds
2175  
2176 =cut
2177  
2178 sub xend_m {
2179  
2180 my ( $self, $x2end ) = @_;
2181 if ($x2end) {
2182  
2183 $ximage->{_x2end} = $x2end;
2184 $ximage->{_note} = $ximage->{_note} . ' x2end=' . $ximage->{_x2end};
2185 $ximage->{_Step} = $ximage->{_Step} . ' x2end=' . $ximage->{_x2end};
2186  
2187 }
2188 else {
2189 print("ximage, xend_m, missing xend_m,\n");
2190 }
2191 }
2192  
2193 =head2 sub xlabel
2194  
2195 subs xlabel or label2 ylabel or label1
2196  
2197 =cut
2198  
2199 sub xlabel {
2200  
2201 my ( $self, $label2 ) = @_;
2202 if ($label2) {
2203  
2204 $ximage->{_label2} = $label2;
2205 $ximage->{_note} = $ximage->{_note} . ' label2=' . $ximage->{_label2};
2206 $ximage->{_Step} = $ximage->{_Step} . ' label2=' . $ximage->{_label2};
2207  
2208 }
2209 else {
2210 print("ximage, xlabel, missing xlabel,\n");
2211 }
2212 }
2213  
2214 =head2 sub xstart_m
2215  
2216 subs x2beg and xstart_m
2217  
2218 minimum value of yaxis (time usually) in seconds
2219  
2220 =cut
2221  
2222 sub xstart_m {
2223  
2224 my ( $self, $x2beg ) = @_;
2225 if ($x2beg) {
2226  
2227 $ximage->{_x2beg} = $x2beg;
2228 $ximage->{_note} = $ximage->{_note} . ' x2beg=' . $ximage->{_x2beg};
2229 $ximage->{_Step} = $ximage->{_Step} . ' x2beg=' . $ximage->{_x2beg};
2230  
2231 }
2232 else {
2233 print("ximage, xstart_m, missing xstart_m,\n");
2234 }
2235 }
2236  
2237 =head2 sub x_tick_increment
2238  
2239 subs d2num dx_major_divisions and x_tick_increment
2240 numbered tick interval
2241  
2242 =cut
2243  
2244 sub x_tick_increment {
2245  
2246 my ( $self, $d2num ) = @_;
2247 if ($d2num) {
2248  
2249 $ximage->{_d2num} = $d2num;
2250 $ximage->{_note} = $ximage->{_note} . ' d2num=' . $ximage->{_d2num};
2251 $ximage->{_Step} = $ximage->{_Step} . ' d2num=' . $ximage->{_d2num};
2252  
2253 }
2254 else {
2255 print("ximage, dx_major_divisions, missing dx_major_divisions,\n");
2256 }
2257 }
2258  
2259 =head2 sub ybox
2260  
2261  
2262 =cut
2263  
2264 sub ybox {
2265  
2266 my ( $self, $ybox ) = @_;
2267 if ( $ybox ne $empty_string ) {
2268  
2269 $ximage->{_ybox} = $ybox;
2270 $ximage->{_note} = $ximage->{_note} . ' ybox=' . $ximage->{_ybox};
2271 $ximage->{_Step} = $ximage->{_Step} . ' ybox=' . $ximage->{_ybox};
2272  
2273 }
2274 else {
2275 print("ximage, ybox, missing ybox,\n");
2276 }
2277 }
2278  
2279 =head2 sub ylabel
2280  
2281 subs xlabel or label2 ylabel or label1
2282  
2283 =cut
2284  
2285 sub ylabel {
2286  
2287 my ( $self, $label1 ) = @_;
2288 if ( $label1 ne $empty_string ) {
2289  
2290 $ximage->{_label1} = $label1;
2291 $ximage->{_note} = $ximage->{_note} . ' label1=' . $ximage->{_label1};
2292 $ximage->{_Step} = $ximage->{_Step} . ' label1=' . $ximage->{_label1};
2293  
2294 }
2295 else {
2296 print("ximage, ylabel, missing ylabel,\n");
2297 }
2298 }
2299  
2300 =head2 sub get_max_index
2301
2302 max index = number of input variables -1
2303
2304 =cut
2305  
2306 sub get_max_index {
2307 my ($self) = @_;
2308 my $max_index = 55;
2309  
2310 return ($max_index);
2311 }
2312  
2313 1;