lib/App/SeismicUnixGui/sunix/model/sukdsyn2d.pm untested

filter: Statementstmt 0.0% 0 / 286 Branchbran 0.0% 0 / 72 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 44 Podpod 0.0% 0 / 40 totaltotal 0.0% 0 / 442 CC 37 SCAR 17.2
CC
37
Cov
0%
angmax
6.0
aperx
6.0
ds
6.0
CRAP 5.6
1 package App::SeismicUnixGui::sunix::model::sukdsyn2d;
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 SUKDSYN2D - Kirchhoff Depth SYNthesis of 2D seismic data from a
25  
26 migrated seismic section
27  
28  
29  
30 sukdsyn2d infile outfile [parameters]
31  
32  
33  
34 Required parameters:
35  
36 infile is stdin input migrated section
37  
38 outfile is stdout file for output seismic traces
39  
40 ttfile= file for input traveltime tables
41  
42  
43  
44 The following 9 parameters describe traveltime tables:
45  
46 fzt= first depth sample
47  
48 nzt= number of depth samples
49  
50 dzt= depth interval
51  
52 fxt= first lateral sample
53  
54 nxt= number of lateral samples
55  
56 dxt= lateral interval
57  
58 fs= x-coordinate of first source
59  
60 ns= number of sources
61  
62 ds= x-coordinate increment of sources
63  
64  
65  
66 The following 6 parameters describe the migration section:
67  
68 fz= first z-coordinate in migrated section
69  
70 dz= vertical spacing of migrated section
71  
72 nz= number of depth points in migrated section
73  
74 fx= first x-coordinate of migrated section
75  
76 dx= horizontal spacing of migrated section
77  
78 nx= number of lateral points in migrated section
79  
80  
81  
82 Optional Parameters:
83  
84 nt=501 number of time samples
85  
86 dt=0.004 time sampling interval (sec)
87  
88 ft=0.0 first time (sec)
89  
90 nxo=1 number of source-receiver offsets
91  
92 dxo=25 offset sampling interval
93  
94 fxo=0.0 first offset
95  
96 nxs=101 number of shotpoints
97  
98 dxs=25 shotpoint sampling interval
99  
100 fxs=0.0 first shotpoint
101  
102 fmax=1/(4*dt) maximum frequency in migration section (Hz)
103  
104 aperx=nxt*dxt/2 modeling lateral aperature
105  
106 angmax=60 modeling angle aperature from vertical
107  
108 v0=1500(m/s) reference velocity value at surface
109  
110 dvz=0.0 reference velocity vertical gradient
111  
112 ls=1 flag for line source
113  
114 jpfile=stderr job print file name
115  
116 mtr=100 print verbal information at every mtr traces
117  
118  
119  
120 Notes:
121  
122 This program takes a migrated seismic section and a set of travel time
123  
124 tables generated using rayt2d for a specific background velocity model
125  
126 and generates synthetic seismic data in the form of common shot gathers.
127  
128 (Common offset gathers may be generated by using nxo=1.) (Demigration.)
129  
130  
131  
132 This program is a tool which may be used for the migration residual
133  
134 statics estimation technique of Tjan, Audebert, and Larner 1994.
135  
136  
137  
138 1. The traveltime tables are generated by program rayt2d (or other ones)
139  
140 on relatively coarse grids, with dimension ns*nxt*nzt. In the
141  
142 modeling process, traveltimes are interpolated into shot/geophone
143  
144 positions and migration section grids.
145  
146 2. The input migration section must be an array of binary floats (no SU
147  
148 headers). ",
149  
150 3. The synthesized traces are output in common-shot gathers in SU format.
151  
152 4. The memory requirement for this program is about
153  
154 (ns*nxt*nzt+nx*nz+4*nr*nzt+3*nxt*nzt)*4 bytes
155  
156 where nr = 1+min(nxt*dxt,0.5*offmax+aperx)/dxo.
157  
158  
159  
160  
161  
162 Author: CWP: Zhenyue Liu, 07/24/95, Colorado School of Mines
163  
164  
165  
166 References:
167  
168  
169  
170 Tjan, T., F. Audebert, and K. Larner, 1994,
171  
172 Prestack migration for residual statics estimation in complex media
173  
174 (Appeared in 1994 Project Review, CWP-153.)
175  
176  
177  
178 Tjan, T., 1995, Residual statics estimation for data from structurally
179  
180 complex areas using prestack depth migration: M.Sc. thesis, Colorado
181  
182 School of Mines. (In progress.)
183  
184  
185  
186 Larner, K., and Tjan, T., 1995, Simultaneous statics and velocity
187  
188 estimation for data from structurally complex areas.
189  
190 (Appeared in 1995 Project Review, CWP-185.)
191  
192  
193  
194  
195  
196 Trace header fields set: ns, dt, delrt, tracl, tracr, fldr, tracf
197  
198 offset, sx, gx, trid, counit
199  
200  
201  
202  
203  
204 =head2 User's notes (Juan Lorenzo)
205 untested
206  
207 =cut
208  
209  
210 =head2 CHANGES and their DATES
211  
212 =cut
213  
214 use Moose;
215 our $VERSION = '0.0.1';
216  
217  
218 =head2 Import packages
219  
220 =cut
221  
222 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
223  
224 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
225 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
226  
227  
228 =head2 instantiation of packages
229  
230 =cut
231  
232 my $get = L_SU_global_constants->new();
233 my $Project = Project_config->new();
234 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
235 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
236 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
237  
238 my $var = $get->var();
239 my $on = $var->{_on};
240 my $off = $var->{_off};
241 my $true = $var->{_true};
242 my $false = $var->{_false};
243 my $empty_string = $var->{_empty_string};
244  
245 =head2 Encapsulated
246 hash of private variables
247  
248 =cut
249  
250 my $sukdsyn2d = {
251 _angmax => '',
252 _aperx => '',
253 _ds => '',
254 _dt => '',
255 _dvz => '',
256 _dx => '',
257 _dxo => '',
258 _dxs => '',
259 _dxt => '',
260 _dz => '',
261 _dzt => '',
262 _fmax => '',
263 _fs => '',
264 _ft => '',
265 _fx => '',
266 _fxo => '',
267 _fxs => '',
268 _fxt => '',
269 _fz => '',
270 _fzt => '',
271 _infile => '',
272 _jpfile => '',
273 _ls => '',
274 _mtr => '',
275 _nr => '',
276 _ns => '',
277 _nt => '',
278 _nx => '',
279 _nxo => '',
280 _nxs => '',
281 _nxt => '',
282 _nz => '',
283 _nzt => '',
284 _outfile => '',
285 _ttfile => '',
286 _v0 => '',
287 _Step => '',
288 _note => '',
289  
290 };
291  
292 =head2 sub Step
293  
294 collects switches and assembles bash instructions
295 by adding the program name
296  
297 =cut
298  
299 sub Step {
300  
301 $sukdsyn2d->{_Step} = 'sukdsyn2d'.$sukdsyn2d->{_Step};
302 return ( $sukdsyn2d->{_Step} );
303  
304 }
305  
306  
307 =head2 sub note
308  
309 collects switches and assembles bash instructions
310 by adding the program name
311  
312 =cut
313  
314 sub note {
315  
316 $sukdsyn2d->{_note} = 'sukdsyn2d'.$sukdsyn2d->{_note};
317 return ( $sukdsyn2d->{_note} );
318  
319 }
320  
321  
322  
323 =head2 sub clear
324  
325 =cut
326  
327 sub clear {
328  
329 $sukdsyn2d->{_angmax} = '';
330 $sukdsyn2d->{_aperx} = '';
331 $sukdsyn2d->{_ds} = '';
332 $sukdsyn2d->{_dt} = '';
333 $sukdsyn2d->{_dvz} = '';
334 $sukdsyn2d->{_dx} = '';
335 $sukdsyn2d->{_dxo} = '';
336 $sukdsyn2d->{_dxs} = '';
337 $sukdsyn2d->{_dxt} = '';
338 $sukdsyn2d->{_dz} = '';
339 $sukdsyn2d->{_dzt} = '';
340 $sukdsyn2d->{_fmax} = '';
341 $sukdsyn2d->{_fs} = '';
342 $sukdsyn2d->{_ft} = '';
343 $sukdsyn2d->{_fx} = '';
344 $sukdsyn2d->{_fxo} = '';
345 $sukdsyn2d->{_fxs} = '';
346 $sukdsyn2d->{_fxt} = '';
347 $sukdsyn2d->{_fz} = '';
348 $sukdsyn2d->{_fzt} = '';
349 $sukdsyn2d->{_infile} = '';
350 $sukdsyn2d->{_jpfile} = '';
351 $sukdsyn2d->{_ls} = '';
352 $sukdsyn2d->{_mtr} = '';
353 $sukdsyn2d->{_nr} = '';
354 $sukdsyn2d->{_ns} = '';
355 $sukdsyn2d->{_nt} = '';
356 $sukdsyn2d->{_nx} = '';
357 $sukdsyn2d->{_nxo} = '';
358 $sukdsyn2d->{_nxs} = '';
359 $sukdsyn2d->{_nxt} = '';
360 $sukdsyn2d->{_nz} = '';
361 $sukdsyn2d->{_nzt} = '';
362 $sukdsyn2d->{_outfile} = '';
363 $sukdsyn2d->{_ttfile} = '';
364 $sukdsyn2d->{_v0} = '';
365 $sukdsyn2d->{_Step} = '';
366 $sukdsyn2d->{_note} = '';
367 }
368  
369  
370 =head2 sub angmax
371  
372  
373 =cut
374  
375 sub angmax {
376  
377 my ( $self,$angmax ) = @_;
378 if ( $angmax ne $empty_string ) {
379  
380 $sukdsyn2d->{_angmax} = $angmax;
381 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' angmax='.$sukdsyn2d->{_angmax};
382 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' angmax='.$sukdsyn2d->{_angmax};
383  
384 } else {
385 print("sukdsyn2d, angmax, missing angmax,\n");
386 }
387 }
388  
389  
390 =head2 sub aperx
391  
392  
393 =cut
394  
395 sub aperx {
396  
397 my ( $self,$aperx ) = @_;
398 if ( $aperx ne $empty_string ) {
399  
400 $sukdsyn2d->{_aperx} = $aperx;
401 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' aperx='.$sukdsyn2d->{_aperx};
402 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' aperx='.$sukdsyn2d->{_aperx};
403  
404 } else {
405 print("sukdsyn2d, aperx, missing aperx,\n");
406 }
407 }
408  
409  
410 =head2 sub ds
411  
412  
413 =cut
414  
415 sub ds {
416  
417 my ( $self,$ds ) = @_;
418 if ( $ds ne $empty_string ) {
419  
420 $sukdsyn2d->{_ds} = $ds;
421 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' ds='.$sukdsyn2d->{_ds};
422 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' ds='.$sukdsyn2d->{_ds};
423  
424 } else {
425 print("sukdsyn2d, ds, missing ds,\n");
426 }
427 }
428  
429  
430 =head2 sub dt
431  
432  
433 =cut
434  
435 sub dt {
436  
437 my ( $self,$dt ) = @_;
438 if ( $dt ne $empty_string ) {
439  
440 $sukdsyn2d->{_dt} = $dt;
441 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dt='.$sukdsyn2d->{_dt};
442 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dt='.$sukdsyn2d->{_dt};
443  
444 } else {
445 print("sukdsyn2d, dt, missing dt,\n");
446 }
447 }
448  
449  
450 =head2 sub dvz
451  
452  
453 =cut
454  
455 sub dvz {
456  
457 my ( $self,$dvz ) = @_;
458 if ( $dvz ne $empty_string ) {
459  
460 $sukdsyn2d->{_dvz} = $dvz;
461 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dvz='.$sukdsyn2d->{_dvz};
462 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dvz='.$sukdsyn2d->{_dvz};
463  
464 } else {
465 print("sukdsyn2d, dvz, missing dvz,\n");
466 }
467 }
468  
469  
470 =head2 sub dx
471  
472  
473 =cut
474  
475 sub dx {
476  
477 my ( $self,$dx ) = @_;
478 if ( $dx ne $empty_string ) {
479  
480 $sukdsyn2d->{_dx} = $dx;
481 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dx='.$sukdsyn2d->{_dx};
482 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dx='.$sukdsyn2d->{_dx};
483  
484 } else {
485 print("sukdsyn2d, dx, missing dx,\n");
486 }
487 }
488  
489  
490 =head2 sub dxo
491  
492  
493 =cut
494  
495 sub dxo {
496  
497 my ( $self,$dxo ) = @_;
498 if ( $dxo ne $empty_string ) {
499  
500 $sukdsyn2d->{_dxo} = $dxo;
501 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dxo='.$sukdsyn2d->{_dxo};
502 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dxo='.$sukdsyn2d->{_dxo};
503  
504 } else {
505 print("sukdsyn2d, dxo, missing dxo,\n");
506 }
507 }
508  
509  
510 =head2 sub dxs
511  
512  
513 =cut
514  
515 sub dxs {
516  
517 my ( $self,$dxs ) = @_;
518 if ( $dxs ne $empty_string ) {
519  
520 $sukdsyn2d->{_dxs} = $dxs;
521 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dxs='.$sukdsyn2d->{_dxs};
522 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dxs='.$sukdsyn2d->{_dxs};
523  
524 } else {
525 print("sukdsyn2d, dxs, missing dxs,\n");
526 }
527 }
528  
529  
530 =head2 sub dxt
531  
532  
533 =cut
534  
535 sub dxt {
536  
537 my ( $self,$dxt ) = @_;
538 if ( $dxt ne $empty_string ) {
539  
540 $sukdsyn2d->{_dxt} = $dxt;
541 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dxt='.$sukdsyn2d->{_dxt};
542 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dxt='.$sukdsyn2d->{_dxt};
543  
544 } else {
545 print("sukdsyn2d, dxt, missing dxt,\n");
546 }
547 }
548  
549  
550 =head2 sub dz
551  
552  
553 =cut
554  
555 sub dz {
556  
557 my ( $self,$dz ) = @_;
558 if ( $dz ne $empty_string ) {
559  
560 $sukdsyn2d->{_dz} = $dz;
561 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dz='.$sukdsyn2d->{_dz};
562 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dz='.$sukdsyn2d->{_dz};
563  
564 } else {
565 print("sukdsyn2d, dz, missing dz,\n");
566 }
567 }
568  
569  
570 =head2 sub dzt
571  
572  
573 =cut
574  
575 sub dzt {
576  
577 my ( $self,$dzt ) = @_;
578 if ( $dzt ne $empty_string ) {
579  
580 $sukdsyn2d->{_dzt} = $dzt;
581 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' dzt='.$sukdsyn2d->{_dzt};
582 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' dzt='.$sukdsyn2d->{_dzt};
583  
584 } else {
585 print("sukdsyn2d, dzt, missing dzt,\n");
586 }
587 }
588  
589  
590 =head2 sub fmax
591  
592  
593 =cut
594  
595 sub fmax {
596  
597 my ( $self,$fmax ) = @_;
598 if ( $fmax ne $empty_string ) {
599  
600 $sukdsyn2d->{_fmax} = $fmax;
601 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fmax='.$sukdsyn2d->{_fmax};
602 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fmax='.$sukdsyn2d->{_fmax};
603  
604 } else {
605 print("sukdsyn2d, fmax, missing fmax,\n");
606 }
607 }
608  
609  
610 =head2 sub fs
611  
612  
613 =cut
614  
615 sub fs {
616  
617 my ( $self,$fs ) = @_;
618 if ( $fs ne $empty_string ) {
619  
620 $sukdsyn2d->{_fs} = $fs;
621 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fs='.$sukdsyn2d->{_fs};
622 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fs='.$sukdsyn2d->{_fs};
623  
624 } else {
625 print("sukdsyn2d, fs, missing fs,\n");
626 }
627 }
628  
629  
630 =head2 sub ft
631  
632  
633 =cut
634  
635 sub ft {
636  
637 my ( $self,$ft ) = @_;
638 if ( $ft ne $empty_string ) {
639  
640 $sukdsyn2d->{_ft} = $ft;
641 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' ft='.$sukdsyn2d->{_ft};
642 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' ft='.$sukdsyn2d->{_ft};
643  
644 } else {
645 print("sukdsyn2d, ft, missing ft,\n");
646 }
647 }
648  
649  
650 =head2 sub fx
651  
652  
653 =cut
654  
655 sub fx {
656  
657 my ( $self,$fx ) = @_;
658 if ( $fx ne $empty_string ) {
659  
660 $sukdsyn2d->{_fx} = $fx;
661 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fx='.$sukdsyn2d->{_fx};
662 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fx='.$sukdsyn2d->{_fx};
663  
664 } else {
665 print("sukdsyn2d, fx, missing fx,\n");
666 }
667 }
668  
669  
670 =head2 sub fxo
671  
672  
673 =cut
674  
675 sub fxo {
676  
677 my ( $self,$fxo ) = @_;
678 if ( $fxo ne $empty_string ) {
679  
680 $sukdsyn2d->{_fxo} = $fxo;
681 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fxo='.$sukdsyn2d->{_fxo};
682 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fxo='.$sukdsyn2d->{_fxo};
683  
684 } else {
685 print("sukdsyn2d, fxo, missing fxo,\n");
686 }
687 }
688  
689  
690 =head2 sub fxs
691  
692  
693 =cut
694  
695 sub fxs {
696  
697 my ( $self,$fxs ) = @_;
698 if ( $fxs ne $empty_string ) {
699  
700 $sukdsyn2d->{_fxs} = $fxs;
701 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fxs='.$sukdsyn2d->{_fxs};
702 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fxs='.$sukdsyn2d->{_fxs};
703  
704 } else {
705 print("sukdsyn2d, fxs, missing fxs,\n");
706 }
707 }
708  
709  
710 =head2 sub fxt
711  
712  
713 =cut
714  
715 sub fxt {
716  
717 my ( $self,$fxt ) = @_;
718 if ( $fxt ne $empty_string ) {
719  
720 $sukdsyn2d->{_fxt} = $fxt;
721 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fxt='.$sukdsyn2d->{_fxt};
722 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fxt='.$sukdsyn2d->{_fxt};
723  
724 } else {
725 print("sukdsyn2d, fxt, missing fxt,\n");
726 }
727 }
728  
729  
730 =head2 sub fz
731  
732  
733 =cut
734  
735 sub fz {
736  
737 my ( $self,$fz ) = @_;
738 if ( $fz ne $empty_string ) {
739  
740 $sukdsyn2d->{_fz} = $fz;
741 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fz='.$sukdsyn2d->{_fz};
742 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fz='.$sukdsyn2d->{_fz};
743  
744 } else {
745 print("sukdsyn2d, fz, missing fz,\n");
746 }
747 }
748  
749  
750 =head2 sub fzt
751  
752  
753 =cut
754  
755 sub fzt {
756  
757 my ( $self,$fzt ) = @_;
758 if ( $fzt ne $empty_string ) {
759  
760 $sukdsyn2d->{_fzt} = $fzt;
761 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' fzt='.$sukdsyn2d->{_fzt};
762 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' fzt='.$sukdsyn2d->{_fzt};
763  
764 } else {
765 print("sukdsyn2d, fzt, missing fzt,\n");
766 }
767 }
768  
769  
770 =head2 sub infile
771  
772  
773 =cut
774  
775 sub infile {
776  
777 my ( $self,$infile ) = @_;
778 if ( $infile ne $empty_string ) {
779  
780 $sukdsyn2d->{_infile} = $infile;
781 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' infile='.$sukdsyn2d->{_infile};
782 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' infile='.$sukdsyn2d->{_infile};
783  
784 } else {
785 print("sukdsyn2d, infile, missing infile,\n");
786 }
787 }
788  
789  
790 =head2 sub jpfile
791  
792  
793 =cut
794  
795 sub jpfile {
796  
797 my ( $self,$jpfile ) = @_;
798 if ( $jpfile ne $empty_string ) {
799  
800 $sukdsyn2d->{_jpfile} = $jpfile;
801 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' jpfile='.$sukdsyn2d->{_jpfile};
802 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' jpfile='.$sukdsyn2d->{_jpfile};
803  
804 } else {
805 print("sukdsyn2d, jpfile, missing jpfile,\n");
806 }
807 }
808  
809  
810 =head2 sub ls
811  
812  
813 =cut
814  
815 sub ls {
816  
817 my ( $self,$ls ) = @_;
818 if ( $ls ne $empty_string ) {
819  
820 $sukdsyn2d->{_ls} = $ls;
821 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' ls='.$sukdsyn2d->{_ls};
822 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' ls='.$sukdsyn2d->{_ls};
823  
824 } else {
825 print("sukdsyn2d, ls, missing ls,\n");
826 }
827 }
828  
829  
830 =head2 sub mtr
831  
832  
833 =cut
834  
835 sub mtr {
836  
837 my ( $self,$mtr ) = @_;
838 if ( $mtr ne $empty_string ) {
839  
840 $sukdsyn2d->{_mtr} = $mtr;
841 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' mtr='.$sukdsyn2d->{_mtr};
842 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' mtr='.$sukdsyn2d->{_mtr};
843  
844 } else {
845 print("sukdsyn2d, mtr, missing mtr,\n");
846 }
847 }
848  
849  
850 =head2 sub nr
851  
852  
853 =cut
854  
855 sub nr {
856  
857 my ( $self,$nr ) = @_;
858 if ( $nr ne $empty_string ) {
859  
860 $sukdsyn2d->{_nr} = $nr;
861 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nr='.$sukdsyn2d->{_nr};
862 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nr='.$sukdsyn2d->{_nr};
863  
864 } else {
865 print("sukdsyn2d, nr, missing nr,\n");
866 }
867 }
868  
869  
870 =head2 sub ns
871  
872  
873 =cut
874  
875 sub ns {
876  
877 my ( $self,$ns ) = @_;
878 if ( $ns ne $empty_string ) {
879  
880 $sukdsyn2d->{_ns} = $ns;
881 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' ns='.$sukdsyn2d->{_ns};
882 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' ns='.$sukdsyn2d->{_ns};
883  
884 } else {
885 print("sukdsyn2d, ns, missing ns,\n");
886 }
887 }
888  
889  
890 =head2 sub nt
891  
892  
893 =cut
894  
895 sub nt {
896  
897 my ( $self,$nt ) = @_;
898 if ( $nt ne $empty_string ) {
899  
900 $sukdsyn2d->{_nt} = $nt;
901 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nt='.$sukdsyn2d->{_nt};
902 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nt='.$sukdsyn2d->{_nt};
903  
904 } else {
905 print("sukdsyn2d, nt, missing nt,\n");
906 }
907 }
908  
909  
910 =head2 sub nx
911  
912  
913 =cut
914  
915 sub nx {
916  
917 my ( $self,$nx ) = @_;
918 if ( $nx ne $empty_string ) {
919  
920 $sukdsyn2d->{_nx} = $nx;
921 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nx='.$sukdsyn2d->{_nx};
922 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nx='.$sukdsyn2d->{_nx};
923  
924 } else {
925 print("sukdsyn2d, nx, missing nx,\n");
926 }
927 }
928  
929  
930 =head2 sub nxo
931  
932  
933 =cut
934  
935 sub nxo {
936  
937 my ( $self,$nxo ) = @_;
938 if ( $nxo ne $empty_string ) {
939  
940 $sukdsyn2d->{_nxo} = $nxo;
941 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nxo='.$sukdsyn2d->{_nxo};
942 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nxo='.$sukdsyn2d->{_nxo};
943  
944 } else {
945 print("sukdsyn2d, nxo, missing nxo,\n");
946 }
947 }
948  
949  
950 =head2 sub nxs
951  
952  
953 =cut
954  
955 sub nxs {
956  
957 my ( $self,$nxs ) = @_;
958 if ( $nxs ne $empty_string ) {
959  
960 $sukdsyn2d->{_nxs} = $nxs;
961 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nxs='.$sukdsyn2d->{_nxs};
962 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nxs='.$sukdsyn2d->{_nxs};
963  
964 } else {
965 print("sukdsyn2d, nxs, missing nxs,\n");
966 }
967 }
968  
969  
970 =head2 sub nxt
971  
972  
973 =cut
974  
975 sub nxt {
976  
977 my ( $self,$nxt ) = @_;
978 if ( $nxt ne $empty_string ) {
979  
980 $sukdsyn2d->{_nxt} = $nxt;
981 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nxt='.$sukdsyn2d->{_nxt};
982 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nxt='.$sukdsyn2d->{_nxt};
983  
984 } else {
985 print("sukdsyn2d, nxt, missing nxt,\n");
986 }
987 }
988  
989  
990 =head2 sub nz
991  
992  
993 =cut
994  
995 sub nz {
996  
997 my ( $self,$nz ) = @_;
998 if ( $nz ne $empty_string ) {
999  
1000 $sukdsyn2d->{_nz} = $nz;
1001 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nz='.$sukdsyn2d->{_nz};
1002 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nz='.$sukdsyn2d->{_nz};
1003  
1004 } else {
1005 print("sukdsyn2d, nz, missing nz,\n");
1006 }
1007 }
1008  
1009  
1010 =head2 sub nzt
1011  
1012  
1013 =cut
1014  
1015 sub nzt {
1016  
1017 my ( $self,$nzt ) = @_;
1018 if ( $nzt ne $empty_string ) {
1019  
1020 $sukdsyn2d->{_nzt} = $nzt;
1021 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' nzt='.$sukdsyn2d->{_nzt};
1022 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' nzt='.$sukdsyn2d->{_nzt};
1023  
1024 } else {
1025 print("sukdsyn2d, nzt, missing nzt,\n");
1026 }
1027 }
1028  
1029  
1030 =head2 sub outfile
1031  
1032  
1033 =cut
1034  
1035 sub outfile {
1036  
1037 my ( $self,$outfile ) = @_;
1038 if ( $outfile ne $empty_string ) {
1039  
1040 $sukdsyn2d->{_outfile} = $outfile;
1041 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' outfile='.$sukdsyn2d->{_outfile};
1042 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' outfile='.$sukdsyn2d->{_outfile};
1043  
1044 } else {
1045 print("sukdsyn2d, outfile, missing outfile,\n");
1046 }
1047 }
1048
1049 =head2 sub ttfile
1050  
1051  
1052 =cut
1053  
1054 sub ttfile {
1055  
1056 my ( $self,$ttfile ) = @_;
1057 if ( $ttfile ne $empty_string ) {
1058  
1059 $sukdsyn2d->{_ttfile} = $ttfile;
1060 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' ttfile='.$sukdsyn2d->{_ttfile};
1061 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' ttfile='.$sukdsyn2d->{_ttfile};
1062  
1063 } else {
1064 print("sukdsyn2d, ttfile, missing ttfile,\n");
1065 }
1066 }
1067  
1068  
1069 =head2 sub v0
1070  
1071  
1072 =cut
1073  
1074 sub v0 {
1075  
1076 my ( $self,$v0 ) = @_;
1077 if ( $v0 ne $empty_string ) {
1078  
1079 $sukdsyn2d->{_v0} = $v0;
1080 $sukdsyn2d->{_note} = $sukdsyn2d->{_note}.' v0='.$sukdsyn2d->{_v0};
1081 $sukdsyn2d->{_Step} = $sukdsyn2d->{_Step}.' v0='.$sukdsyn2d->{_v0};
1082  
1083 } else {
1084 print("sukdsyn2d, v0, missing v0,\n");
1085 }
1086 }
1087  
1088  
1089 =head2 sub get_max_index
1090  
1091 max index = number of input variables -1
1092
1093 =cut
1094
1095 sub get_max_index {
1096 my ($self) = @_;
1097 my $max_index = 32;
1098  
1099 return($max_index);
1100 }
1101
1102
1103 1;