« lib/App/SeismicUnixGui/sunix/model/susynlvfti.pm
↑ Summary
lib/App/SeismicUnixGui/big_streams/iPick.pl »
| 1 | package App::SeismicUnixGui::sunix::par::makevel; | ||
| 2 | |||
| 3 | =head1 DOCUMENTATION | ||
| 4 | |||
| 5 | =head2 SYNOPSIS | ||
| 6 | |||
| 7 | PERL PROGRAM NAME: MAKEVEL - MAKE a VELocity function v(x,y,z) | ||
| 8 | AUTHOR: Juan Lorenzo (Perl module only) | ||
| 9 | DATE: | ||
| 10 | DESCRIPTION: | ||
| 11 | Version: | ||
| 12 | |||
| 13 | =head2 USE | ||
| 14 | |||
| 15 | =head3 NOTES | ||
| 16 | |||
| 17 | =head4 Examples | ||
| 18 | |||
| 19 | =head3 SEISMIC UNIX NOTES | ||
| 20 | |||
| 21 | MAKEVEL - MAKE a VELocity function v(x,y,z) | ||
| 22 | |||
| 23 | makevel > outfile nx= nz= [optional parameters] | ||
| 24 | |||
| 25 | Required Parameters: | ||
| 26 | nx= number of x samples (3rd dimension) | ||
| 27 | nz= number of z samples (1st dimension) | ||
| 28 | |||
| 29 | Optional Parameters: | ||
| 30 | ny=1 number of y samples (2nd dimension) | ||
| 31 | dx=1.0 x sampling interval | ||
| 32 | fx=0.0 first x sample | ||
| 33 | dy=1.0 y sampling interval | ||
| 34 | fy=0.0 first y sample | ||
| 35 | dz=1.0 z sampling interval | ||
| 36 | fz=0.0 first z sample | ||
| 37 | v000=2.0 velocity at (x=0,y=0,z=0) | ||
| 38 | dvdx=0.0 velocity gradient with respect to x | ||
| 39 | dvdy=0.0 velocity gradient with respect to y | ||
| 40 | dvdz=0.0 velocity gradient with respect to z | ||
| 41 | vlens=0.0 velocity perturbation in parabolic lens | ||
| 42 | tlens=0.0 thickness of parabolic lens | ||
| 43 | dlens=0.0 diameter of parabolic lens | ||
| 44 | xlens= x coordinate of center of parabolic lens | ||
| 45 | ylens= y coordinate of center of parabolic lens | ||
| 46 | zlens= z coordinate of center of parabolic lens | ||
| 47 | vran=0.0 standard deviation of random perturbation | ||
| 48 | vzfile= file containing v(z) profile | ||
| 49 | vzran=0.0 standard deviation of random perturbation to v(z) | ||
| 50 | vzc=0.0 v(z) chirp amplitude | ||
| 51 | z1c=fz z at which to begin chirp | ||
| 52 | z2c=fz+(nz-1)*dz z at which to end chirp | ||
| 53 | l1c=dz wavelength at beginning of chirp | ||
| 54 | l2c=dz wavelength at end of chirp | ||
| 55 | exc=1.0 exponent of chirp | ||
| 56 | |||
| 57 | =head2 CHANGES and their DATES | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||
| 61 | use Moose; | ||
| 62 | our $VERSION = '0.0.1'; | ||
| 63 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 64 | |||
| 65 | my $get = L_SU_global_constants->new(); | ||
| 66 | |||
| 67 | my $var = $get->var(); | ||
| 68 | my $empty_string = $var->{_empty_string}; | ||
| 69 | |||
| 70 | my $makevel = { | ||
| 71 | _dlens => '', | ||
| 72 | _dvdx => '', | ||
| 73 | _dvdy => '', | ||
| 74 | _dvdz => '', | ||
| 75 | _dx => '', | ||
| 76 | _dy => '', | ||
| 77 | _dz => '', | ||
| 78 | _exc => '', | ||
| 79 | _fx => '', | ||
| 80 | _fy => '', | ||
| 81 | _fz => '', | ||
| 82 | _l1c => '', | ||
| 83 | _l2c => '', | ||
| 84 | _nx => '', | ||
| 85 | _ny => '', | ||
| 86 | _nz => '', | ||
| 87 | _tlens => '', | ||
| 88 | _v000 => '', | ||
| 89 | _vlens => '', | ||
| 90 | _vran => '', | ||
| 91 | _vzc => '', | ||
| 92 | _vzfile => '', | ||
| 93 | _vzran => '', | ||
| 94 | _xlens => '', | ||
| 95 | _ylens => '', | ||
| 96 | _z1c => '', | ||
| 97 | _z2c => '', | ||
| 98 | _zlens => '', | ||
| 99 | _Step => '', | ||
| 100 | _note => '', | ||
| 101 | }; | ||
| 102 | |||
| 103 | =head2 sub Step | ||
| 104 | |||
| 105 | collects switches and assembles bash instructions | ||
| 106 | by adding the program name | ||
| 107 | |||
| 108 | =cut | ||
| 109 | |||
| 110 | sub Step { | ||
| 111 | |||
| 112 | $makevel->{_Step} = 'makevel' . $makevel->{_Step}; | ||
| 113 | return ( $makevel->{_Step} ); | ||
| 114 | |||
| 115 | } | ||
| 116 | |||
| 117 | =head2 sub note | ||
| 118 | |||
| 119 | collects switches and assembles bash instructions | ||
| 120 | by adding the program name | ||
| 121 | |||
| 122 | =cut | ||
| 123 | |||
| 124 | sub note { | ||
| 125 | |||
| 126 | $makevel->{_note} = 'makevel' . $makevel->{_note}; | ||
| 127 | return ( $makevel->{_note} ); | ||
| 128 | |||
| 129 | } | ||
| 130 | |||
| 131 | =head2 sub clear | ||
| 132 | |||
| 133 | =cut | ||
| 134 | |||
| 135 | sub clear { | ||
| 136 | |||
| 137 | $makevel->{_dlens} = ''; | ||
| 138 | $makevel->{_dvdx} = ''; | ||
| 139 | $makevel->{_dvdy} = ''; | ||
| 140 | $makevel->{_dvdz} = ''; | ||
| 141 | $makevel->{_dx} = ''; | ||
| 142 | $makevel->{_dy} = ''; | ||
| 143 | $makevel->{_dz} = ''; | ||
| 144 | $makevel->{_exc} = ''; | ||
| 145 | $makevel->{_fx} = ''; | ||
| 146 | $makevel->{_fy} = ''; | ||
| 147 | $makevel->{_fz} = ''; | ||
| 148 | $makevel->{_l1c} = ''; | ||
| 149 | $makevel->{_l2c} = ''; | ||
| 150 | $makevel->{_nx} = ''; | ||
| 151 | $makevel->{_ny} = ''; | ||
| 152 | $makevel->{_nz} = ''; | ||
| 153 | $makevel->{_tlens} = ''; | ||
| 154 | $makevel->{_v000} = ''; | ||
| 155 | $makevel->{_vlens} = ''; | ||
| 156 | $makevel->{_vran} = ''; | ||
| 157 | $makevel->{_vzc} = ''; | ||
| 158 | $makevel->{_vzfile} = ''; | ||
| 159 | $makevel->{_vzran} = ''; | ||
| 160 | $makevel->{_xlens} = ''; | ||
| 161 | $makevel->{_ylens} = ''; | ||
| 162 | $makevel->{_z1c} = ''; | ||
| 163 | $makevel->{_z2c} = ''; | ||
| 164 | $makevel->{_zlens} = ''; | ||
| 165 | $makevel->{_Step} = ''; | ||
| 166 | $makevel->{_note} = ''; | ||
| 167 | } | ||
| 168 | |||
| 169 | =head2 sub dlens | ||
| 170 | |||
| 171 | |||
| 172 | =cut | ||
| 173 | |||
| 174 | sub dlens { | ||
| 175 | |||
| 176 | my ( $self, $dlens ) = @_; | ||
| 177 | if ( $dlens ne $empty_string ) { | ||
| 178 | |||
| 179 | $makevel->{_dlens} = $dlens; | ||
| 180 | $makevel->{_note} = | ||
| 181 | $makevel->{_note} . ' dlens=' . $makevel->{_dlens}; | ||
| 182 | $makevel->{_Step} = | ||
| 183 | $makevel->{_Step} . ' dlens=' . $makevel->{_dlens}; | ||
| 184 | |||
| 185 | } | ||
| 186 | else { | ||
| 187 | print("makevel, dlens, missing dlens,\n"); | ||
| 188 | } | ||
| 189 | } | ||
| 190 | |||
| 191 | =head2 sub dvdx | ||
| 192 | |||
| 193 | |||
| 194 | =cut | ||
| 195 | |||
| 196 | sub dvdx { | ||
| 197 | |||
| 198 | my ( $self, $dvdx ) = @_; | ||
| 199 | if ( $dvdx ne $empty_string ) { | ||
| 200 | |||
| 201 | $makevel->{_dvdx} = $dvdx; | ||
| 202 | $makevel->{_note} = $makevel->{_note} . ' dvdx=' . $makevel->{_dvdx}; | ||
| 203 | $makevel->{_Step} = $makevel->{_Step} . ' dvdx=' . $makevel->{_dvdx}; | ||
| 204 | |||
| 205 | } | ||
| 206 | else { | ||
| 207 | print("makevel, dvdx, missing dvdx,\n"); | ||
| 208 | } | ||
| 209 | } | ||
| 210 | |||
| 211 | =head2 sub dvdy | ||
| 212 | |||
| 213 | |||
| 214 | =cut | ||
| 215 | |||
| 216 | sub dvdy { | ||
| 217 | |||
| 218 | my ( $self, $dvdy ) = @_; | ||
| 219 | if ( $dvdy ne $empty_string ) { | ||
| 220 | |||
| 221 | $makevel->{_dvdy} = $dvdy; | ||
| 222 | $makevel->{_note} = $makevel->{_note} . ' dvdy=' . $makevel->{_dvdy}; | ||
| 223 | $makevel->{_Step} = $makevel->{_Step} . ' dvdy=' . $makevel->{_dvdy}; | ||
| 224 | |||
| 225 | } | ||
| 226 | else { | ||
| 227 | print("makevel, dvdy, missing dvdy,\n"); | ||
| 228 | } | ||
| 229 | } | ||
| 230 | |||
| 231 | =head2 sub dvdz | ||
| 232 | |||
| 233 | |||
| 234 | =cut | ||
| 235 | |||
| 236 | sub dvdz { | ||
| 237 | |||
| 238 | my ( $self, $dvdz ) = @_; | ||
| 239 | if ( $dvdz ne $empty_string ) { | ||
| 240 | |||
| 241 | $makevel->{_dvdz} = $dvdz; | ||
| 242 | $makevel->{_note} = $makevel->{_note} . ' dvdz=' . $makevel->{_dvdz}; | ||
| 243 | $makevel->{_Step} = $makevel->{_Step} . ' dvdz=' . $makevel->{_dvdz}; | ||
| 244 | |||
| 245 | } | ||
| 246 | else { | ||
| 247 | print("makevel, dvdz, missing dvdz,\n"); | ||
| 248 | } | ||
| 249 | } | ||
| 250 | |||
| 251 | =head2 sub dx | ||
| 252 | |||
| 253 | |||
| 254 | =cut | ||
| 255 | |||
| 256 | sub dx { | ||
| 257 | |||
| 258 | my ( $self, $dx ) = @_; | ||
| 259 | if ( $dx ne $empty_string ) { | ||
| 260 | |||
| 261 | $makevel->{_dx} = $dx; | ||
| 262 | $makevel->{_note} = $makevel->{_note} . ' dx=' . $makevel->{_dx}; | ||
| 263 | $makevel->{_Step} = $makevel->{_Step} . ' dx=' . $makevel->{_dx}; | ||
| 264 | |||
| 265 | } | ||
| 266 | else { | ||
| 267 | print("makevel, dx, missing dx,\n"); | ||
| 268 | } | ||
| 269 | } | ||
| 270 | |||
| 271 | =head2 sub dy | ||
| 272 | |||
| 273 | |||
| 274 | =cut | ||
| 275 | |||
| 276 | sub dy { | ||
| 277 | |||
| 278 | my ( $self, $dy ) = @_; | ||
| 279 | if ( $dy ne $empty_string ) { | ||
| 280 | |||
| 281 | $makevel->{_dy} = $dy; | ||
| 282 | $makevel->{_note} = $makevel->{_note} . ' dy=' . $makevel->{_dy}; | ||
| 283 | $makevel->{_Step} = $makevel->{_Step} . ' dy=' . $makevel->{_dy}; | ||
| 284 | |||
| 285 | } | ||
| 286 | else { | ||
| 287 | print("makevel, dy, missing dy,\n"); | ||
| 288 | } | ||
| 289 | } | ||
| 290 | |||
| 291 | =head2 sub dz | ||
| 292 | |||
| 293 | |||
| 294 | =cut | ||
| 295 | |||
| 296 | sub dz { | ||
| 297 | |||
| 298 | my ( $self, $dz ) = @_; | ||
| 299 | if ( $dz ne $empty_string ) { | ||
| 300 | |||
| 301 | $makevel->{_dz} = $dz; | ||
| 302 | $makevel->{_note} = $makevel->{_note} . ' dz=' . $makevel->{_dz}; | ||
| 303 | $makevel->{_Step} = $makevel->{_Step} . ' dz=' . $makevel->{_dz}; | ||
| 304 | |||
| 305 | } | ||
| 306 | else { | ||
| 307 | print("makevel, dz, missing dz,\n"); | ||
| 308 | } | ||
| 309 | } | ||
| 310 | |||
| 311 | =head2 sub exc | ||
| 312 | |||
| 313 | |||
| 314 | =cut | ||
| 315 | |||
| 316 | sub exc { | ||
| 317 | |||
| 318 | my ( $self, $exc ) = @_; | ||
| 319 | if ( $exc ne $empty_string ) { | ||
| 320 | |||
| 321 | $makevel->{_exc} = $exc; | ||
| 322 | $makevel->{_note} = $makevel->{_note} . ' exc=' . $makevel->{_exc}; | ||
| 323 | $makevel->{_Step} = $makevel->{_Step} . ' exc=' . $makevel->{_exc}; | ||
| 324 | |||
| 325 | } | ||
| 326 | else { | ||
| 327 | print("makevel, exc, missing exc,\n"); | ||
| 328 | } | ||
| 329 | } | ||
| 330 | |||
| 331 | =head2 sub fx | ||
| 332 | |||
| 333 | |||
| 334 | =cut | ||
| 335 | |||
| 336 | sub fx { | ||
| 337 | |||
| 338 | my ( $self, $fx ) = @_; | ||
| 339 | if ( $fx ne $empty_string ) { | ||
| 340 | |||
| 341 | $makevel->{_fx} = $fx; | ||
| 342 | $makevel->{_note} = $makevel->{_note} . ' fx=' . $makevel->{_fx}; | ||
| 343 | $makevel->{_Step} = $makevel->{_Step} . ' fx=' . $makevel->{_fx}; | ||
| 344 | |||
| 345 | } | ||
| 346 | else { | ||
| 347 | print("makevel, fx, missing fx,\n"); | ||
| 348 | } | ||
| 349 | } | ||
| 350 | |||
| 351 | =head2 sub fy | ||
| 352 | |||
| 353 | |||
| 354 | =cut | ||
| 355 | |||
| 356 | sub fy { | ||
| 357 | |||
| 358 | my ( $self, $fy ) = @_; | ||
| 359 | if ( $fy ne $empty_string ) { | ||
| 360 | |||
| 361 | $makevel->{_fy} = $fy; | ||
| 362 | $makevel->{_note} = $makevel->{_note} . ' fy=' . $makevel->{_fy}; | ||
| 363 | $makevel->{_Step} = $makevel->{_Step} . ' fy=' . $makevel->{_fy}; | ||
| 364 | |||
| 365 | } | ||
| 366 | else { | ||
| 367 | print("makevel, fy, missing fy,\n"); | ||
| 368 | } | ||
| 369 | } | ||
| 370 | |||
| 371 | =head2 sub fz | ||
| 372 | |||
| 373 | |||
| 374 | =cut | ||
| 375 | |||
| 376 | sub fz { | ||
| 377 | |||
| 378 | my ( $self, $fz ) = @_; | ||
| 379 | if ( $fz ne $empty_string ) { | ||
| 380 | |||
| 381 | $makevel->{_fz} = $fz; | ||
| 382 | $makevel->{_note} = $makevel->{_note} . ' fz=' . $makevel->{_fz}; | ||
| 383 | $makevel->{_Step} = $makevel->{_Step} . ' fz=' . $makevel->{_fz}; | ||
| 384 | |||
| 385 | } | ||
| 386 | else { | ||
| 387 | print("makevel, fz, missing fz,\n"); | ||
| 388 | } | ||
| 389 | } | ||
| 390 | |||
| 391 | =head2 sub l1c | ||
| 392 | |||
| 393 | |||
| 394 | =cut | ||
| 395 | |||
| 396 | sub l1c { | ||
| 397 | |||
| 398 | my ( $self, $l1c ) = @_; | ||
| 399 | if ( $l1c ne $empty_string ) { | ||
| 400 | |||
| 401 | $makevel->{_l1c} = $l1c; | ||
| 402 | $makevel->{_note} = $makevel->{_note} . ' l1c=' . $makevel->{_l1c}; | ||
| 403 | $makevel->{_Step} = $makevel->{_Step} . ' l1c=' . $makevel->{_l1c}; | ||
| 404 | |||
| 405 | } | ||
| 406 | else { | ||
| 407 | print("makevel, l1c, missing l1c,\n"); | ||
| 408 | } | ||
| 409 | } | ||
| 410 | |||
| 411 | =head2 sub l2c | ||
| 412 | |||
| 413 | |||
| 414 | =cut | ||
| 415 | |||
| 416 | sub l2c { | ||
| 417 | |||
| 418 | my ( $self, $l2c ) = @_; | ||
| 419 | if ( $l2c ne $empty_string ) { | ||
| 420 | |||
| 421 | $makevel->{_l2c} = $l2c; | ||
| 422 | $makevel->{_note} = $makevel->{_note} . ' l2c=' . $makevel->{_l2c}; | ||
| 423 | $makevel->{_Step} = $makevel->{_Step} . ' l2c=' . $makevel->{_l2c}; | ||
| 424 | |||
| 425 | } | ||
| 426 | else { | ||
| 427 | print("makevel, l2c, missing l2c,\n"); | ||
| 428 | } | ||
| 429 | } | ||
| 430 | |||
| 431 | =head2 sub nx | ||
| 432 | |||
| 433 | |||
| 434 | =cut | ||
| 435 | |||
| 436 | sub nx { | ||
| 437 | |||
| 438 | my ( $self, $nx ) = @_; | ||
| 439 | if ( $nx ne $empty_string ) { | ||
| 440 | |||
| 441 | $makevel->{_nx} = $nx; | ||
| 442 | $makevel->{_note} = $makevel->{_note} . ' nx=' . $makevel->{_nx}; | ||
| 443 | $makevel->{_Step} = $makevel->{_Step} . ' nx=' . $makevel->{_nx}; | ||
| 444 | |||
| 445 | } | ||
| 446 | else { | ||
| 447 | print("makevel, nx, missing nx,\n"); | ||
| 448 | } | ||
| 449 | } | ||
| 450 | |||
| 451 | =head2 sub ny | ||
| 452 | |||
| 453 | |||
| 454 | =cut | ||
| 455 | |||
| 456 | sub ny { | ||
| 457 | |||
| 458 | my ( $self, $ny ) = @_; | ||
| 459 | if ( $ny ne $empty_string ) { | ||
| 460 | |||
| 461 | $makevel->{_ny} = $ny; | ||
| 462 | $makevel->{_note} = $makevel->{_note} . ' ny=' . $makevel->{_ny}; | ||
| 463 | $makevel->{_Step} = $makevel->{_Step} . ' ny=' . $makevel->{_ny}; | ||
| 464 | |||
| 465 | } | ||
| 466 | else { | ||
| 467 | print("makevel, ny, missing ny,\n"); | ||
| 468 | } | ||
| 469 | } | ||
| 470 | |||
| 471 | =head2 sub nz | ||
| 472 | |||
| 473 | |||
| 474 | =cut | ||
| 475 | |||
| 476 | sub nz { | ||
| 477 | |||
| 478 | my ( $self, $nz ) = @_; | ||
| 479 | if ( $nz ne $empty_string ) { | ||
| 480 | |||
| 481 | $makevel->{_nz} = $nz; | ||
| 482 | $makevel->{_note} = $makevel->{_note} . ' nz=' . $makevel->{_nz}; | ||
| 483 | $makevel->{_Step} = $makevel->{_Step} . ' nz=' . $makevel->{_nz}; | ||
| 484 | |||
| 485 | } | ||
| 486 | else { | ||
| 487 | print("makevel, nz, missing nz,\n"); | ||
| 488 | } | ||
| 489 | } | ||
| 490 | |||
| 491 | =head2 sub tlens | ||
| 492 | |||
| 493 | |||
| 494 | =cut | ||
| 495 | |||
| 496 | sub tlens { | ||
| 497 | |||
| 498 | my ( $self, $tlens ) = @_; | ||
| 499 | if ( $tlens ne $empty_string ) { | ||
| 500 | |||
| 501 | $makevel->{_tlens} = $tlens; | ||
| 502 | $makevel->{_note} = | ||
| 503 | $makevel->{_note} . ' tlens=' . $makevel->{_tlens}; | ||
| 504 | $makevel->{_Step} = | ||
| 505 | $makevel->{_Step} . ' tlens=' . $makevel->{_tlens}; | ||
| 506 | |||
| 507 | } | ||
| 508 | else { | ||
| 509 | print("makevel, tlens, missing tlens,\n"); | ||
| 510 | } | ||
| 511 | } | ||
| 512 | |||
| 513 | =head2 sub v000 | ||
| 514 | |||
| 515 | |||
| 516 | =cut | ||
| 517 | |||
| 518 | sub v000 { | ||
| 519 | |||
| 520 | my ( $self, $v000 ) = @_; | ||
| 521 | if ( $v000 ne $empty_string ) { | ||
| 522 | |||
| 523 | $makevel->{_v000} = $v000; | ||
| 524 | $makevel->{_note} = $makevel->{_note} . ' v000=' . $makevel->{_v000}; | ||
| 525 | $makevel->{_Step} = $makevel->{_Step} . ' v000=' . $makevel->{_v000}; | ||
| 526 | |||
| 527 | } | ||
| 528 | else { | ||
| 529 | print("makevel, v000, missing v000,\n"); | ||
| 530 | } | ||
| 531 | } | ||
| 532 | |||
| 533 | =head2 sub vlens | ||
| 534 | |||
| 535 | |||
| 536 | =cut | ||
| 537 | |||
| 538 | sub vlens { | ||
| 539 | |||
| 540 | my ( $self, $vlens ) = @_; | ||
| 541 | if ( $vlens ne $empty_string ) { | ||
| 542 | |||
| 543 | $makevel->{_vlens} = $vlens; | ||
| 544 | $makevel->{_note} = | ||
| 545 | $makevel->{_note} . ' vlens=' . $makevel->{_vlens}; | ||
| 546 | $makevel->{_Step} = | ||
| 547 | $makevel->{_Step} . ' vlens=' . $makevel->{_vlens}; | ||
| 548 | |||
| 549 | } | ||
| 550 | else { | ||
| 551 | print("makevel, vlens, missing vlens,\n"); | ||
| 552 | } | ||
| 553 | } | ||
| 554 | |||
| 555 | =head2 sub vran | ||
| 556 | |||
| 557 | |||
| 558 | =cut | ||
| 559 | |||
| 560 | sub vran { | ||
| 561 | |||
| 562 | my ( $self, $vran ) = @_; | ||
| 563 | if ( $vran ne $empty_string ) { | ||
| 564 | |||
| 565 | $makevel->{_vran} = $vran; | ||
| 566 | $makevel->{_note} = $makevel->{_note} . ' vran=' . $makevel->{_vran}; | ||
| 567 | $makevel->{_Step} = $makevel->{_Step} . ' vran=' . $makevel->{_vran}; | ||
| 568 | |||
| 569 | } | ||
| 570 | else { | ||
| 571 | print("makevel, vran, missing vran,\n"); | ||
| 572 | } | ||
| 573 | } | ||
| 574 | |||
| 575 | =head2 sub vzc | ||
| 576 | |||
| 577 | |||
| 578 | =cut | ||
| 579 | |||
| 580 | sub vzc { | ||
| 581 | |||
| 582 | my ( $self, $vzc ) = @_; | ||
| 583 | if ( $vzc ne $empty_string ) { | ||
| 584 | |||
| 585 | $makevel->{_vzc} = $vzc; | ||
| 586 | $makevel->{_note} = $makevel->{_note} . ' vzc=' . $makevel->{_vzc}; | ||
| 587 | $makevel->{_Step} = $makevel->{_Step} . ' vzc=' . $makevel->{_vzc}; | ||
| 588 | |||
| 589 | } | ||
| 590 | else { | ||
| 591 | print("makevel, vzc, missing vzc,\n"); | ||
| 592 | } | ||
| 593 | } | ||
| 594 | |||
| 595 | =head2 sub vzfile | ||
| 596 | |||
| 597 | |||
| 598 | =cut | ||
| 599 | |||
| 600 | sub vzfile { | ||
| 601 | |||
| 602 | my ( $self, $vzfile ) = @_; | ||
| 603 | if ( $vzfile ne $empty_string ) { | ||
| 604 | |||
| 605 | $makevel->{_vzfile} = $vzfile; | ||
| 606 | $makevel->{_note} = | ||
| 607 | $makevel->{_note} . ' vzfile=' . $makevel->{_vzfile}; | ||
| 608 | $makevel->{_Step} = | ||
| 609 | $makevel->{_Step} . ' vzfile=' . $makevel->{_vzfile}; | ||
| 610 | |||
| 611 | } | ||
| 612 | else { | ||
| 613 | print("makevel, vzfile, missing vzfile,\n"); | ||
| 614 | } | ||
| 615 | } | ||
| 616 | |||
| 617 | =head2 sub vzran | ||
| 618 | |||
| 619 | |||
| 620 | =cut | ||
| 621 | |||
| 622 | sub vzran { | ||
| 623 | |||
| 624 | my ( $self, $vzran ) = @_; | ||
| 625 | if ( $vzran ne $empty_string ) { | ||
| 626 | |||
| 627 | $makevel->{_vzran} = $vzran; | ||
| 628 | $makevel->{_note} = | ||
| 629 | $makevel->{_note} . ' vzran=' . $makevel->{_vzran}; | ||
| 630 | $makevel->{_Step} = | ||
| 631 | $makevel->{_Step} . ' vzran=' . $makevel->{_vzran}; | ||
| 632 | |||
| 633 | } | ||
| 634 | else { | ||
| 635 | print("makevel, vzran, missing vzran,\n"); | ||
| 636 | } | ||
| 637 | } | ||
| 638 | |||
| 639 | =head2 sub xlens | ||
| 640 | |||
| 641 | |||
| 642 | =cut | ||
| 643 | |||
| 644 | sub xlens { | ||
| 645 | |||
| 646 | my ( $self, $xlens ) = @_; | ||
| 647 | if ( $xlens ne $empty_string ) { | ||
| 648 | |||
| 649 | $makevel->{_xlens} = $xlens; | ||
| 650 | $makevel->{_note} = | ||
| 651 | $makevel->{_note} . ' xlens=' . $makevel->{_xlens}; | ||
| 652 | $makevel->{_Step} = | ||
| 653 | $makevel->{_Step} . ' xlens=' . $makevel->{_xlens}; | ||
| 654 | |||
| 655 | } | ||
| 656 | else { | ||
| 657 | print("makevel, xlens, missing xlens,\n"); | ||
| 658 | } | ||
| 659 | } | ||
| 660 | |||
| 661 | =head2 sub ylens | ||
| 662 | |||
| 663 | |||
| 664 | =cut | ||
| 665 | |||
| 666 | sub ylens { | ||
| 667 | |||
| 668 | my ( $self, $ylens ) = @_; | ||
| 669 | if ( $ylens ne $empty_string ) { | ||
| 670 | |||
| 671 | $makevel->{_ylens} = $ylens; | ||
| 672 | $makevel->{_note} = | ||
| 673 | $makevel->{_note} . ' ylens=' . $makevel->{_ylens}; | ||
| 674 | $makevel->{_Step} = | ||
| 675 | $makevel->{_Step} . ' ylens=' . $makevel->{_ylens}; | ||
| 676 | |||
| 677 | } | ||
| 678 | else { | ||
| 679 | print("makevel, ylens, missing ylens,\n"); | ||
| 680 | } | ||
| 681 | } | ||
| 682 | |||
| 683 | =head2 sub z1c | ||
| 684 | |||
| 685 | |||
| 686 | =cut | ||
| 687 | |||
| 688 | sub z1c { | ||
| 689 | |||
| 690 | my ( $self, $z1c ) = @_; | ||
| 691 | if ( $z1c ne $empty_string ) { | ||
| 692 | |||
| 693 | $makevel->{_z1c} = $z1c; | ||
| 694 | $makevel->{_note} = $makevel->{_note} . ' z1c=' . $makevel->{_z1c}; | ||
| 695 | $makevel->{_Step} = $makevel->{_Step} . ' z1c=' . $makevel->{_z1c}; | ||
| 696 | |||
| 697 | } | ||
| 698 | else { | ||
| 699 | print("makevel, z1c, missing z1c,\n"); | ||
| 700 | } | ||
| 701 | } | ||
| 702 | |||
| 703 | =head2 sub z2c | ||
| 704 | |||
| 705 | |||
| 706 | =cut | ||
| 707 | |||
| 708 | sub z2c { | ||
| 709 | |||
| 710 | my ( $self, $z2c ) = @_; | ||
| 711 | if ( $z2c ne $empty_string ) { | ||
| 712 | |||
| 713 | $makevel->{_z2c} = $z2c; | ||
| 714 | $makevel->{_note} = $makevel->{_note} . ' z2c=' . $makevel->{_z2c}; | ||
| 715 | $makevel->{_Step} = $makevel->{_Step} . ' z2c=' . $makevel->{_z2c}; | ||
| 716 | |||
| 717 | } | ||
| 718 | else { | ||
| 719 | print("makevel, z2c, missing z2c,\n"); | ||
| 720 | } | ||
| 721 | } | ||
| 722 | |||
| 723 | =head2 sub zlens | ||
| 724 | |||
| 725 | |||
| 726 | =cut | ||
| 727 | |||
| 728 | sub zlens { | ||
| 729 | |||
| 730 | my ( $self, $zlens ) = @_; | ||
| 731 | if ( $zlens ne $empty_string ) { | ||
| 732 | |||
| 733 | $makevel->{_zlens} = $zlens; | ||
| 734 | $makevel->{_note} = | ||
| 735 | $makevel->{_note} . ' zlens=' . $makevel->{_zlens}; | ||
| 736 | $makevel->{_Step} = | ||
| 737 | $makevel->{_Step} . ' zlens=' . $makevel->{_zlens}; | ||
| 738 | |||
| 739 | } | ||
| 740 | else { | ||
| 741 | print("makevel, zlens, missing zlens,\n"); | ||
| 742 | } | ||
| 743 | } | ||
| 744 | |||
| 745 | =head2 sub get_max_index | ||
| 746 | |||
| 747 | max index = number of input variables -1 | ||
| 748 | |||
| 749 | =cut | ||
| 750 | |||
| 751 | sub get_max_index { | ||
| 752 | my ($self) = @_; | ||
| 753 | my $max_index = 27; | ||
| 754 | |||
| 755 | return ($max_index); | ||
| 756 | } | ||
| 757 | |||
| 758 | 1; |