lib/App/SeismicUnixGui/sunix/migration/sumigtopo2d.pm untested

filter: Statementstmt 0.0% 0 / 210 Branchbran 0.0% 0 / 50 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 33 Podpod 0.0% 0 / 29 totaltotal 0.0% 0 / 322 CC 26 SCAR 17.0
CC
26
Cov
0%
angmax
6.0
aperx
6.0
doff
6.0
CRAP 5.4
1 package App::SeismicUnixGui::sunix::migration::sumigtopo2d;
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 SUMIGTOPO2D - Kirchhoff Depth Migration of 2D postack/prestack data
25  
26 from the (variable topography) recording surface
27  
28  
29  
30 sumigtopo2d 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 input trace
65  
66 dxi horizontal spacing of input data
67  
68 nxi number of input trace locations in surface
69  
70  
71  
72 Optional Parameters:
73  
74 dt= or from header (dt) time sampling interval of input data
75  
76 ft= or from header (ft) first time sample of input data
77  
78 dxm= or from header (d2) sampling interval of midpoints
79  
80 surf="0,0;99999,0" Recording surface "x1,z1;x2,z2;x3,z3;...
81  
82 fzo=fzt z-coordinate of first point in output trace
83  
84 dzo=0.2*dzt vertical spacing of output trace
85  
86 nzo=5*(nzt-1)+1 number of points in output trace ",
87  
88 fxo=fxt x-coordinate of first output trace
89  
90 dxo=0.5*dxt horizontal spacing of output trace
91  
92 nxo=2*(nxt-1)+1 number of output traces ",
93  
94 off0=0 first offest in output
95  
96 doff=99999 offset increment in output
97  
98 noff=1 number of offsets in output ",
99  
100 fmax=0.25/dt frequency-highcut for input traces
101  
102 offmax=99999 maximum absolute offset allowed in migration
103  
104 aperx=nxt*dxt/2 migration lateral aperature
105  
106 angmax=60 migration 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 ntr=100000 maximum number of input traces to be migrated
119  
120  
121  
122 Notes:
123  
124 1. Traveltime tables were generated by program rayt2dtopo (or any
125  
126 other one that considers topography )on relatively coarse grids,
127  
128 with dimension ns*nxt*nzt. In the migration process, traveltimes
129  
130 are interpolated into shot/gephone positions and output grids.
131  
132 2. Input seismic traces must be SU format and can be any type of
133  
134 gathers (common shot, common offset, common CDP, and so on). ",
135  
136 3. Migrated traces are output in CDP gathers if velocity analysis
137  
138 is required, with dimension nxo*noff*nzo. ",
139  
140 4. 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 5. Amplitudes are computed using the reference velocity profile, v(z),
145  
146 specified by the parameters v0= and dvz=.
147  
148 6. 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: Zhenyue Liu, 03/01/95, Colorado School of Mines
157  
158  
159  
160 Trino Salinas, 07/01/96, Colorado School of Mines,
161  
162 extended the code to migrate data from a nonflat
163  
164 recording surface.
165  
166  
167  
168 References :
169  
170  
171  
172 Bleistein, N., Cohen, J., and Hagin, F., 1987, Two and one-half
173  
174 dimensional Born inversion with arbitrary reference: Geophysics,
175  
176 52, 26-36.
177  
178  
179  
180 Liu,Z., 1993, A Kirchhoff approach to seismic modeling and
181  
182 pre-stack depth migration: CWP Annual Report, CWP, Colorado
183  
184 School of Mines.
185  
186  
187  
188 Wiggins, J. W., 1984, Kirchhoff integral extrapolation and
189  
190 migration of nonplanar data: Geophysics, 49, 1239-
191  
192 1248.
193  
194  
195  
196 =head2 User's notes (Juan Lorenzo)
197 untested
198  
199 =cut
200  
201  
202 =head2 CHANGES and their DATES
203  
204 =cut
205  
206 use Moose;
207 our $VERSION = '0.0.1';
208  
209  
210 =head2 Import packages
211  
212 =cut
213  
214 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
215  
216 use App::SeismicUnixGui::misc::SeismicUnix qw($go $in $off $on $out $ps $to $suffix_ascii $suffix_bin $suffix_ps $suffix_segy $suffix_su);
217 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
218  
219  
220 =head2 instantiation of packages
221  
222 =cut
223  
224 my $get = L_SU_global_constants->new();
225 my $Project = Project_config->new();
226 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
227 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
228 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
229  
230 my $PS_SEISMIC = $Project->PS_SEISMIC();
231  
232 my $var = $get->var();
233 my $on = $var->{_on};
234 my $off = $var->{_off};
235 my $true = $var->{_true};
236 my $false = $var->{_false};
237 my $empty_string = $var->{_empty_string};
238  
239 =head2 Encapsulated
240 hash of private variables
241  
242 =cut
243  
244 my $sumigtopo2d = {
245 _angmax => '',
246 _aperx => '',
247 _doff => '',
248 _dt => '',
249 _dvz => '',
250 _dxm => '',
251 _dxo => '',
252 _dzo => '',
253 _fmax => '',
254 _ft => '',
255 _fxo => '',
256 _fzo => '',
257 _infile => '',
258 _jpfile => '',
259 _ls => '',
260 _mtr => '',
261 _noff => '',
262 _ntr => '',
263 _nxo => '',
264 _nzo => '',
265 _off0 => '',
266 _offmax => '',
267 _outfile => '',
268 _surf => '',
269 _v0 => '',
270 _Step => '',
271 _note => '',
272  
273 };
274  
275 =head2 sub Step
276  
277 collects switches and assembles bash instructions
278 by adding the program name
279  
280 =cut
281  
282 sub Step {
283  
284 $sumigtopo2d->{_Step} = 'sumigtopo2d'.$sumigtopo2d->{_Step};
285 return ( $sumigtopo2d->{_Step} );
286  
287 }
288  
289  
290 =head2 sub note
291  
292 collects switches and assembles bash instructions
293 by adding the program name
294  
295 =cut
296  
297 sub note {
298  
299 $sumigtopo2d->{_note} = 'sumigtopo2d'.$sumigtopo2d->{_note};
300 return ( $sumigtopo2d->{_note} );
301  
302 }
303  
304  
305  
306 =head2 sub clear
307  
308 =cut
309  
310 sub clear {
311  
312 $sumigtopo2d->{_angmax} = '';
313 $sumigtopo2d->{_aperx} = '';
314 $sumigtopo2d->{_doff} = '';
315 $sumigtopo2d->{_dt} = '';
316 $sumigtopo2d->{_dvz} = '';
317 $sumigtopo2d->{_dxm} = '';
318 $sumigtopo2d->{_dxo} = '';
319 $sumigtopo2d->{_dzo} = '';
320 $sumigtopo2d->{_fmax} = '';
321 $sumigtopo2d->{_ft} = '';
322 $sumigtopo2d->{_fxo} = '';
323 $sumigtopo2d->{_fzo} = '';
324 $sumigtopo2d->{_infile} = '';
325 $sumigtopo2d->{_jpfile} = '';
326 $sumigtopo2d->{_ls} = '';
327 $sumigtopo2d->{_mtr} = '';
328 $sumigtopo2d->{_noff} = '';
329 $sumigtopo2d->{_ntr} = '';
330 $sumigtopo2d->{_nxo} = '';
331 $sumigtopo2d->{_nzo} = '';
332 $sumigtopo2d->{_off0} = '';
333 $sumigtopo2d->{_offmax} = '';
334 $sumigtopo2d->{_outfile} = '';
335 $sumigtopo2d->{_surf} = '';
336 $sumigtopo2d->{_v0} = '';
337 $sumigtopo2d->{_Step} = '';
338 $sumigtopo2d->{_note} = '';
339 }
340  
341  
342 =head2 sub angmax
343  
344  
345 =cut
346  
347 sub angmax {
348  
349 my ( $self,$angmax ) = @_;
350 if ( $angmax ne $empty_string ) {
351  
352 $sumigtopo2d->{_angmax} = $angmax;
353 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' angmax='.$sumigtopo2d->{_angmax};
354 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' angmax='.$sumigtopo2d->{_angmax};
355  
356 } else {
357 print("sumigtopo2d, angmax, missing angmax,\n");
358 }
359 }
360  
361  
362 =head2 sub aperx
363  
364  
365 =cut
366  
367 sub aperx {
368  
369 my ( $self,$aperx ) = @_;
370 if ( $aperx ne $empty_string ) {
371  
372 $sumigtopo2d->{_aperx} = $aperx;
373 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' aperx='.$sumigtopo2d->{_aperx};
374 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' aperx='.$sumigtopo2d->{_aperx};
375  
376 } else {
377 print("sumigtopo2d, aperx, missing aperx,\n");
378 }
379 }
380  
381  
382 =head2 sub doff
383  
384  
385 =cut
386  
387 sub doff {
388  
389 my ( $self,$doff ) = @_;
390 if ( $doff ne $empty_string ) {
391  
392 $sumigtopo2d->{_doff} = $doff;
393 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' doff='.$sumigtopo2d->{_doff};
394 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' doff='.$sumigtopo2d->{_doff};
395  
396 } else {
397 print("sumigtopo2d, doff, missing doff,\n");
398 }
399 }
400  
401  
402 =head2 sub dt
403  
404  
405 =cut
406  
407 sub dt {
408  
409 my ( $self,$dt ) = @_;
410 if ( $dt ne $empty_string ) {
411  
412 $sumigtopo2d->{_dt} = $dt;
413 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' dt='.$sumigtopo2d->{_dt};
414 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' dt='.$sumigtopo2d->{_dt};
415  
416 } else {
417 print("sumigtopo2d, dt, missing dt,\n");
418 }
419 }
420  
421  
422 =head2 sub dvz
423  
424  
425 =cut
426  
427 sub dvz {
428  
429 my ( $self,$dvz ) = @_;
430 if ( $dvz ne $empty_string ) {
431  
432 $sumigtopo2d->{_dvz} = $dvz;
433 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' dvz='.$sumigtopo2d->{_dvz};
434 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' dvz='.$sumigtopo2d->{_dvz};
435  
436 } else {
437 print("sumigtopo2d, dvz, missing dvz,\n");
438 }
439 }
440  
441  
442 =head2 sub dxm
443  
444  
445 =cut
446  
447 sub dxm {
448  
449 my ( $self,$dxm ) = @_;
450 if ( $dxm ne $empty_string ) {
451  
452 $sumigtopo2d->{_dxm} = $dxm;
453 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' dxm='.$sumigtopo2d->{_dxm};
454 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' dxm='.$sumigtopo2d->{_dxm};
455  
456 } else {
457 print("sumigtopo2d, dxm, missing dxm,\n");
458 }
459 }
460  
461  
462 =head2 sub dxo
463  
464  
465 =cut
466  
467 sub dxo {
468  
469 my ( $self,$dxo ) = @_;
470 if ( $dxo ne $empty_string ) {
471  
472 $sumigtopo2d->{_dxo} = $dxo;
473 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' dxo='.$sumigtopo2d->{_dxo};
474 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' dxo='.$sumigtopo2d->{_dxo};
475  
476 } else {
477 print("sumigtopo2d, dxo, missing dxo,\n");
478 }
479 }
480  
481  
482 =head2 sub dzo
483  
484  
485 =cut
486  
487 sub dzo {
488  
489 my ( $self,$dzo ) = @_;
490 if ( $dzo ne $empty_string ) {
491  
492 $sumigtopo2d->{_dzo} = $dzo;
493 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' dzo='.$sumigtopo2d->{_dzo};
494 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' dzo='.$sumigtopo2d->{_dzo};
495  
496 } else {
497 print("sumigtopo2d, dzo, missing dzo,\n");
498 }
499 }
500  
501  
502 =head2 sub fmax
503  
504  
505 =cut
506  
507 sub fmax {
508  
509 my ( $self,$fmax ) = @_;
510 if ( $fmax ne $empty_string ) {
511  
512 $sumigtopo2d->{_fmax} = $fmax;
513 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' fmax='.$sumigtopo2d->{_fmax};
514 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' fmax='.$sumigtopo2d->{_fmax};
515  
516 } else {
517 print("sumigtopo2d, fmax, missing fmax,\n");
518 }
519 }
520  
521  
522 =head2 sub ft
523  
524  
525 =cut
526  
527 sub ft {
528  
529 my ( $self,$ft ) = @_;
530 if ( $ft ne $empty_string ) {
531  
532 $sumigtopo2d->{_ft} = $ft;
533 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' ft='.$sumigtopo2d->{_ft};
534 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' ft='.$sumigtopo2d->{_ft};
535  
536 } else {
537 print("sumigtopo2d, ft, missing ft,\n");
538 }
539 }
540  
541  
542 =head2 sub fxo
543  
544  
545 =cut
546  
547 sub fxo {
548  
549 my ( $self,$fxo ) = @_;
550 if ( $fxo ne $empty_string ) {
551  
552 $sumigtopo2d->{_fxo} = $fxo;
553 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' fxo='.$sumigtopo2d->{_fxo};
554 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' fxo='.$sumigtopo2d->{_fxo};
555  
556 } else {
557 print("sumigtopo2d, fxo, missing fxo,\n");
558 }
559 }
560  
561  
562 =head2 sub fzo
563  
564  
565 =cut
566  
567 sub fzo {
568  
569 my ( $self,$fzo ) = @_;
570 if ( $fzo ne $empty_string ) {
571  
572 $sumigtopo2d->{_fzo} = $fzo;
573 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' fzo='.$sumigtopo2d->{_fzo};
574 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' fzo='.$sumigtopo2d->{_fzo};
575  
576 } else {
577 print("sumigtopo2d, fzo, missing fzo,\n");
578 }
579 }
580  
581  
582 =head2 sub infile
583  
584  
585 =cut
586  
587 sub infile {
588  
589 my ( $self,$infile ) = @_;
590 if ( $infile ne $empty_string ) {
591  
592 $sumigtopo2d->{_infile} = $infile;
593 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' infile='.$sumigtopo2d->{_infile};
594 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' infile='.$sumigtopo2d->{_infile};
595  
596 } else {
597 print("sumigtopo2d, infile, missing infile,\n");
598 }
599 }
600  
601  
602 =head2 sub jpfile
603  
604  
605 =cut
606  
607 sub jpfile {
608  
609 my ( $self,$jpfile ) = @_;
610 if ( $jpfile ne $empty_string ) {
611  
612 $sumigtopo2d->{_jpfile} = $jpfile;
613 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' jpfile='.$sumigtopo2d->{_jpfile};
614 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' jpfile='.$sumigtopo2d->{_jpfile};
615  
616 } else {
617 print("sumigtopo2d, jpfile, missing jpfile,\n");
618 }
619 }
620  
621  
622 =head2 sub ls
623  
624  
625 =cut
626  
627 sub ls {
628  
629 my ( $self,$ls ) = @_;
630 if ( $ls ne $empty_string ) {
631  
632 $sumigtopo2d->{_ls} = $ls;
633 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' ls='.$sumigtopo2d->{_ls};
634 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' ls='.$sumigtopo2d->{_ls};
635  
636 } else {
637 print("sumigtopo2d, ls, missing ls,\n");
638 }
639 }
640  
641  
642 =head2 sub mtr
643  
644  
645 =cut
646  
647 sub mtr {
648  
649 my ( $self,$mtr ) = @_;
650 if ( $mtr ne $empty_string ) {
651  
652 $sumigtopo2d->{_mtr} = $mtr;
653 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' mtr='.$sumigtopo2d->{_mtr};
654 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' mtr='.$sumigtopo2d->{_mtr};
655  
656 } else {
657 print("sumigtopo2d, mtr, missing mtr,\n");
658 }
659 }
660  
661  
662 =head2 sub noff
663  
664  
665 =cut
666  
667 sub noff {
668  
669 my ( $self,$noff ) = @_;
670 if ( $noff ne $empty_string ) {
671  
672 $sumigtopo2d->{_noff} = $noff;
673 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' noff='.$sumigtopo2d->{_noff};
674 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' noff='.$sumigtopo2d->{_noff};
675  
676 } else {
677 print("sumigtopo2d, noff, missing noff,\n");
678 }
679 }
680  
681  
682 =head2 sub ntr
683  
684  
685 =cut
686  
687 sub ntr {
688  
689 my ( $self,$ntr ) = @_;
690 if ( $ntr ne $empty_string ) {
691  
692 $sumigtopo2d->{_ntr} = $ntr;
693 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' ntr='.$sumigtopo2d->{_ntr};
694 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' ntr='.$sumigtopo2d->{_ntr};
695  
696 } else {
697 print("sumigtopo2d, ntr, missing ntr,\n");
698 }
699 }
700  
701  
702 =head2 sub nxo
703  
704  
705 =cut
706  
707 sub nxo {
708  
709 my ( $self,$nxo ) = @_;
710 if ( $nxo ne $empty_string ) {
711  
712 $sumigtopo2d->{_nxo} = $nxo;
713 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' nxo='.$sumigtopo2d->{_nxo};
714 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' nxo='.$sumigtopo2d->{_nxo};
715  
716 } else {
717 print("sumigtopo2d, nxo, missing nxo,\n");
718 }
719 }
720  
721  
722 =head2 sub nzo
723  
724  
725 =cut
726  
727 sub nzo {
728  
729 my ( $self,$nzo ) = @_;
730 if ( $nzo ne $empty_string ) {
731  
732 $sumigtopo2d->{_nzo} = $nzo;
733 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' nzo='.$sumigtopo2d->{_nzo};
734 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' nzo='.$sumigtopo2d->{_nzo};
735  
736 } else {
737 print("sumigtopo2d, nzo, missing nzo,\n");
738 }
739 }
740  
741  
742 =head2 sub off0
743  
744  
745 =cut
746  
747 sub off0 {
748  
749 my ( $self,$off0 ) = @_;
750 if ( $off0 ne $empty_string ) {
751  
752 $sumigtopo2d->{_off0} = $off0;
753 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' off0='.$sumigtopo2d->{_off0};
754 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' off0='.$sumigtopo2d->{_off0};
755  
756 } else {
757 print("sumigtopo2d, off0, missing off0,\n");
758 }
759 }
760  
761  
762 =head2 sub offmax
763  
764  
765 =cut
766  
767 sub offmax {
768  
769 my ( $self,$offmax ) = @_;
770 if ( $offmax ne $empty_string ) {
771  
772 $sumigtopo2d->{_offmax} = $offmax;
773 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' offmax='.$sumigtopo2d->{_offmax};
774 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' offmax='.$sumigtopo2d->{_offmax};
775  
776 } else {
777 print("sumigtopo2d, offmax, missing offmax,\n");
778 }
779 }
780  
781  
782 =head2 sub outfile
783  
784  
785 =cut
786  
787 sub outfile {
788  
789 my ( $self,$outfile ) = @_;
790 if ( $outfile ne $empty_string ) {
791  
792 $sumigtopo2d->{_outfile} = $outfile;
793 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' outfile='.$sumigtopo2d->{_outfile};
794 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' outfile='.$sumigtopo2d->{_outfile};
795  
796 } else {
797 print("sumigtopo2d, outfile, missing outfile,\n");
798 }
799 }
800  
801  
802 =head2 sub surf
803  
804  
805 =cut
806  
807 sub surf {
808  
809 my ( $self,$surf ) = @_;
810 if ( $surf ne $empty_string ) {
811  
812 $sumigtopo2d->{_surf} = $surf;
813 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' surf='.$sumigtopo2d->{_surf};
814 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' surf='.$sumigtopo2d->{_surf};
815  
816 } else {
817 print("sumigtopo2d, surf, missing surf,\n");
818 }
819 }
820  
821  
822 =head2 sub v0
823  
824  
825 =cut
826  
827 sub v0 {
828  
829 my ( $self,$v0 ) = @_;
830 if ( $v0 ne $empty_string ) {
831  
832 $sumigtopo2d->{_v0} = $v0;
833 $sumigtopo2d->{_note} = $sumigtopo2d->{_note}.' v0='.$sumigtopo2d->{_v0};
834 $sumigtopo2d->{_Step} = $sumigtopo2d->{_Step}.' v0='.$sumigtopo2d->{_v0};
835  
836 } else {
837 print("sumigtopo2d, v0, missing v0,\n");
838 }
839 }
840  
841  
842 =head2 sub get_max_index
843  
844 max index = number of input variables -1
845
846 =cut
847
848 sub get_max_index {
849 my ($self) = @_;
850 my $max_index = 24;
851  
852 return($max_index);
853 }
854
855
856 1;