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

filter: Statementstmt 0.0% 0 / 237 Branchbran 0.0% 0 / 58 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 37 Podpod 0.0% 0 / 33 totaltotal 0.0% 0 / 365 CC 30 SCAR 17.1
CC
30
Cov
0%
dt
6.0
dvdx
6.0
dvdz
6.0
CRAP 5.5
1 package App::SeismicUnixGui::sunix::model::susynlvcw;
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 SUSYNLVCW - SYNthetic seismograms for Linear Velocity function
25  
26 for mode Converted Waves
27  
28  
29  
30 susynlvcw >outfile [optional parameters]
31  
32  
33  
34 Optional Parameters:
35  
36 nt=101 number of time samples
37  
38 dt=0.04 time sampling interval (sec)
39  
40 ft=0.0 first time (sec)
41  
42 nxo=1 number of source-receiver offsets
43  
44 dxo=0.05 offset sampling interval (km)
45  
46 fxo=0.0 first offset (km, see notes below)
47  
48 xo=fxo,fxo+dxo,... array of offsets (use only for non-uniform offsets)
49  
50 nxm=101 number of midpoints (see notes below)
51  
52 dxm=0.05 midpoint sampling interval (km)
53  
54 fxm=0.0 first midpoint (km)
55  
56 nxs=101 number of shotpoints (see notes below)
57  
58 dxs=0.05 shotpoint sampling interval (km)
59  
60 fxs=0.0 first shotpoint (km)
61  
62 x0=0.0 distance x at which v00 is specified
63  
64 z0=0.0 depth z at which v00 is specified
65  
66 v00=2.0 velocity at x0,z0 (km/sec)
67  
68 gamma=1.0 velocity ratio, upgoing/downgoing
69  
70 dvdx=0.0 derivative of velocity with distance x (dv/dx)
71  
72 dvdz=0.0 derivative of velocity with depth z (dv/dz)
73  
74 fpeak=0.2/dt peak frequency of symmetric Ricker wavelet (Hz)
75  
76 ref="1:1,2;4,2" reflector(s): "amplitude:x1,z1;x2,z2;x3,z3;...
77  
78 smooth=0 =1 for smooth (piecewise cubic spline) reflectors
79  
80 er=0 =1 for exploding reflector amplitudes
81  
82 ls=0 =1 for line source; default is point source
83  
84 ob=1 =1 to include obliquity factors
85  
86 sp=1 =1 to account for amplitude spreading
87  
88 =0 for constant amplitudes throught out
89  
90 tmin=10.0*dt minimum time of interest (sec)
91  
92 ndpfz=5 number of diffractors per Fresnel zone
93  
94 verbose=0 =1 to print some useful information
95  
96  
97  
98 Notes:
99  
100  
101  
102 Offsets are signed - may be positive or negative. Receiver locations
103  
104 are computed by adding the signed offset to the source location.
105  
106  
107  
108 Specify either midpoint sampling or shotpoint sampling, but not both.
109  
110 If neither is specified, the default is the midpoint sampling above.
111  
112  
113  
114 More than one ref (reflector) may be specified. When obliquity factors
115  
116 are included, then only the left side of each reflector (as the x,z
117  
118 reflector coordinates are traversed) is reflecting. For example, if x
119  
120 coordinates increase, then the top side of a reflector is reflecting.
121  
122 Note that reflectors are encoded as quoted strings, with an optional
123  
124 reflector amplitude: preceding the x,z coordinates of each reflector.
125  
126 Default amplitude is 1.0 if amplitude: part of the string is omitted.
127  
128  
129  
130 Note that gamma<1 implies P-SV mode conversion, gamma>1 implies SV-P,
131  
132 and gamma=1 implies no mode conversion.
133  
134  
135  
136  
137  
138  
139  
140 based on Dave Hale's code susynlv, but modified
141  
142 by Mohammed Alfaraj to handle mode conversion
143  
144 Date of modification: 01/07/92
145  
146  
147  
148 Trace header fields set: trid, counit, ns, dt, delrt,
149  
150 tracl. tracr, fldr, tracf,
151  
152 cdp, cdpt, d2, f2, offset, sx, gx
153  
154  
155  
156 =head2 User's notes (Juan Lorenzo)
157 untested
158  
159 =cut
160  
161  
162 =head2 CHANGES and their DATES
163  
164 =cut
165  
166 use Moose;
167 our $VERSION = '0.0.1';
168  
169  
170 =head2 Import packages
171  
172 =cut
173  
174 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
175  
176 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
177 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
178  
179  
180 =head2 instantiation of packages
181  
182 =cut
183  
184 my $get = L_SU_global_constants->new();
185 my $Project = Project_config->new();
186 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
187 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
188 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
189  
190 my $var = $get->var();
191 my $on = $var->{_on};
192 my $off = $var->{_off};
193 my $true = $var->{_true};
194 my $false = $var->{_false};
195 my $empty_string = $var->{_empty_string};
196  
197 =head2 Encapsulated
198 hash of private variables
199  
200 =cut
201  
202 my $susynlvcw = {
203 _dt => '',
204 _dvdx => '',
205 _dvdz => '',
206 _dxm => '',
207 _dxo => '',
208 _dxs => '',
209 _er => '',
210 _fpeak => '',
211 _ft => '',
212 _fxm => '',
213 _fxo => '',
214 _fxs => '',
215 _gamma => '',
216 _ls => '',
217 _ndpfz => '',
218 _nt => '',
219 _nxm => '',
220 _nxo => '',
221 _nxs => '',
222 _ob => '',
223 _ref => '',
224 _smooth => '',
225 _sp => '',
226 _tmin => '',
227 _v00 => '',
228 _verbose => '',
229 _x0 => '',
230 _xo => '',
231 _z0 => '',
232 _Step => '',
233 _note => '',
234  
235 };
236  
237 =head2 sub Step
238  
239 collects switches and assembles bash instructions
240 by adding the program name
241  
242 =cut
243  
244 sub Step {
245  
246 $susynlvcw->{_Step} = 'susynlvcw'.$susynlvcw->{_Step};
247 return ( $susynlvcw->{_Step} );
248  
249 }
250  
251  
252 =head2 sub note
253  
254 collects switches and assembles bash instructions
255 by adding the program name
256  
257 =cut
258  
259 sub note {
260  
261 $susynlvcw->{_note} = 'susynlvcw'.$susynlvcw->{_note};
262 return ( $susynlvcw->{_note} );
263  
264 }
265  
266  
267  
268 =head2 sub clear
269  
270 =cut
271  
272 sub clear {
273  
274 $susynlvcw->{_dt} = '';
275 $susynlvcw->{_dvdx} = '';
276 $susynlvcw->{_dvdz} = '';
277 $susynlvcw->{_dxm} = '';
278 $susynlvcw->{_dxo} = '';
279 $susynlvcw->{_dxs} = '';
280 $susynlvcw->{_er} = '';
281 $susynlvcw->{_fpeak} = '';
282 $susynlvcw->{_ft} = '';
283 $susynlvcw->{_fxm} = '';
284 $susynlvcw->{_fxo} = '';
285 $susynlvcw->{_fxs} = '';
286 $susynlvcw->{_gamma} = '';
287 $susynlvcw->{_ls} = '';
288 $susynlvcw->{_ndpfz} = '';
289 $susynlvcw->{_nt} = '';
290 $susynlvcw->{_nxm} = '';
291 $susynlvcw->{_nxo} = '';
292 $susynlvcw->{_nxs} = '';
293 $susynlvcw->{_ob} = '';
294 $susynlvcw->{_ref} = '';
295 $susynlvcw->{_smooth} = '';
296 $susynlvcw->{_sp} = '';
297 $susynlvcw->{_tmin} = '';
298 $susynlvcw->{_v00} = '';
299 $susynlvcw->{_verbose} = '';
300 $susynlvcw->{_x0} = '';
301 $susynlvcw->{_xo} = '';
302 $susynlvcw->{_z0} = '';
303 $susynlvcw->{_Step} = '';
304 $susynlvcw->{_note} = '';
305 }
306  
307  
308 =head2 sub dt
309  
310  
311 =cut
312  
313 sub dt {
314  
315 my ( $self,$dt ) = @_;
316 if ( $dt ne $empty_string ) {
317  
318 $susynlvcw->{_dt} = $dt;
319 $susynlvcw->{_note} = $susynlvcw->{_note}.' dt='.$susynlvcw->{_dt};
320 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dt='.$susynlvcw->{_dt};
321  
322 } else {
323 print("susynlvcw, dt, missing dt,\n");
324 }
325 }
326  
327  
328 =head2 sub dvdx
329  
330  
331 =cut
332  
333 sub dvdx {
334  
335 my ( $self,$dvdx ) = @_;
336 if ( $dvdx ne $empty_string ) {
337  
338 $susynlvcw->{_dvdx} = $dvdx;
339 $susynlvcw->{_note} = $susynlvcw->{_note}.' dvdx='.$susynlvcw->{_dvdx};
340 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dvdx='.$susynlvcw->{_dvdx};
341  
342 } else {
343 print("susynlvcw, dvdx, missing dvdx,\n");
344 }
345 }
346  
347  
348 =head2 sub dvdz
349  
350  
351 =cut
352  
353 sub dvdz {
354  
355 my ( $self,$dvdz ) = @_;
356 if ( $dvdz ne $empty_string ) {
357  
358 $susynlvcw->{_dvdz} = $dvdz;
359 $susynlvcw->{_note} = $susynlvcw->{_note}.' dvdz='.$susynlvcw->{_dvdz};
360 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dvdz='.$susynlvcw->{_dvdz};
361  
362 } else {
363 print("susynlvcw, dvdz, missing dvdz,\n");
364 }
365 }
366  
367  
368 =head2 sub dxm
369  
370  
371 =cut
372  
373 sub dxm {
374  
375 my ( $self,$dxm ) = @_;
376 if ( $dxm ne $empty_string ) {
377  
378 $susynlvcw->{_dxm} = $dxm;
379 $susynlvcw->{_note} = $susynlvcw->{_note}.' dxm='.$susynlvcw->{_dxm};
380 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dxm='.$susynlvcw->{_dxm};
381  
382 } else {
383 print("susynlvcw, dxm, missing dxm,\n");
384 }
385 }
386  
387  
388 =head2 sub dxo
389  
390  
391 =cut
392  
393 sub dxo {
394  
395 my ( $self,$dxo ) = @_;
396 if ( $dxo ne $empty_string ) {
397  
398 $susynlvcw->{_dxo} = $dxo;
399 $susynlvcw->{_note} = $susynlvcw->{_note}.' dxo='.$susynlvcw->{_dxo};
400 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dxo='.$susynlvcw->{_dxo};
401  
402 } else {
403 print("susynlvcw, dxo, missing dxo,\n");
404 }
405 }
406  
407  
408 =head2 sub dxs
409  
410  
411 =cut
412  
413 sub dxs {
414  
415 my ( $self,$dxs ) = @_;
416 if ( $dxs ne $empty_string ) {
417  
418 $susynlvcw->{_dxs} = $dxs;
419 $susynlvcw->{_note} = $susynlvcw->{_note}.' dxs='.$susynlvcw->{_dxs};
420 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' dxs='.$susynlvcw->{_dxs};
421  
422 } else {
423 print("susynlvcw, dxs, missing dxs,\n");
424 }
425 }
426  
427  
428 =head2 sub er
429  
430  
431 =cut
432  
433 sub er {
434  
435 my ( $self,$er ) = @_;
436 if ( $er ne $empty_string ) {
437  
438 $susynlvcw->{_er} = $er;
439 $susynlvcw->{_note} = $susynlvcw->{_note}.' er='.$susynlvcw->{_er};
440 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' er='.$susynlvcw->{_er};
441  
442 } else {
443 print("susynlvcw, er, missing er,\n");
444 }
445 }
446  
447  
448 =head2 sub fpeak
449  
450  
451 =cut
452  
453 sub fpeak {
454  
455 my ( $self,$fpeak ) = @_;
456 if ( $fpeak ne $empty_string ) {
457  
458 $susynlvcw->{_fpeak} = $fpeak;
459 $susynlvcw->{_note} = $susynlvcw->{_note}.' fpeak='.$susynlvcw->{_fpeak};
460 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' fpeak='.$susynlvcw->{_fpeak};
461  
462 } else {
463 print("susynlvcw, fpeak, missing fpeak,\n");
464 }
465 }
466  
467  
468 =head2 sub ft
469  
470  
471 =cut
472  
473 sub ft {
474  
475 my ( $self,$ft ) = @_;
476 if ( $ft ne $empty_string ) {
477  
478 $susynlvcw->{_ft} = $ft;
479 $susynlvcw->{_note} = $susynlvcw->{_note}.' ft='.$susynlvcw->{_ft};
480 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' ft='.$susynlvcw->{_ft};
481  
482 } else {
483 print("susynlvcw, ft, missing ft,\n");
484 }
485 }
486  
487  
488 =head2 sub fxm
489  
490  
491 =cut
492  
493 sub fxm {
494  
495 my ( $self,$fxm ) = @_;
496 if ( $fxm ne $empty_string ) {
497  
498 $susynlvcw->{_fxm} = $fxm;
499 $susynlvcw->{_note} = $susynlvcw->{_note}.' fxm='.$susynlvcw->{_fxm};
500 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' fxm='.$susynlvcw->{_fxm};
501  
502 } else {
503 print("susynlvcw, fxm, missing fxm,\n");
504 }
505 }
506  
507  
508 =head2 sub fxo
509  
510  
511 =cut
512  
513 sub fxo {
514  
515 my ( $self,$fxo ) = @_;
516 if ( $fxo ne $empty_string ) {
517  
518 $susynlvcw->{_fxo} = $fxo;
519 $susynlvcw->{_note} = $susynlvcw->{_note}.' fxo='.$susynlvcw->{_fxo};
520 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' fxo='.$susynlvcw->{_fxo};
521  
522 } else {
523 print("susynlvcw, fxo, missing fxo,\n");
524 }
525 }
526  
527  
528 =head2 sub fxs
529  
530  
531 =cut
532  
533 sub fxs {
534  
535 my ( $self,$fxs ) = @_;
536 if ( $fxs ne $empty_string ) {
537  
538 $susynlvcw->{_fxs} = $fxs;
539 $susynlvcw->{_note} = $susynlvcw->{_note}.' fxs='.$susynlvcw->{_fxs};
540 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' fxs='.$susynlvcw->{_fxs};
541  
542 } else {
543 print("susynlvcw, fxs, missing fxs,\n");
544 }
545 }
546  
547  
548 =head2 sub gamma
549  
550  
551 =cut
552  
553 sub gamma {
554  
555 my ( $self,$gamma ) = @_;
556 if ( $gamma ne $empty_string ) {
557  
558 $susynlvcw->{_gamma} = $gamma;
559 $susynlvcw->{_note} = $susynlvcw->{_note}.' gamma='.$susynlvcw->{_gamma};
560 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' gamma='.$susynlvcw->{_gamma};
561  
562 } else {
563 print("susynlvcw, gamma, missing gamma,\n");
564 }
565 }
566  
567  
568 =head2 sub ls
569  
570  
571 =cut
572  
573 sub ls {
574  
575 my ( $self,$ls ) = @_;
576 if ( $ls ne $empty_string ) {
577  
578 $susynlvcw->{_ls} = $ls;
579 $susynlvcw->{_note} = $susynlvcw->{_note}.' ls='.$susynlvcw->{_ls};
580 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' ls='.$susynlvcw->{_ls};
581  
582 } else {
583 print("susynlvcw, ls, missing ls,\n");
584 }
585 }
586  
587  
588 =head2 sub ndpfz
589  
590  
591 =cut
592  
593 sub ndpfz {
594  
595 my ( $self,$ndpfz ) = @_;
596 if ( $ndpfz ne $empty_string ) {
597  
598 $susynlvcw->{_ndpfz} = $ndpfz;
599 $susynlvcw->{_note} = $susynlvcw->{_note}.' ndpfz='.$susynlvcw->{_ndpfz};
600 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' ndpfz='.$susynlvcw->{_ndpfz};
601  
602 } else {
603 print("susynlvcw, ndpfz, missing ndpfz,\n");
604 }
605 }
606  
607  
608 =head2 sub nt
609  
610  
611 =cut
612  
613 sub nt {
614  
615 my ( $self,$nt ) = @_;
616 if ( $nt ne $empty_string ) {
617  
618 $susynlvcw->{_nt} = $nt;
619 $susynlvcw->{_note} = $susynlvcw->{_note}.' nt='.$susynlvcw->{_nt};
620 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' nt='.$susynlvcw->{_nt};
621  
622 } else {
623 print("susynlvcw, nt, missing nt,\n");
624 }
625 }
626  
627  
628 =head2 sub nxm
629  
630  
631 =cut
632  
633 sub nxm {
634  
635 my ( $self,$nxm ) = @_;
636 if ( $nxm ne $empty_string ) {
637  
638 $susynlvcw->{_nxm} = $nxm;
639 $susynlvcw->{_note} = $susynlvcw->{_note}.' nxm='.$susynlvcw->{_nxm};
640 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' nxm='.$susynlvcw->{_nxm};
641  
642 } else {
643 print("susynlvcw, nxm, missing nxm,\n");
644 }
645 }
646  
647  
648 =head2 sub nxo
649  
650  
651 =cut
652  
653 sub nxo {
654  
655 my ( $self,$nxo ) = @_;
656 if ( $nxo ne $empty_string ) {
657  
658 $susynlvcw->{_nxo} = $nxo;
659 $susynlvcw->{_note} = $susynlvcw->{_note}.' nxo='.$susynlvcw->{_nxo};
660 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' nxo='.$susynlvcw->{_nxo};
661  
662 } else {
663 print("susynlvcw, nxo, missing nxo,\n");
664 }
665 }
666  
667  
668 =head2 sub nxs
669  
670  
671 =cut
672  
673 sub nxs {
674  
675 my ( $self,$nxs ) = @_;
676 if ( $nxs ne $empty_string ) {
677  
678 $susynlvcw->{_nxs} = $nxs;
679 $susynlvcw->{_note} = $susynlvcw->{_note}.' nxs='.$susynlvcw->{_nxs};
680 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' nxs='.$susynlvcw->{_nxs};
681  
682 } else {
683 print("susynlvcw, nxs, missing nxs,\n");
684 }
685 }
686  
687  
688 =head2 sub ob
689  
690  
691 =cut
692  
693 sub ob {
694  
695 my ( $self,$ob ) = @_;
696 if ( $ob ne $empty_string ) {
697  
698 $susynlvcw->{_ob} = $ob;
699 $susynlvcw->{_note} = $susynlvcw->{_note}.' ob='.$susynlvcw->{_ob};
700 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' ob='.$susynlvcw->{_ob};
701  
702 } else {
703 print("susynlvcw, ob, missing ob,\n");
704 }
705 }
706  
707  
708 =head2 sub ref
709  
710  
711 =cut
712  
713 sub ref {
714  
715 my ( $self,$ref ) = @_;
716 if ( $ref ne $empty_string ) {
717  
718 $susynlvcw->{_ref} = $ref;
719 $susynlvcw->{_note} = $susynlvcw->{_note}.' ref='.$susynlvcw->{_ref};
720 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' ref='.$susynlvcw->{_ref};
721  
722 } else {
723 print("susynlvcw, ref, missing ref,\n");
724 }
725 }
726  
727  
728 =head2 sub smooth
729  
730  
731 =cut
732  
733 sub smooth {
734  
735 my ( $self,$smooth ) = @_;
736 if ( $smooth ne $empty_string ) {
737  
738 $susynlvcw->{_smooth} = $smooth;
739 $susynlvcw->{_note} = $susynlvcw->{_note}.' smooth='.$susynlvcw->{_smooth};
740 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' smooth='.$susynlvcw->{_smooth};
741  
742 } else {
743 print("susynlvcw, smooth, missing smooth,\n");
744 }
745 }
746  
747  
748 =head2 sub sp
749  
750  
751 =cut
752  
753 sub sp {
754  
755 my ( $self,$sp ) = @_;
756 if ( $sp ne $empty_string ) {
757  
758 $susynlvcw->{_sp} = $sp;
759 $susynlvcw->{_note} = $susynlvcw->{_note}.' sp='.$susynlvcw->{_sp};
760 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' sp='.$susynlvcw->{_sp};
761  
762 } else {
763 print("susynlvcw, sp, missing sp,\n");
764 }
765 }
766  
767  
768 =head2 sub tmin
769  
770  
771 =cut
772  
773 sub tmin {
774  
775 my ( $self,$tmin ) = @_;
776 if ( $tmin ne $empty_string ) {
777  
778 $susynlvcw->{_tmin} = $tmin;
779 $susynlvcw->{_note} = $susynlvcw->{_note}.' tmin='.$susynlvcw->{_tmin};
780 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' tmin='.$susynlvcw->{_tmin};
781  
782 } else {
783 print("susynlvcw, tmin, missing tmin,\n");
784 }
785 }
786  
787  
788 =head2 sub v00
789  
790  
791 =cut
792  
793 sub v00 {
794  
795 my ( $self,$v00 ) = @_;
796 if ( $v00 ne $empty_string ) {
797  
798 $susynlvcw->{_v00} = $v00;
799 $susynlvcw->{_note} = $susynlvcw->{_note}.' v00='.$susynlvcw->{_v00};
800 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' v00='.$susynlvcw->{_v00};
801  
802 } else {
803 print("susynlvcw, v00, missing v00,\n");
804 }
805 }
806  
807  
808 =head2 sub verbose
809  
810  
811 =cut
812  
813 sub verbose {
814  
815 my ( $self,$verbose ) = @_;
816 if ( $verbose ne $empty_string ) {
817  
818 $susynlvcw->{_verbose} = $verbose;
819 $susynlvcw->{_note} = $susynlvcw->{_note}.' verbose='.$susynlvcw->{_verbose};
820 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' verbose='.$susynlvcw->{_verbose};
821  
822 } else {
823 print("susynlvcw, verbose, missing verbose,\n");
824 }
825 }
826  
827  
828 =head2 sub x0
829  
830  
831 =cut
832  
833 sub x0 {
834  
835 my ( $self,$x0 ) = @_;
836 if ( $x0 ne $empty_string ) {
837  
838 $susynlvcw->{_x0} = $x0;
839 $susynlvcw->{_note} = $susynlvcw->{_note}.' x0='.$susynlvcw->{_x0};
840 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' x0='.$susynlvcw->{_x0};
841  
842 } else {
843 print("susynlvcw, x0, missing x0,\n");
844 }
845 }
846  
847  
848 =head2 sub xo
849  
850  
851 =cut
852  
853 sub xo {
854  
855 my ( $self,$xo ) = @_;
856 if ( $xo ne $empty_string ) {
857  
858 $susynlvcw->{_xo} = $xo;
859 $susynlvcw->{_note} = $susynlvcw->{_note}.' xo='.$susynlvcw->{_xo};
860 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' xo='.$susynlvcw->{_xo};
861  
862 } else {
863 print("susynlvcw, xo, missing xo,\n");
864 }
865 }
866  
867  
868 =head2 sub z0
869  
870  
871 =cut
872  
873 sub z0 {
874  
875 my ( $self,$z0 ) = @_;
876 if ( $z0 ne $empty_string ) {
877  
878 $susynlvcw->{_z0} = $z0;
879 $susynlvcw->{_note} = $susynlvcw->{_note}.' z0='.$susynlvcw->{_z0};
880 $susynlvcw->{_Step} = $susynlvcw->{_Step}.' z0='.$susynlvcw->{_z0};
881  
882 } else {
883 print("susynlvcw, z0, missing z0,\n");
884 }
885 }
886  
887  
888 =head2 sub get_max_index
889  
890 max index = number of input variables -1
891
892 =cut
893
894 sub get_max_index {
895 my ($self) = @_;
896 my $max_index = 28;
897  
898 return($max_index);
899 }
900
901
902 1;