lib/App/SeismicUnixGui/sunix/datum/sudatumk2ds.pm untested

filter: Statementstmt 0.0% 0 / 307 Branchbran 0.0% 0 / 78 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 47 Podpod 0.0% 0 / 43 totaltotal 0.0% 0 / 475 CC 40 SCAR 17.3
CC
40
Cov
0%
angmax
6.0
antiali
6.0
aperx
6.0
CRAP 5.6
1 package App::SeismicUnixGui::sunix::datum::sudatumk2ds;
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 SUDATUMK2DS - Kirchhoff datuming of sources for 2D prestack data
25  
26 (input data are receiver gathers)
27  
28  
29  
30 sudatumk2ds infile= outfile= [parameters]
31  
32  
33  
34 Required parameters:
35  
36 infile=stdin file for input seismic traces
37  
38 outfile=stdout file for common offset migration output
39  
40 ttfile= file for input traveltime tables
41  
42 The following 9 parameters describe traveltime tables:
43  
44 fzt= first depth sample in traveltime table
45  
46 nzt= number of depth samples in traveltime table
47  
48 dzt= depth interval in traveltime table
49  
50 fxt= first lateral sample in traveltime table
51  
52 nxt= number of lateral samples in traveltime table
53  
54 dxt= lateral interval in traveltime table
55  
56 fs= x-coordinate of first source
57  
58 ns= number of sources
59  
60 ds= x-coordinate increment of sources
61  
62  
63  
64 fxi= x-coordinate of the first surface location
65  
66 dxi= horizontal spacing on surface
67  
68 nxi= number of input surface locations
69  
70 sgn= Sign of the datuming process (up=-1 or down=1)
71  
72  
73  
74 Optional Parameters:
75  
76 dt= or from header (dt) time sampling interval of input data
77  
78 ft= or from header (ft) first time sample of input data
79  
80 surf="0,0;99999,0" The first surface defined the recording surface
81  
82 surf="0,0;99999,0" and the second one, the new datum.
83  
84 "x1,z1;x2,z2;x3,z3;...
85  
86 fzo=fzt z-coordinate of first point in output trace
87  
88 dzo=0.2*dzt vertical spacing of output trace
89  
90 nzo=5*(nzt-1)+1 number of points in output trace ",
91  
92 fxso=fxt x-coordinate of first shot
93  
94 dxso=0.5*dxt shot horizontal spacing
95  
96 nxso=2*(nxt-1)+1 number of shots
97  
98 fxgo=fxt x-coordinate of first receiver
99  
100 exgo=fxgo+(nxgo-1)*dxgo x-coordinate of the last receiver
101  
102 dxgo=0.5*dxt receiver horizontal spacing
103  
104 nxgo=nxso number of receivers per shot
105  
106 fmax=0.25/dt frequency-highcut for input traces
107  
108 offmax=99999 maximum absolute offset allowed in migration
109  
110 aperx=nxt*dxt/2 migration lateral aperature
111  
112 angmax=60 migration angle aperature from vertical
113  
114 v0=1500(m/s) reference velocity value at surface
115  
116 dvz=0.0 reference velocity vertical gradient
117  
118 antiali=1 Antialiase filter (no-filter = 0)
119  
120 jpfile=stderr job print file name
121  
122 mtr=100 print verbal information at every mtr traces
123  
124 ntr=100000 maximum number of input traces to be migrated
125  
126  
127  
128 Notes:
129  
130 1. Traveltime tables were generated by program rayt2d (or other ones)
131  
132 on relatively coarse grids, with dimension ns*nxt*nzt. In the
133  
134 migration process, traveltimes are interpolated into shot/gephone
135  
136 positions and output grids.
137  
138 2. Input traces must be SU format and organized in common shot gathers
139  
140 3. If the offset value of an input trace is not in the offset array
141  
142 of output, the nearest one in the array is chosen.
143  
144 4. Amplitudes are computed using the reference velocity profile, v(z),
145  
146 specified by the parameters v0= and dvz=.
147  
148 5. Input traces must specify source and receiver positions via the header
149  
150 fields tr.sx and tr.gx. Offset is computed automatically.
151  
152  
153  
154  
155  
156 Author: Trino Salinas, 05/01/96, Colorado School of Mines
157  
158  
159  
160 This code is based on sukzmig2d.c written by Zhenyue Liu, 03/01/95.
161  
162 Subroutines from Dave Hale's modeling library were adapted in
163  
164 this code to define topography using cubic splines.
165  
166  
167  
168 This code implements a Kirchhoff extraplolation operator that allows to
169  
170 transfer data from one reference surface to another. The formula used in
171  
172 this application is a far field approximation of the Berryhill's original
173  
174 formula (Berryhill, 1979). This equation is the result of a stationary
175  
176 phase analysis to get an analog asymptotic expansion for the two-and-one
177  
178 half dimensional extrapolation formula (Bleistein, 1984).
179  
180  
181  
182 The extrapolation formula permits the downward continuation of upgoing
183  
184 waves and upward continuation of downgoing waves. For upward conti-
185  
186 nuation of upgoing waves and downward continuation of downgoing waves,
187  
188 the conjugate transpose of the equation is used (Bevc, 1993).
189  
190  
191  
192 References :
193  
194  
195  
196 Berryhill, J.R., 1979, Wave equation datuming: Geophysics,
197  
198 44, 1329--1344.
199  
200  
201  
202 _______________, 1984, Wave equation datuming before stack
203  
204 (short note) : Geophysics, 49, 2064--2067.
205  
206  
207  
208 Bevc, D., 1993, Data parallel wave equation datuming with
209  
210 irregular acquisition topography : 63rd Ann. Internat.
211  
212 Mtg., SEG, Expanded Abstracts, 197--200.
213  
214  
215  
216 Bleistein, N., 1984, Mathematical methods for wave phenomena,
217  
218 Academic Press Inc. (Harcourt Brace Jovanovich Publishers),
219  
220 New York.
221  
222  
223  
224 =head2 User's notes (Juan Lorenzo)
225 untested
226  
227 =cut
228  
229  
230 =head2 CHANGES and their DATES
231  
232 =cut
233  
234 use Moose;
235 our $VERSION = '0.0.1';
236  
237  
238 =head2 Import packages
239  
240 =cut
241  
242 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
243  
244 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
245 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
246  
247  
248 =head2 instantiation of packages
249  
250 =cut
251  
252 my $get = L_SU_global_constants->new();
253 my $Project = Project_config->new();
254 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
255 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
256 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
257  
258 my $var = $get->var();
259 my $on = $var->{_on};
260 my $off = $var->{_off};
261 my $true = $var->{_true};
262 my $false = $var->{_false};
263 my $empty_string = $var->{_empty_string};
264  
265 =head2 Encapsulated
266 hash of private variables
267  
268 =cut
269  
270 my $sudatumk2ds = {
271 _angmax => '',
272 _antiali => '',
273 _aperx => '',
274 _ds => '',
275 _dt => '',
276 _dvz => '',
277 _dxgo => '',
278 _dxi => '',
279 _dxso => '',
280 _dxt => '',
281 _dzo => '',
282 _dzt => '',
283 _exgo => '',
284 _fmax => '',
285 _fs => '',
286 _ft => '',
287 _fxgo => '',
288 _fxi => '',
289 _fxso => '',
290 _fxt => '',
291 _fzo => '',
292 _fzt => '',
293 _infile => '',
294 _jpfile => '',
295 _mtr => '',
296 _ns => '',
297 _ntr => '',
298 _nxgo => '',
299 _nxi => '',
300 _nxso => '',
301 _nxt => '',
302 _nzo => '',
303 _nzt => '',
304 _offmax => '',
305 _outfile => '',
306 _sgn => '',
307 _surf => '',
308 _ttfile => '',
309 _v0 => '',
310 _Step => '',
311 _note => '',
312  
313 };
314  
315 =head2 sub Step
316  
317 collects switches and assembles bash instructions
318 by adding the program name
319  
320 =cut
321  
322 sub Step {
323  
324 $sudatumk2ds->{_Step} = 'sudatumk2ds'.$sudatumk2ds->{_Step};
325 return ( $sudatumk2ds->{_Step} );
326  
327 }
328  
329  
330 =head2 sub note
331  
332 collects switches and assembles bash instructions
333 by adding the program name
334  
335 =cut
336  
337 sub note {
338  
339 $sudatumk2ds->{_note} = 'sudatumk2ds'.$sudatumk2ds->{_note};
340 return ( $sudatumk2ds->{_note} );
341  
342 }
343  
344  
345  
346 =head2 sub clear
347  
348 =cut
349  
350 sub clear {
351  
352 $sudatumk2ds->{_angmax} = '';
353 $sudatumk2ds->{_antiali} = '';
354 $sudatumk2ds->{_aperx} = '';
355 $sudatumk2ds->{_ds} = '';
356 $sudatumk2ds->{_dt} = '';
357 $sudatumk2ds->{_dvz} = '';
358 $sudatumk2ds->{_dxgo} = '';
359 $sudatumk2ds->{_dxi} = '';
360 $sudatumk2ds->{_dxso} = '';
361 $sudatumk2ds->{_dxt} = '';
362 $sudatumk2ds->{_dzo} = '';
363 $sudatumk2ds->{_dzt} = '';
364 $sudatumk2ds->{_exgo} = '';
365 $sudatumk2ds->{_fmax} = '';
366 $sudatumk2ds->{_fs} = '';
367 $sudatumk2ds->{_ft} = '';
368 $sudatumk2ds->{_fxgo} = '';
369 $sudatumk2ds->{_fxi} = '';
370 $sudatumk2ds->{_fxso} = '';
371 $sudatumk2ds->{_fxt} = '';
372 $sudatumk2ds->{_fzo} = '';
373 $sudatumk2ds->{_fzt} = '';
374 $sudatumk2ds->{_infile} = '';
375 $sudatumk2ds->{_jpfile} = '';
376 $sudatumk2ds->{_mtr} = '';
377 $sudatumk2ds->{_ns} = '';
378 $sudatumk2ds->{_ntr} = '';
379 $sudatumk2ds->{_nxgo} = '';
380 $sudatumk2ds->{_nxi} = '';
381 $sudatumk2ds->{_nxso} = '';
382 $sudatumk2ds->{_nxt} = '';
383 $sudatumk2ds->{_nzo} = '';
384 $sudatumk2ds->{_nzt} = '';
385 $sudatumk2ds->{_offmax} = '';
386 $sudatumk2ds->{_outfile} = '';
387 $sudatumk2ds->{_sgn} = '';
388 $sudatumk2ds->{_surf} = '';
389 $sudatumk2ds->{_ttfile} = '';
390 $sudatumk2ds->{_v0} = '';
391 $sudatumk2ds->{_Step} = '';
392 $sudatumk2ds->{_note} = '';
393 }
394  
395  
396 =head2 sub angmax
397  
398  
399 =cut
400  
401 sub angmax {
402  
403 my ( $self,$angmax ) = @_;
404 if ( $angmax ne $empty_string ) {
405  
406 $sudatumk2ds->{_angmax} = $angmax;
407 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' angmax='.$sudatumk2ds->{_angmax};
408 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' angmax='.$sudatumk2ds->{_angmax};
409  
410 } else {
411 print("sudatumk2ds, angmax, missing angmax,\n");
412 }
413 }
414  
415  
416 =head2 sub antiali
417  
418  
419 =cut
420  
421 sub antiali {
422  
423 my ( $self,$antiali ) = @_;
424 if ( $antiali ne $empty_string ) {
425  
426 $sudatumk2ds->{_antiali} = $antiali;
427 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' antiali='.$sudatumk2ds->{_antiali};
428 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' antiali='.$sudatumk2ds->{_antiali};
429  
430 } else {
431 print("sudatumk2ds, antiali, missing antiali,\n");
432 }
433 }
434  
435  
436 =head2 sub aperx
437  
438  
439 =cut
440  
441 sub aperx {
442  
443 my ( $self,$aperx ) = @_;
444 if ( $aperx ne $empty_string ) {
445  
446 $sudatumk2ds->{_aperx} = $aperx;
447 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' aperx='.$sudatumk2ds->{_aperx};
448 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' aperx='.$sudatumk2ds->{_aperx};
449  
450 } else {
451 print("sudatumk2ds, aperx, missing aperx,\n");
452 }
453 }
454  
455  
456 =head2 sub ds
457  
458  
459 =cut
460  
461 sub ds {
462  
463 my ( $self,$ds ) = @_;
464 if ( $ds ne $empty_string ) {
465  
466 $sudatumk2ds->{_ds} = $ds;
467 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' ds='.$sudatumk2ds->{_ds};
468 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' ds='.$sudatumk2ds->{_ds};
469  
470 } else {
471 print("sudatumk2ds, ds, missing ds,\n");
472 }
473 }
474  
475  
476 =head2 sub dt
477  
478  
479 =cut
480  
481 sub dt {
482  
483 my ( $self,$dt ) = @_;
484 if ( $dt ne $empty_string ) {
485  
486 $sudatumk2ds->{_dt} = $dt;
487 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dt='.$sudatumk2ds->{_dt};
488 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dt='.$sudatumk2ds->{_dt};
489  
490 } else {
491 print("sudatumk2ds, dt, missing dt,\n");
492 }
493 }
494  
495  
496 =head2 sub dvz
497  
498  
499 =cut
500  
501 sub dvz {
502  
503 my ( $self,$dvz ) = @_;
504 if ( $dvz ne $empty_string ) {
505  
506 $sudatumk2ds->{_dvz} = $dvz;
507 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dvz='.$sudatumk2ds->{_dvz};
508 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dvz='.$sudatumk2ds->{_dvz};
509  
510 } else {
511 print("sudatumk2ds, dvz, missing dvz,\n");
512 }
513 }
514  
515  
516 =head2 sub dxgo
517  
518  
519 =cut
520  
521 sub dxgo {
522  
523 my ( $self,$dxgo ) = @_;
524 if ( $dxgo ne $empty_string ) {
525  
526 $sudatumk2ds->{_dxgo} = $dxgo;
527 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dxgo='.$sudatumk2ds->{_dxgo};
528 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dxgo='.$sudatumk2ds->{_dxgo};
529  
530 } else {
531 print("sudatumk2ds, dxgo, missing dxgo,\n");
532 }
533 }
534  
535  
536 =head2 sub dxi
537  
538  
539 =cut
540  
541 sub dxi {
542  
543 my ( $self,$dxi ) = @_;
544 if ( $dxi ne $empty_string ) {
545  
546 $sudatumk2ds->{_dxi} = $dxi;
547 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dxi='.$sudatumk2ds->{_dxi};
548 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dxi='.$sudatumk2ds->{_dxi};
549  
550 } else {
551 print("sudatumk2ds, dxi, missing dxi,\n");
552 }
553 }
554  
555  
556 =head2 sub dxso
557  
558  
559 =cut
560  
561 sub dxso {
562  
563 my ( $self,$dxso ) = @_;
564 if ( $dxso ne $empty_string ) {
565  
566 $sudatumk2ds->{_dxso} = $dxso;
567 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dxso='.$sudatumk2ds->{_dxso};
568 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dxso='.$sudatumk2ds->{_dxso};
569  
570 } else {
571 print("sudatumk2ds, dxso, missing dxso,\n");
572 }
573 }
574  
575  
576 =head2 sub dxt
577  
578  
579 =cut
580  
581 sub dxt {
582  
583 my ( $self,$dxt ) = @_;
584 if ( $dxt ne $empty_string ) {
585  
586 $sudatumk2ds->{_dxt} = $dxt;
587 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dxt='.$sudatumk2ds->{_dxt};
588 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dxt='.$sudatumk2ds->{_dxt};
589  
590 } else {
591 print("sudatumk2ds, dxt, missing dxt,\n");
592 }
593 }
594  
595  
596 =head2 sub dzo
597  
598  
599 =cut
600  
601 sub dzo {
602  
603 my ( $self,$dzo ) = @_;
604 if ( $dzo ne $empty_string ) {
605  
606 $sudatumk2ds->{_dzo} = $dzo;
607 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dzo='.$sudatumk2ds->{_dzo};
608 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dzo='.$sudatumk2ds->{_dzo};
609  
610 } else {
611 print("sudatumk2ds, dzo, missing dzo,\n");
612 }
613 }
614  
615  
616 =head2 sub dzt
617  
618  
619 =cut
620  
621 sub dzt {
622  
623 my ( $self,$dzt ) = @_;
624 if ( $dzt ne $empty_string ) {
625  
626 $sudatumk2ds->{_dzt} = $dzt;
627 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' dzt='.$sudatumk2ds->{_dzt};
628 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' dzt='.$sudatumk2ds->{_dzt};
629  
630 } else {
631 print("sudatumk2ds, dzt, missing dzt,\n");
632 }
633 }
634  
635  
636 =head2 sub exgo
637  
638  
639 =cut
640  
641 sub exgo {
642  
643 my ( $self,$exgo ) = @_;
644 if ( $exgo ne $empty_string ) {
645  
646 $sudatumk2ds->{_exgo} = $exgo;
647 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' exgo='.$sudatumk2ds->{_exgo};
648 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' exgo='.$sudatumk2ds->{_exgo};
649  
650 } else {
651 print("sudatumk2ds, exgo, missing exgo,\n");
652 }
653 }
654  
655  
656 =head2 sub fmax
657  
658  
659 =cut
660  
661 sub fmax {
662  
663 my ( $self,$fmax ) = @_;
664 if ( $fmax ne $empty_string ) {
665  
666 $sudatumk2ds->{_fmax} = $fmax;
667 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fmax='.$sudatumk2ds->{_fmax};
668 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fmax='.$sudatumk2ds->{_fmax};
669  
670 } else {
671 print("sudatumk2ds, fmax, missing fmax,\n");
672 }
673 }
674  
675  
676 =head2 sub fs
677  
678  
679 =cut
680  
681 sub fs {
682  
683 my ( $self,$fs ) = @_;
684 if ( $fs ne $empty_string ) {
685  
686 $sudatumk2ds->{_fs} = $fs;
687 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fs='.$sudatumk2ds->{_fs};
688 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fs='.$sudatumk2ds->{_fs};
689  
690 } else {
691 print("sudatumk2ds, fs, missing fs,\n");
692 }
693 }
694  
695  
696 =head2 sub ft
697  
698  
699 =cut
700  
701 sub ft {
702  
703 my ( $self,$ft ) = @_;
704 if ( $ft ne $empty_string ) {
705  
706 $sudatumk2ds->{_ft} = $ft;
707 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' ft='.$sudatumk2ds->{_ft};
708 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' ft='.$sudatumk2ds->{_ft};
709  
710 } else {
711 print("sudatumk2ds, ft, missing ft,\n");
712 }
713 }
714  
715  
716 =head2 sub fxgo
717  
718  
719 =cut
720  
721 sub fxgo {
722  
723 my ( $self,$fxgo ) = @_;
724 if ( $fxgo ne $empty_string ) {
725  
726 $sudatumk2ds->{_fxgo} = $fxgo;
727 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fxgo='.$sudatumk2ds->{_fxgo};
728 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fxgo='.$sudatumk2ds->{_fxgo};
729  
730 } else {
731 print("sudatumk2ds, fxgo, missing fxgo,\n");
732 }
733 }
734  
735  
736 =head2 sub fxi
737  
738  
739 =cut
740  
741 sub fxi {
742  
743 my ( $self,$fxi ) = @_;
744 if ( $fxi ne $empty_string ) {
745  
746 $sudatumk2ds->{_fxi} = $fxi;
747 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fxi='.$sudatumk2ds->{_fxi};
748 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fxi='.$sudatumk2ds->{_fxi};
749  
750 } else {
751 print("sudatumk2ds, fxi, missing fxi,\n");
752 }
753 }
754  
755  
756 =head2 sub fxso
757  
758  
759 =cut
760  
761 sub fxso {
762  
763 my ( $self,$fxso ) = @_;
764 if ( $fxso ne $empty_string ) {
765  
766 $sudatumk2ds->{_fxso} = $fxso;
767 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fxso='.$sudatumk2ds->{_fxso};
768 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fxso='.$sudatumk2ds->{_fxso};
769  
770 } else {
771 print("sudatumk2ds, fxso, missing fxso,\n");
772 }
773 }
774  
775  
776 =head2 sub fxt
777  
778  
779 =cut
780  
781 sub fxt {
782  
783 my ( $self,$fxt ) = @_;
784 if ( $fxt ne $empty_string ) {
785  
786 $sudatumk2ds->{_fxt} = $fxt;
787 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fxt='.$sudatumk2ds->{_fxt};
788 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fxt='.$sudatumk2ds->{_fxt};
789  
790 } else {
791 print("sudatumk2ds, fxt, missing fxt,\n");
792 }
793 }
794  
795  
796 =head2 sub fzo
797  
798  
799 =cut
800  
801 sub fzo {
802  
803 my ( $self,$fzo ) = @_;
804 if ( $fzo ne $empty_string ) {
805  
806 $sudatumk2ds->{_fzo} = $fzo;
807 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fzo='.$sudatumk2ds->{_fzo};
808 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fzo='.$sudatumk2ds->{_fzo};
809  
810 } else {
811 print("sudatumk2ds, fzo, missing fzo,\n");
812 }
813 }
814  
815  
816 =head2 sub fzt
817  
818  
819 =cut
820  
821 sub fzt {
822  
823 my ( $self,$fzt ) = @_;
824 if ( $fzt ne $empty_string ) {
825  
826 $sudatumk2ds->{_fzt} = $fzt;
827 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' fzt='.$sudatumk2ds->{_fzt};
828 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' fzt='.$sudatumk2ds->{_fzt};
829  
830 } else {
831 print("sudatumk2ds, fzt, missing fzt,\n");
832 }
833 }
834  
835  
836 =head2 sub infile
837  
838  
839 =cut
840  
841 sub infile {
842  
843 my ( $self,$infile ) = @_;
844 if ( $infile ne $empty_string ) {
845  
846 $sudatumk2ds->{_infile} = $infile;
847 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' infile='.$sudatumk2ds->{_infile};
848 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' infile='.$sudatumk2ds->{_infile};
849  
850 } else {
851 print("sudatumk2ds, infile, missing infile,\n");
852 }
853 }
854  
855  
856 =head2 sub jpfile
857  
858  
859 =cut
860  
861 sub jpfile {
862  
863 my ( $self,$jpfile ) = @_;
864 if ( $jpfile ne $empty_string ) {
865  
866 $sudatumk2ds->{_jpfile} = $jpfile;
867 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' jpfile='.$sudatumk2ds->{_jpfile};
868 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' jpfile='.$sudatumk2ds->{_jpfile};
869  
870 } else {
871 print("sudatumk2ds, jpfile, missing jpfile,\n");
872 }
873 }
874  
875  
876 =head2 sub mtr
877  
878  
879 =cut
880  
881 sub mtr {
882  
883 my ( $self,$mtr ) = @_;
884 if ( $mtr ne $empty_string ) {
885  
886 $sudatumk2ds->{_mtr} = $mtr;
887 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' mtr='.$sudatumk2ds->{_mtr};
888 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' mtr='.$sudatumk2ds->{_mtr};
889  
890 } else {
891 print("sudatumk2ds, mtr, missing mtr,\n");
892 }
893 }
894  
895  
896 =head2 sub ns
897  
898  
899 =cut
900  
901 sub ns {
902  
903 my ( $self,$ns ) = @_;
904 if ( $ns ne $empty_string ) {
905  
906 $sudatumk2ds->{_ns} = $ns;
907 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' ns='.$sudatumk2ds->{_ns};
908 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' ns='.$sudatumk2ds->{_ns};
909  
910 } else {
911 print("sudatumk2ds, ns, missing ns,\n");
912 }
913 }
914  
915  
916 =head2 sub ntr
917  
918  
919 =cut
920  
921 sub ntr {
922  
923 my ( $self,$ntr ) = @_;
924 if ( $ntr ne $empty_string ) {
925  
926 $sudatumk2ds->{_ntr} = $ntr;
927 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' ntr='.$sudatumk2ds->{_ntr};
928 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' ntr='.$sudatumk2ds->{_ntr};
929  
930 } else {
931 print("sudatumk2ds, ntr, missing ntr,\n");
932 }
933 }
934  
935  
936 =head2 sub nxgo
937  
938  
939 =cut
940  
941 sub nxgo {
942  
943 my ( $self,$nxgo ) = @_;
944 if ( $nxgo ne $empty_string ) {
945  
946 $sudatumk2ds->{_nxgo} = $nxgo;
947 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nxgo='.$sudatumk2ds->{_nxgo};
948 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nxgo='.$sudatumk2ds->{_nxgo};
949  
950 } else {
951 print("sudatumk2ds, nxgo, missing nxgo,\n");
952 }
953 }
954  
955  
956 =head2 sub nxi
957  
958  
959 =cut
960  
961 sub nxi {
962  
963 my ( $self,$nxi ) = @_;
964 if ( $nxi ne $empty_string ) {
965  
966 $sudatumk2ds->{_nxi} = $nxi;
967 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nxi='.$sudatumk2ds->{_nxi};
968 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nxi='.$sudatumk2ds->{_nxi};
969  
970 } else {
971 print("sudatumk2ds, nxi, missing nxi,\n");
972 }
973 }
974  
975  
976 =head2 sub nxso
977  
978  
979 =cut
980  
981 sub nxso {
982  
983 my ( $self,$nxso ) = @_;
984 if ( $nxso ne $empty_string ) {
985  
986 $sudatumk2ds->{_nxso} = $nxso;
987 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nxso='.$sudatumk2ds->{_nxso};
988 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nxso='.$sudatumk2ds->{_nxso};
989  
990 } else {
991 print("sudatumk2ds, nxso, missing nxso,\n");
992 }
993 }
994  
995  
996 =head2 sub nxt
997  
998  
999 =cut
1000  
1001 sub nxt {
1002  
1003 my ( $self,$nxt ) = @_;
1004 if ( $nxt ne $empty_string ) {
1005  
1006 $sudatumk2ds->{_nxt} = $nxt;
1007 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nxt='.$sudatumk2ds->{_nxt};
1008 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nxt='.$sudatumk2ds->{_nxt};
1009  
1010 } else {
1011 print("sudatumk2ds, nxt, missing nxt,\n");
1012 }
1013 }
1014  
1015  
1016 =head2 sub nzo
1017  
1018  
1019 =cut
1020  
1021 sub nzo {
1022  
1023 my ( $self,$nzo ) = @_;
1024 if ( $nzo ne $empty_string ) {
1025  
1026 $sudatumk2ds->{_nzo} = $nzo;
1027 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nzo='.$sudatumk2ds->{_nzo};
1028 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nzo='.$sudatumk2ds->{_nzo};
1029  
1030 } else {
1031 print("sudatumk2ds, nzo, missing nzo,\n");
1032 }
1033 }
1034  
1035  
1036 =head2 sub nzt
1037  
1038  
1039 =cut
1040  
1041 sub nzt {
1042  
1043 my ( $self,$nzt ) = @_;
1044 if ( $nzt ne $empty_string ) {
1045  
1046 $sudatumk2ds->{_nzt} = $nzt;
1047 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' nzt='.$sudatumk2ds->{_nzt};
1048 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' nzt='.$sudatumk2ds->{_nzt};
1049  
1050 } else {
1051 print("sudatumk2ds, nzt, missing nzt,\n");
1052 }
1053 }
1054  
1055  
1056 =head2 sub offmax
1057  
1058  
1059 =cut
1060  
1061 sub offmax {
1062  
1063 my ( $self,$offmax ) = @_;
1064 if ( $offmax ne $empty_string ) {
1065  
1066 $sudatumk2ds->{_offmax} = $offmax;
1067 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' offmax='.$sudatumk2ds->{_offmax};
1068 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' offmax='.$sudatumk2ds->{_offmax};
1069  
1070 } else {
1071 print("sudatumk2ds, offmax, missing offmax,\n");
1072 }
1073 }
1074  
1075  
1076 =head2 sub outfile
1077  
1078  
1079 =cut
1080  
1081 sub outfile {
1082  
1083 my ( $self,$outfile ) = @_;
1084 if ( $outfile ne $empty_string ) {
1085  
1086 $sudatumk2ds->{_outfile} = $outfile;
1087 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' outfile='.$sudatumk2ds->{_outfile};
1088 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' outfile='.$sudatumk2ds->{_outfile};
1089  
1090 } else {
1091 print("sudatumk2ds, outfile, missing outfile,\n");
1092 }
1093 }
1094  
1095  
1096 =head2 sub sgn
1097  
1098  
1099 =cut
1100  
1101 sub sgn {
1102  
1103 my ( $self,$sgn ) = @_;
1104 if ( $sgn ne $empty_string ) {
1105  
1106 $sudatumk2ds->{_sgn} = $sgn;
1107 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' sgn='.$sudatumk2ds->{_sgn};
1108 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' sgn='.$sudatumk2ds->{_sgn};
1109  
1110 } else {
1111 print("sudatumk2ds, sgn, missing sgn,\n");
1112 }
1113 }
1114  
1115  
1116 =head2 sub surf
1117  
1118  
1119 =cut
1120  
1121 sub surf {
1122  
1123 my ( $self,$surf ) = @_;
1124 if ( $surf ne $empty_string ) {
1125  
1126 $sudatumk2ds->{_surf} = $surf;
1127 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' surf='.$sudatumk2ds->{_surf};
1128 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' surf='.$sudatumk2ds->{_surf};
1129  
1130 } else {
1131 print("sudatumk2ds, surf, missing surf,\n");
1132 }
1133 }
1134  
1135  
1136 =head2 sub ttfile
1137  
1138  
1139 =cut
1140  
1141 sub ttfile {
1142  
1143 my ( $self,$ttfile ) = @_;
1144 if ( $ttfile ne $empty_string ) {
1145  
1146 $sudatumk2ds->{_ttfile} = $ttfile;
1147 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' ttfile='.$sudatumk2ds->{_ttfile};
1148 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' ttfile='.$sudatumk2ds->{_ttfile};
1149  
1150 } else {
1151 print("sudatumk2ds, ttfile, missing ttfile,\n");
1152 }
1153 }
1154  
1155  
1156 =head2 sub v0
1157  
1158  
1159 =cut
1160  
1161 sub v0 {
1162  
1163 my ( $self,$v0 ) = @_;
1164 if ( $v0 ne $empty_string ) {
1165  
1166 $sudatumk2ds->{_v0} = $v0;
1167 $sudatumk2ds->{_note} = $sudatumk2ds->{_note}.' v0='.$sudatumk2ds->{_v0};
1168 $sudatumk2ds->{_Step} = $sudatumk2ds->{_Step}.' v0='.$sudatumk2ds->{_v0};
1169  
1170 } else {
1171 print("sudatumk2ds, v0, missing v0,\n");
1172 }
1173 }
1174  
1175  
1176 =head2 sub get_max_index
1177  
1178 max index = number of input variables -1
1179
1180 =cut
1181
1182 sub get_max_index {
1183 my ($self) = @_;
1184 my $max_index = 38;
1185  
1186 return($max_index);
1187 }
1188
1189
1190 1;