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

filter: Statementstmt 0.0% 0 / 272 Branchbran 0.0% 0 / 68 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 42 Podpod 0.0% 0 / 38 totaltotal 0.0% 0 / 420 CC 35 SCAR 17.2
CC
35
Cov
0%
axescolor
6.0
dxnum
6.0
dznum
6.0
CRAP 5.6
1 package App::SeismicUnixGui::sunix::plot::elaps;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 ELAPS - plot a triangulated function p(x,z) via PostScript
25  
26  
27  
28 elaps <modelfile >postscriptfile [optional parameters]
29  
30  
31  
32 Optional Parameters:
33  
34 p=0 plot sqrt(a3333) (vertical P-wave velocity) ",
35  
36 =1 plot sqrt(a1313)(vertical S-wave velocity)
37  
38 =2 plot (v_Ph-v_Pv)/v_Pv
39  
40 =3 plot (a1212-a1313)/(2*a1313) = gamma
41  
42 gedge=0.0 gray to draw fixed edges (in interval [0.0,1.0])
43  
44 gtri=1.0 gray to draw non-fixed edges of triangles
45  
46 put negative number for not drawing
47  
48 gmin=0.0 min gray to shade triangles (in interval [0.0,1.0])
49  
50 gmax=1.0 max gray to shade triangles (in interval [0.0,1.0])
51  
52 pgmin=minimum p(x,z) p(x,y)-value corresponding to gmin
53  
54 pgmax=maximum p(x,z) p(x,y)-value corresponding to gmax
55  
56 xbox=1.5 offset in inches of left side of axes box
57  
58 ybox=1.5 offset in inches of bottom side of axes box
59  
60 wbox=6.0 width in inches of axes box
61  
62 hbox=8.0 height in inches of axes box
63  
64 xbeg=xmin value at which x axis begins
65  
66 xend=xmax value at which x axis ends
67  
68 dxnum=0.0 numbered tic interval on x axis (0.0 for automatic)
69  
70 fxnum=xmin first numbered tic on x axis (used if dxnum not 0.0)
71  
72 nxtic=1 number of tics per numbered tic on x axis
73  
74 gridx=none grid lines on x axis - none, dot, dash, or solid
75  
76 labelx= label on x axis
77  
78 zbeg=zmin value at which z axis begins
79  
80 zend=zmax value at which z axis ends
81  
82 dznum=0.0 numbered tic interval on z axis (0.0 for automatic)
83  
84 fznum=zmin first numbered tic on z axis (used if dynum not 0.0)
85  
86 nztic=1 number of tics per numbered tic on z axis
87  
88 gridz=none grid lines on z axis - none, dot, dash, or solid
89  
90 labelz= label on z axis
91  
92 labelfont=Helvetica font name for axes labels
93  
94 labelsize=12 font size for axes labels
95  
96 title= title of plot
97  
98 titlecolor=black color of title
99  
100 axescolor=black color of axes
101  
102 gridcolor=black color of grid ",
103  
104 titlefont=Helvetica-Bold font name for title
105  
106 titlesize=24 font size for title
107  
108 style=seismic normal (z axis horizontal, x axis vertical) or
109  
110 seismic (z axis vertical, x axis horizontal)
111  
112  
113  
114  
115  
116  
117  
118 Author: Dave Hale, Colorado School of Mines, 10/18/90
119  
120 modified: Andreas Rueger, Colorado School of Mines, 01/25/94
121  
122  
123  
124  
125  
126 =head2 User's notes (Juan Lorenzo)
127 untested
128  
129 =cut
130  
131 =head2 CHANGES and their DATES
132  
133 =cut
134  
135 use Moose;
136 our $VERSION = '0.0.1';
137  
138 =head2 Import packages
139  
140 =cut
141  
142 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
143  
144 use App::SeismicUnixGui::misc::SeismicUnix
145 qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
146 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
147  
148 =head2 instantiation of packages
149  
150 =cut
151  
152 my $get = L_SU_global_constants->new();
153 my $Project = Project_config->new();
154 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
155 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
156 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
157  
158 my $var = $get->var();
159 my $on = $var->{_on};
160 my $off = $var->{_off};
161 my $true = $var->{_true};
162 my $false = $var->{_false};
163 my $empty_string = $var->{_empty_string};
164  
165 =head2 Encapsulated
166 hash of private variables
167  
168 =cut
169  
170 my $elaps = {
171 _axescolor => '',
172 _dxnum => '',
173 _dznum => '',
174 _fxnum => '',
175 _fznum => '',
176 _gedge => '',
177 _gmax => '',
178 _gmin => '',
179 _gridcolor => '',
180 _gridx => '',
181 _gridz => '',
182 _gtri => '',
183 _hbox => '',
184 _labelfont => '',
185 _labelsize => '',
186 _labelx => '',
187 _labelz => '',
188 _nxtic => '',
189 _nztic => '',
190 _p => '',
191 _pgmax => '',
192 _pgmin => '',
193 _style => '',
194 _title => '',
195 _titlecolor => '',
196 _titlefont => '',
197 _titlesize => '',
198 _wbox => '',
199 _xbeg => '',
200 _xbox => '',
201 _xend => '',
202 _ybox => '',
203 _zbeg => '',
204 _zend => '',
205 _Step => '',
206 _note => '',
207  
208 };
209  
210 =head2 sub Step
211  
212 collects switches and assembles bash instructions
213 by adding the program name
214  
215 =cut
216  
217 sub Step {
218  
219 $elaps->{_Step} = 'elaps' . $elaps->{_Step};
220 return ( $elaps->{_Step} );
221  
222 }
223  
224 =head2 sub note
225  
226 collects switches and assembles bash instructions
227 by adding the program name
228  
229 =cut
230  
231 sub note {
232  
233 $elaps->{_note} = 'elaps' . $elaps->{_note};
234 return ( $elaps->{_note} );
235  
236 }
237  
238 =head2 sub clear
239  
240 =cut
241  
242 sub clear {
243  
244 $elaps->{_axescolor} = '';
245 $elaps->{_dxnum} = '';
246 $elaps->{_dznum} = '';
247 $elaps->{_fxnum} = '';
248 $elaps->{_fznum} = '';
249 $elaps->{_gedge} = '';
250 $elaps->{_gmax} = '';
251 $elaps->{_gmin} = '';
252 $elaps->{_gridcolor} = '';
253 $elaps->{_gridx} = '';
254 $elaps->{_gridz} = '';
255 $elaps->{_gtri} = '';
256 $elaps->{_hbox} = '';
257 $elaps->{_labelfont} = '';
258 $elaps->{_labelsize} = '';
259 $elaps->{_labelx} = '';
260 $elaps->{_labelz} = '';
261 $elaps->{_nxtic} = '';
262 $elaps->{_nztic} = '';
263 $elaps->{_p} = '';
264 $elaps->{_pgmax} = '';
265 $elaps->{_pgmin} = '';
266 $elaps->{_style} = '';
267 $elaps->{_title} = '';
268 $elaps->{_titlecolor} = '';
269 $elaps->{_titlefont} = '';
270 $elaps->{_titlesize} = '';
271 $elaps->{_wbox} = '';
272 $elaps->{_xbeg} = '';
273 $elaps->{_xbox} = '';
274 $elaps->{_xend} = '';
275 $elaps->{_ybox} = '';
276 $elaps->{_zbeg} = '';
277 $elaps->{_zend} = '';
278 $elaps->{_Step} = '';
279 $elaps->{_note} = '';
280 }
281  
282 =head2 sub axescolor
283  
284  
285 =cut
286  
287 sub axescolor {
288  
289 my ( $self, $axescolor ) = @_;
290 if ( $axescolor ne $empty_string ) {
291  
292 $elaps->{_axescolor} = $axescolor;
293 $elaps->{_note} =
294 $elaps->{_note} . ' axescolor=' . $elaps->{_axescolor};
295 $elaps->{_Step} =
296 $elaps->{_Step} . ' axescolor=' . $elaps->{_axescolor};
297  
298 }
299 else {
300 print("elaps, axescolor, missing axescolor,\n");
301 }
302 }
303  
304 =head2 sub dxnum
305  
306  
307 =cut
308  
309 sub dxnum {
310  
311 my ( $self, $dxnum ) = @_;
312 if ( $dxnum ne $empty_string ) {
313  
314 $elaps->{_dxnum} = $dxnum;
315 $elaps->{_note} = $elaps->{_note} . ' dxnum=' . $elaps->{_dxnum};
316 $elaps->{_Step} = $elaps->{_Step} . ' dxnum=' . $elaps->{_dxnum};
317  
318 }
319 else {
320 print("elaps, dxnum, missing dxnum,\n");
321 }
322 }
323  
324 =head2 sub dznum
325  
326  
327 =cut
328  
329 sub dznum {
330  
331 my ( $self, $dznum ) = @_;
332 if ( $dznum ne $empty_string ) {
333  
334 $elaps->{_dznum} = $dznum;
335 $elaps->{_note} = $elaps->{_note} . ' dznum=' . $elaps->{_dznum};
336 $elaps->{_Step} = $elaps->{_Step} . ' dznum=' . $elaps->{_dznum};
337  
338 }
339 else {
340 print("elaps, dznum, missing dznum,\n");
341 }
342 }
343  
344 =head2 sub fxnum
345  
346  
347 =cut
348  
349 sub fxnum {
350  
351 my ( $self, $fxnum ) = @_;
352 if ( $fxnum ne $empty_string ) {
353  
354 $elaps->{_fxnum} = $fxnum;
355 $elaps->{_note} = $elaps->{_note} . ' fxnum=' . $elaps->{_fxnum};
356 $elaps->{_Step} = $elaps->{_Step} . ' fxnum=' . $elaps->{_fxnum};
357  
358 }
359 else {
360 print("elaps, fxnum, missing fxnum,\n");
361 }
362 }
363  
364 =head2 sub fznum
365  
366  
367 =cut
368  
369 sub fznum {
370  
371 my ( $self, $fznum ) = @_;
372 if ( $fznum ne $empty_string ) {
373  
374 $elaps->{_fznum} = $fznum;
375 $elaps->{_note} = $elaps->{_note} . ' fznum=' . $elaps->{_fznum};
376 $elaps->{_Step} = $elaps->{_Step} . ' fznum=' . $elaps->{_fznum};
377  
378 }
379 else {
380 print("elaps, fznum, missing fznum,\n");
381 }
382 }
383  
384 =head2 sub gedge
385  
386  
387 =cut
388  
389 sub gedge {
390  
391 my ( $self, $gedge ) = @_;
392 if ( $gedge ne $empty_string ) {
393  
394 $elaps->{_gedge} = $gedge;
395 $elaps->{_note} = $elaps->{_note} . ' gedge=' . $elaps->{_gedge};
396 $elaps->{_Step} = $elaps->{_Step} . ' gedge=' . $elaps->{_gedge};
397  
398 }
399 else {
400 print("elaps, gedge, missing gedge,\n");
401 }
402 }
403  
404 =head2 sub gmax
405  
406  
407 =cut
408  
409 sub gmax {
410  
411 my ( $self, $gmax ) = @_;
412 if ( $gmax ne $empty_string ) {
413  
414 $elaps->{_gmax} = $gmax;
415 $elaps->{_note} = $elaps->{_note} . ' gmax=' . $elaps->{_gmax};
416 $elaps->{_Step} = $elaps->{_Step} . ' gmax=' . $elaps->{_gmax};
417  
418 }
419 else {
420 print("elaps, gmax, missing gmax,\n");
421 }
422 }
423  
424 =head2 sub gmin
425  
426  
427 =cut
428  
429 sub gmin {
430  
431 my ( $self, $gmin ) = @_;
432 if ( $gmin ne $empty_string ) {
433  
434 $elaps->{_gmin} = $gmin;
435 $elaps->{_note} = $elaps->{_note} . ' gmin=' . $elaps->{_gmin};
436 $elaps->{_Step} = $elaps->{_Step} . ' gmin=' . $elaps->{_gmin};
437  
438 }
439 else {
440 print("elaps, gmin, missing gmin,\n");
441 }
442 }
443  
444 =head2 sub gridcolor
445  
446  
447 =cut
448  
449 sub gridcolor {
450  
451 my ( $self, $gridcolor ) = @_;
452 if ( $gridcolor ne $empty_string ) {
453  
454 $elaps->{_gridcolor} = $gridcolor;
455 $elaps->{_note} =
456 $elaps->{_note} . ' gridcolor=' . $elaps->{_gridcolor};
457 $elaps->{_Step} =
458 $elaps->{_Step} . ' gridcolor=' . $elaps->{_gridcolor};
459  
460 }
461 else {
462 print("elaps, gridcolor, missing gridcolor,\n");
463 }
464 }
465  
466 =head2 sub gridx
467  
468  
469 =cut
470  
471 sub gridx {
472  
473 my ( $self, $gridx ) = @_;
474 if ( $gridx ne $empty_string ) {
475  
476 $elaps->{_gridx} = $gridx;
477 $elaps->{_note} = $elaps->{_note} . ' gridx=' . $elaps->{_gridx};
478 $elaps->{_Step} = $elaps->{_Step} . ' gridx=' . $elaps->{_gridx};
479  
480 }
481 else {
482 print("elaps, gridx, missing gridx,\n");
483 }
484 }
485  
486 =head2 sub gridz
487  
488  
489 =cut
490  
491 sub gridz {
492  
493 my ( $self, $gridz ) = @_;
494 if ( $gridz ne $empty_string ) {
495  
496 $elaps->{_gridz} = $gridz;
497 $elaps->{_note} = $elaps->{_note} . ' gridz=' . $elaps->{_gridz};
498 $elaps->{_Step} = $elaps->{_Step} . ' gridz=' . $elaps->{_gridz};
499  
500 }
501 else {
502 print("elaps, gridz, missing gridz,\n");
503 }
504 }
505  
506 =head2 sub gtri
507  
508  
509 =cut
510  
511 sub gtri {
512  
513 my ( $self, $gtri ) = @_;
514 if ( $gtri ne $empty_string ) {
515  
516 $elaps->{_gtri} = $gtri;
517 $elaps->{_note} = $elaps->{_note} . ' gtri=' . $elaps->{_gtri};
518 $elaps->{_Step} = $elaps->{_Step} . ' gtri=' . $elaps->{_gtri};
519  
520 }
521 else {
522 print("elaps, gtri, missing gtri,\n");
523 }
524 }
525  
526 =head2 sub hbox
527  
528  
529 =cut
530  
531 sub hbox {
532  
533 my ( $self, $hbox ) = @_;
534 if ( $hbox ne $empty_string ) {
535  
536 $elaps->{_hbox} = $hbox;
537 $elaps->{_note} = $elaps->{_note} . ' hbox=' . $elaps->{_hbox};
538 $elaps->{_Step} = $elaps->{_Step} . ' hbox=' . $elaps->{_hbox};
539  
540 }
541 else {
542 print("elaps, hbox, missing hbox,\n");
543 }
544 }
545  
546 =head2 sub labelfont
547  
548  
549 =cut
550  
551 sub labelfont {
552  
553 my ( $self, $labelfont ) = @_;
554 if ( $labelfont ne $empty_string ) {
555  
556 $elaps->{_labelfont} = $labelfont;
557 $elaps->{_note} =
558 $elaps->{_note} . ' labelfont=' . $elaps->{_labelfont};
559 $elaps->{_Step} =
560 $elaps->{_Step} . ' labelfont=' . $elaps->{_labelfont};
561  
562 }
563 else {
564 print("elaps, labelfont, missing labelfont,\n");
565 }
566 }
567  
568 =head2 sub labelsize
569  
570  
571 =cut
572  
573 sub labelsize {
574  
575 my ( $self, $labelsize ) = @_;
576 if ( $labelsize ne $empty_string ) {
577  
578 $elaps->{_labelsize} = $labelsize;
579 $elaps->{_note} =
580 $elaps->{_note} . ' labelsize=' . $elaps->{_labelsize};
581 $elaps->{_Step} =
582 $elaps->{_Step} . ' labelsize=' . $elaps->{_labelsize};
583  
584 }
585 else {
586 print("elaps, labelsize, missing labelsize,\n");
587 }
588 }
589  
590 =head2 sub labelx
591  
592  
593 =cut
594  
595 sub labelx {
596  
597 my ( $self, $labelx ) = @_;
598 if ( $labelx ne $empty_string ) {
599  
600 $elaps->{_labelx} = $labelx;
601 $elaps->{_note} = $elaps->{_note} . ' labelx=' . $elaps->{_labelx};
602 $elaps->{_Step} = $elaps->{_Step} . ' labelx=' . $elaps->{_labelx};
603  
604 }
605 else {
606 print("elaps, labelx, missing labelx,\n");
607 }
608 }
609  
610 =head2 sub labelz
611  
612  
613 =cut
614  
615 sub labelz {
616  
617 my ( $self, $labelz ) = @_;
618 if ( $labelz ne $empty_string ) {
619  
620 $elaps->{_labelz} = $labelz;
621 $elaps->{_note} = $elaps->{_note} . ' labelz=' . $elaps->{_labelz};
622 $elaps->{_Step} = $elaps->{_Step} . ' labelz=' . $elaps->{_labelz};
623  
624 }
625 else {
626 print("elaps, labelz, missing labelz,\n");
627 }
628 }
629  
630 =head2 sub nxtic
631  
632  
633 =cut
634  
635 sub nxtic {
636  
637 my ( $self, $nxtic ) = @_;
638 if ( $nxtic ne $empty_string ) {
639  
640 $elaps->{_nxtic} = $nxtic;
641 $elaps->{_note} = $elaps->{_note} . ' nxtic=' . $elaps->{_nxtic};
642 $elaps->{_Step} = $elaps->{_Step} . ' nxtic=' . $elaps->{_nxtic};
643  
644 }
645 else {
646 print("elaps, nxtic, missing nxtic,\n");
647 }
648 }
649  
650 =head2 sub nztic
651  
652  
653 =cut
654  
655 sub nztic {
656  
657 my ( $self, $nztic ) = @_;
658 if ( $nztic ne $empty_string ) {
659  
660 $elaps->{_nztic} = $nztic;
661 $elaps->{_note} = $elaps->{_note} . ' nztic=' . $elaps->{_nztic};
662 $elaps->{_Step} = $elaps->{_Step} . ' nztic=' . $elaps->{_nztic};
663  
664 }
665 else {
666 print("elaps, nztic, missing nztic,\n");
667 }
668 }
669  
670 =head2 sub p
671  
672  
673 =cut
674  
675 sub p {
676  
677 my ( $self, $p ) = @_;
678 if ( $p ne $empty_string ) {
679  
680 $elaps->{_p} = $p;
681 $elaps->{_note} = $elaps->{_note} . ' p=' . $elaps->{_p};
682 $elaps->{_Step} = $elaps->{_Step} . ' p=' . $elaps->{_p};
683  
684 }
685 else {
686 print("elaps, p, missing p,\n");
687 }
688 }
689  
690 =head2 sub pgmax
691  
692  
693 =cut
694  
695 sub pgmax {
696  
697 my ( $self, $pgmax ) = @_;
698 if ( $pgmax ne $empty_string ) {
699  
700 $elaps->{_pgmax} = $pgmax;
701 $elaps->{_note} = $elaps->{_note} . ' pgmax=' . $elaps->{_pgmax};
702 $elaps->{_Step} = $elaps->{_Step} . ' pgmax=' . $elaps->{_pgmax};
703  
704 }
705 else {
706 print("elaps, pgmax, missing pgmax,\n");
707 }
708 }
709  
710 =head2 sub pgmin
711  
712  
713 =cut
714  
715 sub pgmin {
716  
717 my ( $self, $pgmin ) = @_;
718 if ( $pgmin ne $empty_string ) {
719  
720 $elaps->{_pgmin} = $pgmin;
721 $elaps->{_note} = $elaps->{_note} . ' pgmin=' . $elaps->{_pgmin};
722 $elaps->{_Step} = $elaps->{_Step} . ' pgmin=' . $elaps->{_pgmin};
723  
724 }
725 else {
726 print("elaps, pgmin, missing pgmin,\n");
727 }
728 }
729  
730 =head2 sub style
731  
732  
733 =cut
734  
735 sub style {
736  
737 my ( $self, $style ) = @_;
738 if ( $style ne $empty_string ) {
739  
740 $elaps->{_style} = $style;
741 $elaps->{_note} = $elaps->{_note} . ' style=' . $elaps->{_style};
742 $elaps->{_Step} = $elaps->{_Step} . ' style=' . $elaps->{_style};
743  
744 }
745 else {
746 print("elaps, style, missing style,\n");
747 }
748 }
749  
750 =head2 sub title
751  
752  
753 =cut
754  
755 sub title {
756  
757 my ( $self, $title ) = @_;
758 if ( $title ne $empty_string ) {
759  
760 $elaps->{_title} = $title;
761 $elaps->{_note} = $elaps->{_note} . ' title=' . $elaps->{_title};
762 $elaps->{_Step} = $elaps->{_Step} . ' title=' . $elaps->{_title};
763  
764 }
765 else {
766 print("elaps, title, missing title,\n");
767 }
768 }
769  
770 =head2 sub titlecolor
771  
772  
773 =cut
774  
775 sub titlecolor {
776  
777 my ( $self, $titlecolor ) = @_;
778 if ( $titlecolor ne $empty_string ) {
779  
780 $elaps->{_titlecolor} = $titlecolor;
781 $elaps->{_note} =
782 $elaps->{_note} . ' titlecolor=' . $elaps->{_titlecolor};
783 $elaps->{_Step} =
784 $elaps->{_Step} . ' titlecolor=' . $elaps->{_titlecolor};
785  
786 }
787 else {
788 print("elaps, titlecolor, missing titlecolor,\n");
789 }
790 }
791  
792 =head2 sub titlefont
793  
794  
795 =cut
796  
797 sub titlefont {
798  
799 my ( $self, $titlefont ) = @_;
800 if ( $titlefont ne $empty_string ) {
801  
802 $elaps->{_titlefont} = $titlefont;
803 $elaps->{_note} =
804 $elaps->{_note} . ' titlefont=' . $elaps->{_titlefont};
805 $elaps->{_Step} =
806 $elaps->{_Step} . ' titlefont=' . $elaps->{_titlefont};
807  
808 }
809 else {
810 print("elaps, titlefont, missing titlefont,\n");
811 }
812 }
813  
814 =head2 sub titlesize
815  
816  
817 =cut
818  
819 sub titlesize {
820  
821 my ( $self, $titlesize ) = @_;
822 if ( $titlesize ne $empty_string ) {
823  
824 $elaps->{_titlesize} = $titlesize;
825 $elaps->{_note} =
826 $elaps->{_note} . ' titlesize=' . $elaps->{_titlesize};
827 $elaps->{_Step} =
828 $elaps->{_Step} . ' titlesize=' . $elaps->{_titlesize};
829  
830 }
831 else {
832 print("elaps, titlesize, missing titlesize,\n");
833 }
834 }
835  
836 =head2 sub wbox
837  
838  
839 =cut
840  
841 sub wbox {
842  
843 my ( $self, $wbox ) = @_;
844 if ( $wbox ne $empty_string ) {
845  
846 $elaps->{_wbox} = $wbox;
847 $elaps->{_note} = $elaps->{_note} . ' wbox=' . $elaps->{_wbox};
848 $elaps->{_Step} = $elaps->{_Step} . ' wbox=' . $elaps->{_wbox};
849  
850 }
851 else {
852 print("elaps, wbox, missing wbox,\n");
853 }
854 }
855  
856 =head2 sub xbeg
857  
858  
859 =cut
860  
861 sub xbeg {
862  
863 my ( $self, $xbeg ) = @_;
864 if ( $xbeg ne $empty_string ) {
865  
866 $elaps->{_xbeg} = $xbeg;
867 $elaps->{_note} = $elaps->{_note} . ' xbeg=' . $elaps->{_xbeg};
868 $elaps->{_Step} = $elaps->{_Step} . ' xbeg=' . $elaps->{_xbeg};
869  
870 }
871 else {
872 print("elaps, xbeg, missing xbeg,\n");
873 }
874 }
875  
876 =head2 sub xbox
877  
878  
879 =cut
880  
881 sub xbox {
882  
883 my ( $self, $xbox ) = @_;
884 if ( $xbox ne $empty_string ) {
885  
886 $elaps->{_xbox} = $xbox;
887 $elaps->{_note} = $elaps->{_note} . ' xbox=' . $elaps->{_xbox};
888 $elaps->{_Step} = $elaps->{_Step} . ' xbox=' . $elaps->{_xbox};
889  
890 }
891 else {
892 print("elaps, xbox, missing xbox,\n");
893 }
894 }
895  
896 =head2 sub xend
897  
898  
899 =cut
900  
901 sub xend {
902  
903 my ( $self, $xend ) = @_;
904 if ( $xend ne $empty_string ) {
905  
906 $elaps->{_xend} = $xend;
907 $elaps->{_note} = $elaps->{_note} . ' xend=' . $elaps->{_xend};
908 $elaps->{_Step} = $elaps->{_Step} . ' xend=' . $elaps->{_xend};
909  
910 }
911 else {
912 print("elaps, xend, missing xend,\n");
913 }
914 }
915  
916 =head2 sub ybox
917  
918  
919 =cut
920  
921 sub ybox {
922  
923 my ( $self, $ybox ) = @_;
924 if ( $ybox ne $empty_string ) {
925  
926 $elaps->{_ybox} = $ybox;
927 $elaps->{_note} = $elaps->{_note} . ' ybox=' . $elaps->{_ybox};
928 $elaps->{_Step} = $elaps->{_Step} . ' ybox=' . $elaps->{_ybox};
929  
930 }
931 else {
932 print("elaps, ybox, missing ybox,\n");
933 }
934 }
935  
936 =head2 sub zbeg
937  
938  
939 =cut
940  
941 sub zbeg {
942  
943 my ( $self, $zbeg ) = @_;
944 if ( $zbeg ne $empty_string ) {
945  
946 $elaps->{_zbeg} = $zbeg;
947 $elaps->{_note} = $elaps->{_note} . ' zbeg=' . $elaps->{_zbeg};
948 $elaps->{_Step} = $elaps->{_Step} . ' zbeg=' . $elaps->{_zbeg};
949  
950 }
951 else {
952 print("elaps, zbeg, missing zbeg,\n");
953 }
954 }
955  
956 =head2 sub zend
957  
958  
959 =cut
960  
961 sub zend {
962  
963 my ( $self, $zend ) = @_;
964 if ( $zend ne $empty_string ) {
965  
966 $elaps->{_zend} = $zend;
967 $elaps->{_note} = $elaps->{_note} . ' zend=' . $elaps->{_zend};
968 $elaps->{_Step} = $elaps->{_Step} . ' zend=' . $elaps->{_zend};
969  
970 }
971 else {
972 print("elaps, zend, missing zend,\n");
973 }
974 }
975  
976 =head2 sub get_max_index
977  
978 max index = number of input variables -1
979
980 =cut
981  
982 sub get_max_index {
983 my ($self) = @_;
984 my $max_index = 33;
985  
986 return ($max_index);
987 }
988  
989 1;