lib/App/SeismicUnixGui/sunix/par/unif2aniso.pm untested

filter: Statementstmt 0.0% 0 / 358 Branchbran 0.0% 0 / 92 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 54 Podpod 0.0% 0 / 50 totaltotal 0.0% 0 / 554 CC 47 SCAR 17.4
CC
47
Cov
0%
c11_file
6.0
c13_file
6.0
c15_file
6.0
CRAP 5.7
1 package App::SeismicUnixGui::sunix::par::unif2aniso;
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  
25 UNIF2ANISO - generate a 2-D UNIFormly sampled profile of elastic
26 constants from a layered model.
27  
28  
29  
30 unif2aniso < infile [Parameters]
31  
32  
33  
34 Required Parameters:
35  
36 none
37  
38  
39  
40 Optional Parameters:
41  
42 ninf=5 number of interfaces
43  
44 nx=100 number of x samples (2nd dimension)
45  
46 nz=100 number of z samples (1st dimension)
47  
48 dx=10 x sampling interval
49  
50 dz=10 z sampling interval
51  
52  
53  
54 npmax=201 maximum number of points on interfaces
55  
56  
57  
58 fx=0.0 first x sample
59  
60 fz=0.0 first z sample
61  
62  
63  
64  
65  
66 x0=0.0,0.0,..., distance x at which vp00 and vs00 are specified
67  
68 z0=0.0,0.0,..., depth z at which vp00 and vs00 are specified
69  
70  
71  
72 vp00=1500,2000,..., P-velocity at each x0,z0 (m/sec)
73  
74 vs00=866,1155..., S-velocity at each x0,z0 (m/sec)
75  
76 rho00=1000,1100,..., density at each x0,z0 (kg/m^3)
77  
78 q00=110,120,130,.., attenuation Q, at each x0,z0 (kg/m^3)
79  
80  
81  
82 eps00=0,0,0..., Thomsen or Sayers epsilon
83  
84 delta00=0,0,0..., Thomsen or Sayers delta
85  
86 gamma00=0,0,0..., Thomsen or Sayers gamma
87  
88  
89  
90 dqdx=0.0,0.0,..., x-derivative of Q (d q/dx)
91  
92 dqdz=0.0,0.0,..., z-derivative of Q (d q/dz)
93  
94  
95  
96 drdx=0.0,0.0,..., x-derivative of density (d rho/dx)
97  
98 drdz=0.0,0.0,..., z-derivative of density (d rho/dz)
99  
100  
101  
102 dvpdx=0.0,0.0,..., x-derivative of P-velocity (dvp/dx)
103  
104 dvpdz=0.0,0.0,..., z-derivative of P-velocity (dvs/dz)
105  
106  
107  
108 dvsdx=0.0,0.0,..., x-derivative of S-velocity (dvs/dx)
109  
110 dvsdz=0.0,0.0,..., z-derivative of S-velocity (dvs/dz)
111  
112  
113  
114 dedx=0.0,0.0,..., x-derivative of epsilon (de/dx)
115  
116 dedz=0.0,0.0,..., z-derivative of epsilon with depth z (de/dz)
117  
118  
119  
120 dddx=0.0,0.0,..., x-derivative of delta (dd/dx)
121  
122 dddz=0.0,0.0,..., z-derivative of delta (dd/dz)
123  
124  
125  
126 dgdz=0.0,0.0,..., x-derivative of gamma (dg/dz)
127  
128 dgdx=0.0,0.0,..., z-derivative of gamma (dg/dx)
129  
130  
131  
132 phi00=0,0,..., rotation angle(s) in each layer
133  
134  
135  
136 ...output filenames
137  
138 c11_file=c11_file output filename for c11 values
139  
140 c13_file=c13_file output filename for c13 values
141  
142 c15_file=c15_file output filename for c15 values
143  
144 c33_file=c33_file output filename for c33 values
145  
146 c35_file=c35_file output filename for c35 values
147  
148 c44_file=c44_file output filename for c44 values
149  
150 c55_file=c55_file output filename for c55 values
151  
152 c66_file=c66_file output filename for c66 values
153  
154  
155  
156 rho_file=rho_file output filename for density values
157  
158 q_file=q_file output filename for Q values
159  
160  
161  
162 paramtype=1 =1 Thomsen parameters, =0 Sayers parameters(see below)
163  
164 method=linear for linear interpolation of interface
165  
166 =mono for monotonic cubic interpolation of interface
167  
168 =akima for Akima's cubic interpolation of interface
169  
170 =spline for cubic spline interpolation of interface
171  
172  
173  
174 tfile= =testfilename if set, a sample input dataset is
175  
176 output to "testfilename".
177
178 prevents completion of demos -JL 7.14.21
179  
180  
181  
182 Notes:
183  
184 The input file is an ASCII file containing x z values representing a
185  
186 piecewise continuous velocity model with a flat surface on top.
187  
188  
189  
190 The surface and each successive boundary between media is represented
191  
192 by a list of selected x z pairs written column form. The first and
193  
194 last x values must be the same for all boundaries. Use the entry
195  
196 1.0 -99999 to separate the entries for successive boundaries. No
197  
198 boundary may cross another. Note that the choice of the method of
199  
200 interpolation may cause boundaries to cross that do not appear to
201  
202 cross in the input data file.
203  
204  
205  
206 The number of interfaces is specified by the parameter "ninf". This
207  
208 number does not include the top surface of the model. The input data
209  
210 format is the same as a CSHOT model file with all comments removed.
211  
212  
213  
214 The algorithm works by transforming the P-wavespeed , S-wavespeed,
215  
216 density and the Thomsen or Sayers parameters epsilon, delta, and gamma
217  
218 into elastic stiffness coefficients. Furthermore, the user can specify
219  
220 rotations, phi, to the elasticity tensor in each layer.
221  
222  
223  
224 Common ranges of Thomsen parameters are
225  
226 epsilon: 0.0 -> 0.5
227  
228 delta: -0.2 -> 0.4
229  
230 gamma: 0.0 -> 0.4
231  
232  
233  
234 If only P-wave, S-wave velocities and density is given as input,
235  
236 the model is, by definition, isotropic.
237  
238  
239  
240 If files containing Thomsen/Sayers parameters are given, the model
241  
242 will be assumed to have VTI symmetry.
243  
244  
245  
246 Example using test input file generating feature:
247  
248 unif2aniso tfile=testfilename produces a 5 interface demonstration model
249  
250 unif2aniso < testfilename
251  
252 ximage < c11_file n1=100 n2=100
253  
254 ximage < c13_file n1=100 n2=100
255  
256 ximage < c15_file n1=100 n2=100
257  
258 ximage < c33_file n1=100 n2=100
259  
260 ximage < c35_file n1=100 n2=100
261  
262 ximage < c44_file n1=100 n2=100
263  
264 ximage < c55_file n1=100 n2=100
265  
266 ximage < c66_file n1=100 n2=100
267  
268 ximage < rho_file n1=100 n2=100
269  
270 ximage < q_file n1=100 n2=100
271  
272  
273  
274  
275  
276  
277  
278 Credits:
279  
280 CWP: John Stockwell, April 2005.
281  
282 CWP: based on program unif2 by Zhenyue Liu, 1994
283  
284  
285  
286  
287  
288 =head2 CHANGES and their DATES
289  
290 =cut
291  
292 use Moose;
293 our $VERSION = '0.0.1';
294  
295 =head2 Import packages
296  
297 =cut
298  
299 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
300  
301 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
302 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
303  
304 =head2 instantiation of packages
305  
306 =cut
307  
308 my $get = L_SU_global_constants->new();
309 my $Project = Project_config->new();
310 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
311 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
312 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
313 my $PL_SEISMIC = $Project->PL_SEISMIC();
314  
315 my $var = $get->var();
316 my $on = $var->{_on};
317 my $off = $var->{_off};
318 my $true = $var->{_true};
319 my $false = $var->{_false};
320 my $empty_string = $var->{_empty_string};
321  
322 =head2 Encapsulated
323 hash of private variables
324  
325 =cut
326  
327 my $unif2aniso = {
328 _aniso => '',
329 _c11_file => '',
330 _c13_file => '',
331 _c15_file => '',
332 _c33_file => '',
333 _c35_file => '',
334 _c44_file => '',
335 _c55_file => '',
336 _c66_file => '',
337 _dddx => '',
338 _dddz => '',
339 _dedx => '',
340 _dedz => '',
341 _delta00 => '',
342 _dgdx => '',
343 _dgdz => '',
344 _dqdx => '',
345 _dqdz => '',
346 _drdx => '',
347 _drdz => '',
348 _dvpdx => '',
349 _dvpdz => '',
350 _dvsdx => '',
351 _dvsdz => '',
352 _dx => '',
353 _dz => '',
354 _eps00 => '',
355 _fx => '',
356 _fz => '',
357 _gamma00 => '',
358 _method => '',
359 _n1 => '',
360 _ninf => '',
361 _npmax => '',
362 _nx => '',
363 _nz => '',
364 _paramtype => '',
365 _phi00 => '',
366 _q00 => '',
367 _q_file => '',
368 _rho00 => '',
369 _rho_file => '',
370 _tfile => '',
371 _vp00 => '',
372 _vs00 => '',
373 _x0 => '',
374 _z0 => '',
375 _Step => '',
376 _note => '',
377  
378 };
379  
380 =head2 sub Step
381  
382 collects switches and assembles bash instructions
383 by adding the program name
384  
385 unif2aniso writes anisotropy files locally wherever the executable
386 is run
387  
388 =cut
389  
390 sub Step {
391  
392 $unif2aniso->{_Step} = "cd $PL_SEISMIC \n".'unif2aniso' . $unif2aniso->{_Step};
393 return ( $unif2aniso->{_Step} );
394  
395 }
396  
397 =head2 sub note
398  
399 collects switches and assembles bash instructions
400 by adding the program name
401  
402 =cut
403  
404 sub note {
405  
406 $unif2aniso->{_note} = 'unif2aniso' . $unif2aniso->{_note};
407 return ( $unif2aniso->{_note} );
408  
409 }
410  
411 =head2 sub clear
412  
413 =cut
414  
415 sub clear {
416  
417 $unif2aniso->{_aniso} = '';
418 $unif2aniso->{_c11_file} = '';
419 $unif2aniso->{_c13_file} = '';
420 $unif2aniso->{_c15_file} = '';
421 $unif2aniso->{_c33_file} = '';
422 $unif2aniso->{_c35_file} = '';
423 $unif2aniso->{_c44_file} = '';
424 $unif2aniso->{_c55_file} = '';
425 $unif2aniso->{_c66_file} = '';
426 $unif2aniso->{_dddx} = '';
427 $unif2aniso->{_dddz} = '';
428 $unif2aniso->{_dedx} = '';
429 $unif2aniso->{_dedz} = '';
430 $unif2aniso->{_delta00} = '';
431 $unif2aniso->{_dgdx} = '';
432 $unif2aniso->{_dgdz} = '';
433 $unif2aniso->{_dqdx} = '';
434 $unif2aniso->{_dqdz} = '';
435 $unif2aniso->{_drdx} = '';
436 $unif2aniso->{_drdz} = '';
437 $unif2aniso->{_dvpdx} = '';
438 $unif2aniso->{_dvpdz} = '';
439 $unif2aniso->{_dvsdx} = '';
440 $unif2aniso->{_dvsdz} = '';
441 $unif2aniso->{_dx} = '';
442 $unif2aniso->{_dz} = '';
443 $unif2aniso->{_eps00} = '';
444 $unif2aniso->{_fx} = '';
445 $unif2aniso->{_fz} = '';
446 $unif2aniso->{_gamma00} = '';
447 $unif2aniso->{_method} = '';
448 $unif2aniso->{_n1} = '';
449 $unif2aniso->{_ninf} = '';
450 $unif2aniso->{_npmax} = '';
451 $unif2aniso->{_nx} = '';
452 $unif2aniso->{_nz} = '';
453 $unif2aniso->{_paramtype} = '';
454 $unif2aniso->{_phi00} = '';
455 $unif2aniso->{_q00} = '';
456 $unif2aniso->{_q_file} = '';
457 $unif2aniso->{_rho00} = '';
458 $unif2aniso->{_rho_file} = '';
459 $unif2aniso->{_tfile} = '';
460 $unif2aniso->{_vp00} = '';
461 $unif2aniso->{_vs00} = '';
462 $unif2aniso->{_x0} = '';
463 $unif2aniso->{_z0} = '';
464 $unif2aniso->{_Step} = '';
465 $unif2aniso->{_note} = '';
466 }
467  
468 =head2 sub c11_file
469  
470  
471 =cut
472  
473 sub c11_file {
474  
475 my ( $self, $c11_file ) = @_;
476 if ( $c11_file ne $empty_string ) {
477  
478 $unif2aniso->{_c11_file} = $c11_file;
479 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c11_file=' . $unif2aniso->{_c11_file};
480 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c11_file=' . $unif2aniso->{_c11_file};
481  
482 } else {
483 print("unif2aniso, c11_file, missing c11_file,\n");
484 }
485 }
486  
487 =head2 sub c13_file
488  
489  
490 =cut
491  
492 sub c13_file {
493  
494 my ( $self, $c13_file ) = @_;
495 if ( $c13_file ne $empty_string ) {
496  
497 $unif2aniso->{_c13_file} = $c13_file;
498 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c13_file=' . $unif2aniso->{_c13_file};
499 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c13_file=' . $unif2aniso->{_c13_file};
500  
501 } else {
502 print("unif2aniso, c13_file, missing c13_file,\n");
503 }
504 }
505  
506 =head2 sub c15_file
507  
508  
509 =cut
510  
511 sub c15_file {
512  
513 my ( $self, $c15_file ) = @_;
514 if ( $c15_file ne $empty_string ) {
515  
516 $unif2aniso->{_c15_file} = $c15_file;
517 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c15_file=' . $unif2aniso->{_c15_file};
518 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c15_file=' . $unif2aniso->{_c15_file};
519  
520 } else {
521 print("unif2aniso, c15_file, missing c15_file,\n");
522 }
523 }
524  
525 =head2 sub c33_file
526  
527  
528 =cut
529  
530 sub c33_file {
531  
532 my ( $self, $c33_file ) = @_;
533 if ( $c33_file ne $empty_string ) {
534  
535 $unif2aniso->{_c33_file} = $c33_file;
536 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c33_file=' . $unif2aniso->{_c33_file};
537 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c33_file=' . $unif2aniso->{_c33_file};
538  
539 } else {
540 print("unif2aniso, c33_file, missing c33_file,\n");
541 }
542 }
543  
544 =head2 sub c35_file
545  
546  
547 =cut
548  
549 sub c35_file {
550  
551 my ( $self, $c35_file ) = @_;
552 if ( $c35_file ne $empty_string ) {
553  
554 $unif2aniso->{_c35_file} = $c35_file;
555 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c35_file=' . $unif2aniso->{_c35_file};
556 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c35_file=' . $unif2aniso->{_c35_file};
557  
558 } else {
559 print("unif2aniso, c35_file, missing c35_file,\n");
560 }
561 }
562  
563 =head2 sub c44_file
564  
565  
566 =cut
567  
568 sub c44_file {
569  
570 my ( $self, $c44_file ) = @_;
571 if ( $c44_file ne $empty_string ) {
572  
573 $unif2aniso->{_c44_file} = $c44_file;
574 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c44_file=' . $unif2aniso->{_c44_file};
575 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c44_file=' . $unif2aniso->{_c44_file};
576  
577 } else {
578 print("unif2aniso, c44_file, missing c44_file,\n");
579 }
580 }
581  
582 =head2 sub c55_file
583  
584  
585 =cut
586  
587 sub c55_file {
588  
589 my ( $self, $c55_file ) = @_;
590 if ( $c55_file ne $empty_string ) {
591  
592 $unif2aniso->{_c55_file} = $c55_file;
593 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c55_file=' . $unif2aniso->{_c55_file};
594 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c55_file=' . $unif2aniso->{_c55_file};
595  
596 } else {
597 print("unif2aniso, c55_file, missing c55_file,\n");
598 }
599 }
600  
601 =head2 sub c66_file
602  
603  
604 =cut
605  
606 sub c66_file {
607  
608 my ( $self, $c66_file ) = @_;
609 if ( $c66_file ne $empty_string ) {
610  
611 $unif2aniso->{_c66_file} = $c66_file;
612 $unif2aniso->{_note} = $unif2aniso->{_note} . ' c66_file=' . $unif2aniso->{_c66_file};
613 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' c66_file=' . $unif2aniso->{_c66_file};
614  
615 } else {
616 print("unif2aniso, c66_file, missing c66_file,\n");
617 }
618 }
619  
620 =head2 sub dddx
621  
622  
623 =cut
624  
625 sub dddx {
626  
627 my ( $self, $dddx ) = @_;
628 if ( $dddx ne $empty_string ) {
629  
630 $unif2aniso->{_dddx} = $dddx;
631 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dddx=' . $unif2aniso->{_dddx};
632 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dddx=' . $unif2aniso->{_dddx};
633  
634 } else {
635 print("unif2aniso, dddx, missing dddx,\n");
636 }
637 }
638  
639 =head2 sub dddz
640  
641  
642 =cut
643  
644 sub dddz {
645  
646 my ( $self, $dddz ) = @_;
647 if ( $dddz ne $empty_string ) {
648  
649 $unif2aniso->{_dddz} = $dddz;
650 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dddz=' . $unif2aniso->{_dddz};
651 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dddz=' . $unif2aniso->{_dddz};
652  
653 } else {
654 print("unif2aniso, dddz, missing dddz,\n");
655 }
656 }
657  
658 =head2 sub dedx
659  
660  
661 =cut
662  
663 sub dedx {
664  
665 my ( $self, $dedx ) = @_;
666 if ( $dedx ne $empty_string ) {
667  
668 $unif2aniso->{_dedx} = $dedx;
669 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dedx=' . $unif2aniso->{_dedx};
670 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dedx=' . $unif2aniso->{_dedx};
671  
672 } else {
673 print("unif2aniso, dedx, missing dedx,\n");
674 }
675 }
676  
677 =head2 sub dedz
678  
679  
680 =cut
681  
682 sub dedz {
683  
684 my ( $self, $dedz ) = @_;
685 if ( $dedz ne $empty_string ) {
686  
687 $unif2aniso->{_dedz} = $dedz;
688 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dedz=' . $unif2aniso->{_dedz};
689 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dedz=' . $unif2aniso->{_dedz};
690  
691 } else {
692 print("unif2aniso, dedz, missing dedz,\n");
693 }
694 }
695  
696 =head2 sub delta00
697  
698  
699 =cut
700  
701 sub delta00 {
702  
703 my ( $self, $delta00 ) = @_;
704 if ( $delta00 ne $empty_string ) {
705  
706 $unif2aniso->{_delta00} = $delta00;
707 $unif2aniso->{_note} = $unif2aniso->{_note} . ' delta00=' . $unif2aniso->{_delta00};
708 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' delta00=' . $unif2aniso->{_delta00};
709  
710 } else {
711 print("unif2aniso, delta00, missing delta00,\n");
712 }
713 }
714  
715 =head2 sub dgdx
716  
717  
718 =cut
719  
720 sub dgdx {
721  
722 my ( $self, $dgdx ) = @_;
723 if ( $dgdx ne $empty_string ) {
724  
725 $unif2aniso->{_dgdx} = $dgdx;
726 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dgdx=' . $unif2aniso->{_dgdx};
727 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dgdx=' . $unif2aniso->{_dgdx};
728  
729 } else {
730 print("unif2aniso, dgdx, missing dgdx,\n");
731 }
732 }
733  
734 =head2 sub dgdz
735  
736  
737 =cut
738  
739 sub dgdz {
740  
741 my ( $self, $dgdz ) = @_;
742 if ( $dgdz ne $empty_string ) {
743  
744 $unif2aniso->{_dgdz} = $dgdz;
745 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dgdz=' . $unif2aniso->{_dgdz};
746 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dgdz=' . $unif2aniso->{_dgdz};
747  
748 } else {
749 print("unif2aniso, dgdz, missing dgdz,\n");
750 }
751 }
752  
753 =head2 sub dqdx
754  
755  
756 =cut
757  
758 sub dqdx {
759  
760 my ( $self, $dqdx ) = @_;
761 if ( $dqdx ne $empty_string ) {
762  
763 $unif2aniso->{_dqdx} = $dqdx;
764 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dqdx=' . $unif2aniso->{_dqdx};
765 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dqdx=' . $unif2aniso->{_dqdx};
766  
767 } else {
768 print("unif2aniso, dqdx, missing dqdx,\n");
769 }
770 }
771  
772 =head2 sub dqdz
773  
774  
775 =cut
776  
777 sub dqdz {
778  
779 my ( $self, $dqdz ) = @_;
780 if ( $dqdz ne $empty_string ) {
781  
782 $unif2aniso->{_dqdz} = $dqdz;
783 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dqdz=' . $unif2aniso->{_dqdz};
784 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dqdz=' . $unif2aniso->{_dqdz};
785  
786 } else {
787 print("unif2aniso, dqdz, missing dqdz,\n");
788 }
789 }
790  
791 =head2 sub drdx
792  
793  
794 =cut
795  
796 sub drdx {
797  
798 my ( $self, $drdx ) = @_;
799 if ( $drdx ne $empty_string ) {
800  
801 $unif2aniso->{_drdx} = $drdx;
802 $unif2aniso->{_note} = $unif2aniso->{_note} . ' drdx=' . $unif2aniso->{_drdx};
803 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' drdx=' . $unif2aniso->{_drdx};
804  
805 } else {
806 print("unif2aniso, drdx, missing drdx,\n");
807 }
808 }
809  
810 =head2 sub drdz
811  
812  
813 =cut
814  
815 sub drdz {
816  
817 my ( $self, $drdz ) = @_;
818 if ( $drdz ne $empty_string ) {
819  
820 $unif2aniso->{_drdz} = $drdz;
821 $unif2aniso->{_note} = $unif2aniso->{_note} . ' drdz=' . $unif2aniso->{_drdz};
822 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' drdz=' . $unif2aniso->{_drdz};
823  
824 } else {
825 print("unif2aniso, drdz, missing drdz,\n");
826 }
827 }
828  
829 =head2 sub dvpdx
830  
831  
832 =cut
833  
834 sub dvpdx {
835  
836 my ( $self, $dvpdx ) = @_;
837 if ( $dvpdx ne $empty_string ) {
838  
839 $unif2aniso->{_dvpdx} = $dvpdx;
840 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dvpdx=' . $unif2aniso->{_dvpdx};
841 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dvpdx=' . $unif2aniso->{_dvpdx};
842  
843 } else {
844 print("unif2aniso, dvpdx, missing dvpdx,\n");
845 }
846 }
847  
848 =head2 sub dvpdz
849  
850  
851 =cut
852  
853 sub dvpdz {
854  
855 my ( $self, $dvpdz ) = @_;
856 if ( $dvpdz ne $empty_string ) {
857  
858 $unif2aniso->{_dvpdz} = $dvpdz;
859 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dvpdz=' . $unif2aniso->{_dvpdz};
860 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dvpdz=' . $unif2aniso->{_dvpdz};
861  
862 } else {
863 print("unif2aniso, dvpdz, missing dvpdz,\n");
864 }
865 }
866  
867 =head2 sub dvsdx
868  
869  
870 =cut
871  
872 sub dvsdx {
873  
874 my ( $self, $dvsdx ) = @_;
875 if ( $dvsdx ne $empty_string ) {
876  
877 $unif2aniso->{_dvsdx} = $dvsdx;
878 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dvsdx=' . $unif2aniso->{_dvsdx};
879 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dvsdx=' . $unif2aniso->{_dvsdx};
880  
881 } else {
882 print("unif2aniso, dvsdx, missing dvsdx,\n");
883 }
884 }
885  
886 =head2 sub dvsdz
887  
888  
889 =cut
890  
891 sub dvsdz {
892  
893 my ( $self, $dvsdz ) = @_;
894 if ( $dvsdz ne $empty_string ) {
895  
896 $unif2aniso->{_dvsdz} = $dvsdz;
897 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dvsdz=' . $unif2aniso->{_dvsdz};
898 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dvsdz=' . $unif2aniso->{_dvsdz};
899  
900 } else {
901 print("unif2aniso, dvsdz, missing dvsdz,\n");
902 }
903 }
904  
905 =head2 sub dx
906  
907  
908 =cut
909  
910 sub dx {
911  
912 my ( $self, $dx ) = @_;
913 if ( $dx ne $empty_string ) {
914  
915 $unif2aniso->{_dx} = $dx;
916 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dx=' . $unif2aniso->{_dx};
917 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dx=' . $unif2aniso->{_dx};
918  
919 } else {
920 print("unif2aniso, dx, missing dx,\n");
921 }
922 }
923  
924 =head2 sub dz
925  
926  
927 =cut
928  
929 sub dz {
930  
931 my ( $self, $dz ) = @_;
932 if ( $dz ne $empty_string ) {
933  
934 $unif2aniso->{_dz} = $dz;
935 $unif2aniso->{_note} = $unif2aniso->{_note} . ' dz=' . $unif2aniso->{_dz};
936 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' dz=' . $unif2aniso->{_dz};
937  
938 } else {
939 print("unif2aniso, dz, missing dz,\n");
940 }
941 }
942  
943 =head2 sub eps00
944  
945  
946 =cut
947  
948 sub eps00 {
949  
950 my ( $self, $eps00 ) = @_;
951 if ( $eps00 ne $empty_string ) {
952  
953 $unif2aniso->{_eps00} = $eps00;
954 $unif2aniso->{_note} = $unif2aniso->{_note} . ' eps00=' . $unif2aniso->{_eps00};
955 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' eps00=' . $unif2aniso->{_eps00};
956  
957 } else {
958 print("unif2aniso, eps00, missing eps00,\n");
959 }
960 }
961  
962 =head2 sub fx
963  
964  
965 =cut
966  
967 sub fx {
968  
969 my ( $self, $fx ) = @_;
970 if ( $fx ne $empty_string ) {
971  
972 $unif2aniso->{_fx} = $fx;
973 $unif2aniso->{_note} = $unif2aniso->{_note} . ' fx=' . $unif2aniso->{_fx};
974 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' fx=' . $unif2aniso->{_fx};
975  
976 } else {
977 print("unif2aniso, fx, missing fx,\n");
978 }
979 }
980  
981 =head2 sub fz
982  
983  
984 =cut
985  
986 sub fz {
987  
988 my ( $self, $fz ) = @_;
989 if ( $fz ne $empty_string ) {
990  
991 $unif2aniso->{_fz} = $fz;
992 $unif2aniso->{_note} = $unif2aniso->{_note} . ' fz=' . $unif2aniso->{_fz};
993 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' fz=' . $unif2aniso->{_fz};
994  
995 } else {
996 print("unif2aniso, fz, missing fz,\n");
997 }
998 }
999  
1000 =head2 sub gamma00
1001  
1002  
1003 =cut
1004  
1005 sub gamma00 {
1006  
1007 my ( $self, $gamma00 ) = @_;
1008 if ( $gamma00 ne $empty_string ) {
1009  
1010 $unif2aniso->{_gamma00} = $gamma00;
1011 $unif2aniso->{_note} = $unif2aniso->{_note} . ' gamma00=' . $unif2aniso->{_gamma00};
1012 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' gamma00=' . $unif2aniso->{_gamma00};
1013  
1014 } else {
1015 print("unif2aniso, gamma00, missing gamma00,\n");
1016 }
1017 }
1018  
1019 =head2 sub method
1020  
1021  
1022 =cut
1023  
1024 sub method {
1025  
1026 my ( $self, $method ) = @_;
1027 if ( $method ne $empty_string ) {
1028  
1029 $unif2aniso->{_method} = $method;
1030 $unif2aniso->{_note} = $unif2aniso->{_note} . ' method=' . $unif2aniso->{_method};
1031 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' method=' . $unif2aniso->{_method};
1032  
1033 } else {
1034 print("unif2aniso, method, missing method,\n");
1035 }
1036 }
1037  
1038 =head2 sub n1
1039  
1040  
1041 =cut
1042  
1043 sub n1 {
1044  
1045 my ( $self, $n1 ) = @_;
1046 if ( $n1 ne $empty_string ) {
1047  
1048 $unif2aniso->{_n1} = $n1;
1049 $unif2aniso->{_note} = $unif2aniso->{_note} . ' n1=' . $unif2aniso->{_n1};
1050 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' n1=' . $unif2aniso->{_n1};
1051  
1052 } else {
1053 print("unif2aniso, n1, missing n1,\n");
1054 }
1055 }
1056  
1057 =head2 sub ninf
1058  
1059  
1060 =cut
1061  
1062 sub ninf {
1063  
1064 my ( $self, $ninf ) = @_;
1065 if ( $ninf ne $empty_string ) {
1066  
1067 $unif2aniso->{_ninf} = $ninf;
1068 $unif2aniso->{_note} = $unif2aniso->{_note} . ' ninf=' . $unif2aniso->{_ninf};
1069 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' ninf=' . $unif2aniso->{_ninf};
1070  
1071 } else {
1072 print("unif2aniso, ninf, missing ninf,\n");
1073 }
1074 }
1075  
1076 =head2 sub npmax
1077  
1078  
1079 =cut
1080  
1081 sub npmax {
1082  
1083 my ( $self, $npmax ) = @_;
1084 if ( $npmax ne $empty_string ) {
1085  
1086 $unif2aniso->{_npmax} = $npmax;
1087 $unif2aniso->{_note} = $unif2aniso->{_note} . ' npmax=' . $unif2aniso->{_npmax};
1088 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' npmax=' . $unif2aniso->{_npmax};
1089  
1090 } else {
1091 print("unif2aniso, npmax, missing npmax,\n");
1092 }
1093 }
1094  
1095 =head2 sub nx
1096  
1097  
1098 =cut
1099  
1100 sub nx {
1101  
1102 my ( $self, $nx ) = @_;
1103 if ( $nx ne $empty_string ) {
1104  
1105 $unif2aniso->{_nx} = $nx;
1106 $unif2aniso->{_note} = $unif2aniso->{_note} . ' nx=' . $unif2aniso->{_nx};
1107 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' nx=' . $unif2aniso->{_nx};
1108  
1109 } else {
1110 print("unif2aniso, nx, missing nx,\n");
1111 }
1112 }
1113  
1114 =head2 sub nz
1115  
1116  
1117 =cut
1118  
1119 sub nz {
1120  
1121 my ( $self, $nz ) = @_;
1122 if ( $nz ne $empty_string ) {
1123  
1124 $unif2aniso->{_nz} = $nz;
1125 $unif2aniso->{_note} = $unif2aniso->{_note} . ' nz=' . $unif2aniso->{_nz};
1126 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' nz=' . $unif2aniso->{_nz};
1127  
1128 } else {
1129 print("unif2aniso, nz, missing nz,\n");
1130 }
1131 }
1132  
1133 =head2 sub paramtype
1134  
1135  
1136 =cut
1137  
1138 sub paramtype {
1139  
1140 my ( $self, $paramtype ) = @_;
1141 if ( $paramtype ne $empty_string ) {
1142  
1143 $unif2aniso->{_paramtype} = $paramtype;
1144 $unif2aniso->{_note} = $unif2aniso->{_note} . ' paramtype=' . $unif2aniso->{_paramtype};
1145 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' paramtype=' . $unif2aniso->{_paramtype};
1146  
1147 } else {
1148 print("unif2aniso, paramtype, missing paramtype,\n");
1149 }
1150 }
1151  
1152 =head2 sub phi00
1153  
1154  
1155 =cut
1156  
1157 sub phi00 {
1158  
1159 my ( $self, $phi00 ) = @_;
1160 if ( $phi00 ne $empty_string ) {
1161  
1162 $unif2aniso->{_phi00} = $phi00;
1163 $unif2aniso->{_note} = $unif2aniso->{_note} . ' phi00=' . $unif2aniso->{_phi00};
1164 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' phi00=' . $unif2aniso->{_phi00};
1165  
1166 } else {
1167 print("unif2aniso, phi00, missing phi00,\n");
1168 }
1169 }
1170  
1171 =head2 sub q00
1172  
1173  
1174 =cut
1175  
1176 sub q00 {
1177  
1178 my ( $self, $q00 ) = @_;
1179 if ( $q00 ne $empty_string ) {
1180  
1181 $unif2aniso->{_q00} = $q00;
1182 $unif2aniso->{_note} = $unif2aniso->{_note} . ' q00=' . $unif2aniso->{_q00};
1183 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' q00=' . $unif2aniso->{_q00};
1184  
1185 } else {
1186 print("unif2aniso, q00, missing q00,\n");
1187 }
1188 }
1189  
1190 =head2 sub q_file
1191  
1192  
1193 =cut
1194  
1195 sub q_file {
1196  
1197 my ( $self, $q_file ) = @_;
1198 if ( $q_file ne $empty_string ) {
1199  
1200 $unif2aniso->{_q_file} = $q_file;
1201 $unif2aniso->{_note} = $unif2aniso->{_note} . ' q_file=' . $unif2aniso->{_q_file};
1202 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' q_file=' . $unif2aniso->{_q_file};
1203  
1204 } else {
1205 print("unif2aniso, q_file, missing q_file,\n");
1206 }
1207 }
1208  
1209 =head2 sub rho00
1210  
1211  
1212 =cut
1213  
1214 sub rho00 {
1215  
1216 my ( $self, $rho00 ) = @_;
1217 if ( $rho00 ne $empty_string ) {
1218  
1219 $unif2aniso->{_rho00} = $rho00;
1220 $unif2aniso->{_note} = $unif2aniso->{_note} . ' rho00=' . $unif2aniso->{_rho00};
1221 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' rho00=' . $unif2aniso->{_rho00};
1222  
1223 } else {
1224 print("unif2aniso, rho00, missing rho00,\n");
1225 }
1226 }
1227  
1228 =head2 sub rho_file
1229  
1230  
1231 =cut
1232  
1233 sub rho_file {
1234  
1235 my ( $self, $rho_file ) = @_;
1236 if ( $rho_file ne $empty_string ) {
1237  
1238 $unif2aniso->{_rho_file} = $rho_file;
1239 $unif2aniso->{_note} = $unif2aniso->{_note} . ' rho_file=' . $unif2aniso->{_rho_file};
1240 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' rho_file=' . $unif2aniso->{_rho_file};
1241  
1242 } else {
1243 print("unif2aniso, rho_file, missing rho_file,\n");
1244 }
1245 }
1246  
1247 =head2 sub tfile
1248  
1249  
1250 =cut
1251  
1252 sub tfile {
1253  
1254 my ( $self, $tfile ) = @_;
1255 if ( $tfile ne $empty_string ) {
1256  
1257 $unif2aniso->{_tfile} = $tfile;
1258 $unif2aniso->{_note} = $unif2aniso->{_note} . ' tfile=' . $unif2aniso->{_tfile};
1259 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' tfile=' . $unif2aniso->{_tfile};
1260  
1261 } else {
1262 print("unif2aniso, tfile, missing tfile,\n");
1263 }
1264 }
1265  
1266 =head2 sub vp00
1267  
1268  
1269 =cut
1270  
1271 sub vp00 {
1272  
1273 my ( $self, $vp00 ) = @_;
1274 if ( $vp00 ne $empty_string ) {
1275  
1276 $unif2aniso->{_vp00} = $vp00;
1277 $unif2aniso->{_note} = $unif2aniso->{_note} . ' vp00=' . $unif2aniso->{_vp00};
1278 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' vp00=' . $unif2aniso->{_vp00};
1279  
1280 } else {
1281 print("unif2aniso, vp00, missing vp00,\n");
1282 }
1283 }
1284  
1285 =head2 sub vs00
1286  
1287  
1288 =cut
1289  
1290 sub vs00 {
1291  
1292 my ( $self, $vs00 ) = @_;
1293 if ( $vs00 ne $empty_string ) {
1294  
1295 $unif2aniso->{_vs00} = $vs00;
1296 $unif2aniso->{_note} = $unif2aniso->{_note} . ' vs00=' . $unif2aniso->{_vs00};
1297 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' vs00=' . $unif2aniso->{_vs00};
1298  
1299 } else {
1300 print("unif2aniso, vs00, missing vs00,\n");
1301 }
1302 }
1303  
1304 =head2 sub x0
1305  
1306  
1307 =cut
1308  
1309 sub x0 {
1310  
1311 my ( $self, $x0 ) = @_;
1312 if ( $x0 ne $empty_string ) {
1313  
1314 $unif2aniso->{_x0} = $x0;
1315 $unif2aniso->{_note} = $unif2aniso->{_note} . ' x0=' . $unif2aniso->{_x0};
1316 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' x0=' . $unif2aniso->{_x0};
1317  
1318 } else {
1319 print("unif2aniso, x0, missing x0,\n");
1320 }
1321 }
1322  
1323 =head2 sub z0
1324  
1325  
1326 =cut
1327  
1328 sub z0 {
1329  
1330 my ( $self, $z0 ) = @_;
1331 if ( $z0 ne $empty_string ) {
1332  
1333 $unif2aniso->{_z0} = $z0;
1334 $unif2aniso->{_note} = $unif2aniso->{_note} . ' z0=' . $unif2aniso->{_z0};
1335 $unif2aniso->{_Step} = $unif2aniso->{_Step} . ' z0=' . $unif2aniso->{_z0};
1336  
1337 } else {
1338 print("unif2aniso, z0, missing z0,\n");
1339 }
1340 }
1341  
1342 =head2 sub get_max_index
1343  
1344 max index = number of input variables -1
1345
1346 =cut
1347  
1348 sub get_max_index {
1349 my ($self) = @_;
1350 my $max_index = 42;
1351  
1352 return ($max_index);
1353 }
1354  
1355 1;