« lib/App/SeismicUnixGui/sunix/header/suresstat_old.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/inversion/suinvzco3d.pm »
| 1 | package App::SeismicUnixGui::sunix::inversion::suinvvxzco; | ||
| 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 | SUINVVXZCO - Seismic INVersion of Common Offset data for a smooth | ||
| 25 | |||
| 26 | velocity function V(X,Z) plus a slowness perturbation vp(x,z) | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | suinvvxzco <infile >outfile [optional parameters] | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | Required Parameters: | ||
| 35 | |||
| 36 | vfile= file containing velocity array v[nx][nz] | ||
| 37 | |||
| 38 | nx= number of x samples (2nd dimension) in velocity | ||
| 39 | |||
| 40 | nz= number of z samples (1st dimension) in velocity | ||
| 41 | |||
| 42 | nxm= number of midpoints of input traces | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | Optional Parameters: | ||
| 47 | |||
| 48 | dt= or from header (dt) time sampling interval of input data | ||
| 49 | |||
| 50 | offs= or from header (offset) source-receiver offset | ||
| 51 | |||
| 52 | dxm= or from header (d2) sampling interval of midpoints | ||
| 53 | |||
| 54 | fxm=0 first midpoint in input trace | ||
| 55 | |||
| 56 | nxd=5 skipped number of midpoints (see note) | ||
| 57 | |||
| 58 | dx=50.0 x sampling interval of velocity | ||
| 59 | |||
| 60 | fx=0.0 first x sample of velocity | ||
| 61 | |||
| 62 | dz=50.0 z sampling interval of velocity | ||
| 63 | |||
| 64 | nxb=nx/2 band centered at midpoints (see note) | ||
| 65 | |||
| 66 | nxc=0 hozizontal range in which velocity is changed | ||
| 67 | |||
| 68 | nzc=0 vertical range in which velocity is changed | ||
| 69 | |||
| 70 | fxo=0.0 x-coordinate of first output trace | ||
| 71 | |||
| 72 | dxo=15.0 horizontal spacing of output trace | ||
| 73 | |||
| 74 | nxo=101 number of output traces ", | ||
| 75 | |||
| 76 | fzo=0.0 z-coordinate of first point in output trace | ||
| 77 | |||
| 78 | dzo=15.0 vertical spacing of output trace | ||
| 79 | |||
| 80 | nzo=101 number of points in output trace ", | ||
| 81 | |||
| 82 | fmax=0.25/dt Maximum frequency set for operator antialiasing | ||
| 83 | |||
| 84 | ang=180 Maximum dip angle allowed in the image | ||
| 85 | |||
| 86 | ls=0 =1 for line source; =0 for point source | ||
| 87 | |||
| 88 | pert=0 =1 calculate time correction from v_p[nx][nz] | ||
| 89 | |||
| 90 | vpfile=file containing slowness perturbation array v_p[nx][nz] | ||
| 91 | |||
| 92 | verbose=1 =1 to print some useful information | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | Notes: | ||
| 97 | |||
| 98 | Traveltime and amplitude are calculated by finite difference which | ||
| 99 | |||
| 100 | is done only in one of every NXD midpoints; in the skipped midpoint, | ||
| 101 | |||
| 102 | interpolation is used to calculate traveltime and amplitude. ", | ||
| 103 | |||
| 104 | For each midpoint, traveltime and amplitude are calculated in the | ||
| 105 | |||
| 106 | horizontal range of (xm-nxb*dx, xm+nxb*dx). Velocity is changed by | ||
| 107 | |||
| 108 | constant extropolation in two upper trianglar corners whose width is | ||
| 109 | |||
| 110 | nxc*dx and height is nzc*dz. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | Eikonal equation will fail to solve if there is a polar turned ray. | ||
| 115 | |||
| 116 | In this case, the program shows the related geometric information. | ||
| 117 | |||
| 118 | There are three ways to remove the turned ray: smoothing velocity, | ||
| 119 | |||
| 120 | reducing nxb, and increaing nxc and nzc (if the turned ray occurs | ||
| 121 | |||
| 122 | in the shallow areas). To prevent traveltime distortion from a over | ||
| 123 | |||
| 124 | smoothed velocity, traveltime is corrected based on the slowness | ||
| 125 | |||
| 126 | perturbation. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | Offsets are signed - may be positive or negative. | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | Author: Zhenyue Liu, 08/28/93, Colorado School of Mines | ||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | Reference: | ||
| 145 | |||
| 146 | Bleistein, N., Cohen, J. K., and Hagin, F., 1987, | ||
| 147 | |||
| 148 | Two-and-one-half dimensional Born inversion with an arbitrary reference | ||
| 149 | |||
| 150 | Geophysics Vol. 52, no.1, 26-36. | ||
| 151 | |||
| 152 | |||
| 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($go $in $off $on $out $ps $to $suffix_ascii $suffix_bin $suffix_ps $suffix_segy $suffix_su); | ||
| 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 $PS_SEISMIC = $Project->PS_SEISMIC(); | ||
| 191 | |||
| 192 | my $var = $get->var(); | ||
| 193 | my $on = $var->{_on}; | ||
| 194 | my $off = $var->{_off}; | ||
| 195 | my $true = $var->{_true}; | ||
| 196 | my $false = $var->{_false}; | ||
| 197 | my $empty_string = $var->{_empty_string}; | ||
| 198 | |||
| 199 | =head2 Encapsulated | ||
| 200 | hash of private variables | ||
| 201 | |||
| 202 | =cut | ||
| 203 | |||
| 204 | my $suinvvxzco = { | ||
| 205 | _ang => '', | ||
| 206 | _dt => '', | ||
| 207 | _dx => '', | ||
| 208 | _dxm => '', | ||
| 209 | _dxo => '', | ||
| 210 | _dz => '', | ||
| 211 | _dzo => '', | ||
| 212 | _fmax => '', | ||
| 213 | _fx => '', | ||
| 214 | _fxm => '', | ||
| 215 | _fxo => '', | ||
| 216 | _fzo => '', | ||
| 217 | _ls => '', | ||
| 218 | _nx => '', | ||
| 219 | _nxb => '', | ||
| 220 | _nxc => '', | ||
| 221 | _nxd => '', | ||
| 222 | _nxm => '', | ||
| 223 | _nxo => '', | ||
| 224 | _nz => '', | ||
| 225 | _nzc => '', | ||
| 226 | _nzo => '', | ||
| 227 | _offs => '', | ||
| 228 | _pert => '', | ||
| 229 | _verbose => '', | ||
| 230 | _vfile => '', | ||
| 231 | _vpfile => '', | ||
| 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 | $suinvvxzco->{_Step} = 'suinvvxzco'.$suinvvxzco->{_Step}; | ||
| 247 | return ( $suinvvxzco->{_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 | $suinvvxzco->{_note} = 'suinvvxzco'.$suinvvxzco->{_note}; | ||
| 262 | return ( $suinvvxzco->{_note} ); | ||
| 263 | |||
| 264 | } | ||
| 265 | |||
| 266 | |||
| 267 | |||
| 268 | =head2 sub clear | ||
| 269 | |||
| 270 | =cut | ||
| 271 | |||
| 272 | sub clear { | ||
| 273 | |||
| 274 | $suinvvxzco->{_ang} = ''; | ||
| 275 | $suinvvxzco->{_dt} = ''; | ||
| 276 | $suinvvxzco->{_dx} = ''; | ||
| 277 | $suinvvxzco->{_dxm} = ''; | ||
| 278 | $suinvvxzco->{_dxo} = ''; | ||
| 279 | $suinvvxzco->{_dz} = ''; | ||
| 280 | $suinvvxzco->{_dzo} = ''; | ||
| 281 | $suinvvxzco->{_fmax} = ''; | ||
| 282 | $suinvvxzco->{_fx} = ''; | ||
| 283 | $suinvvxzco->{_fxm} = ''; | ||
| 284 | $suinvvxzco->{_fxo} = ''; | ||
| 285 | $suinvvxzco->{_fzo} = ''; | ||
| 286 | $suinvvxzco->{_ls} = ''; | ||
| 287 | $suinvvxzco->{_nx} = ''; | ||
| 288 | $suinvvxzco->{_nxb} = ''; | ||
| 289 | $suinvvxzco->{_nxc} = ''; | ||
| 290 | $suinvvxzco->{_nxd} = ''; | ||
| 291 | $suinvvxzco->{_nxm} = ''; | ||
| 292 | $suinvvxzco->{_nxo} = ''; | ||
| 293 | $suinvvxzco->{_nz} = ''; | ||
| 294 | $suinvvxzco->{_nzc} = ''; | ||
| 295 | $suinvvxzco->{_nzo} = ''; | ||
| 296 | $suinvvxzco->{_offs} = ''; | ||
| 297 | $suinvvxzco->{_pert} = ''; | ||
| 298 | $suinvvxzco->{_verbose} = ''; | ||
| 299 | $suinvvxzco->{_vfile} = ''; | ||
| 300 | $suinvvxzco->{_vpfile} = ''; | ||
| 301 | $suinvvxzco->{_Step} = ''; | ||
| 302 | $suinvvxzco->{_note} = ''; | ||
| 303 | } | ||
| 304 | |||
| 305 | |||
| 306 | =head2 sub ang | ||
| 307 | |||
| 308 | |||
| 309 | =cut | ||
| 310 | |||
| 311 | sub ang { | ||
| 312 | |||
| 313 | my ( $self,$ang ) = @_; | ||
| 314 | if ( $ang ne $empty_string ) { | ||
| 315 | |||
| 316 | $suinvvxzco->{_ang} = $ang; | ||
| 317 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' ang='.$suinvvxzco->{_ang}; | ||
| 318 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' ang='.$suinvvxzco->{_ang}; | ||
| 319 | |||
| 320 | } else { | ||
| 321 | print("suinvvxzco, ang, missing ang,\n"); | ||
| 322 | } | ||
| 323 | } | ||
| 324 | |||
| 325 | |||
| 326 | =head2 sub dt | ||
| 327 | |||
| 328 | |||
| 329 | =cut | ||
| 330 | |||
| 331 | sub dt { | ||
| 332 | |||
| 333 | my ( $self,$dt ) = @_; | ||
| 334 | if ( $dt ne $empty_string ) { | ||
| 335 | |||
| 336 | $suinvvxzco->{_dt} = $dt; | ||
| 337 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dt='.$suinvvxzco->{_dt}; | ||
| 338 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dt='.$suinvvxzco->{_dt}; | ||
| 339 | |||
| 340 | } else { | ||
| 341 | print("suinvvxzco, dt, missing dt,\n"); | ||
| 342 | } | ||
| 343 | } | ||
| 344 | |||
| 345 | |||
| 346 | =head2 sub dx | ||
| 347 | |||
| 348 | |||
| 349 | =cut | ||
| 350 | |||
| 351 | sub dx { | ||
| 352 | |||
| 353 | my ( $self,$dx ) = @_; | ||
| 354 | if ( $dx ne $empty_string ) { | ||
| 355 | |||
| 356 | $suinvvxzco->{_dx} = $dx; | ||
| 357 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dx='.$suinvvxzco->{_dx}; | ||
| 358 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dx='.$suinvvxzco->{_dx}; | ||
| 359 | |||
| 360 | } else { | ||
| 361 | print("suinvvxzco, dx, missing dx,\n"); | ||
| 362 | } | ||
| 363 | } | ||
| 364 | |||
| 365 | |||
| 366 | =head2 sub dxm | ||
| 367 | |||
| 368 | |||
| 369 | =cut | ||
| 370 | |||
| 371 | sub dxm { | ||
| 372 | |||
| 373 | my ( $self,$dxm ) = @_; | ||
| 374 | if ( $dxm ne $empty_string ) { | ||
| 375 | |||
| 376 | $suinvvxzco->{_dxm} = $dxm; | ||
| 377 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dxm='.$suinvvxzco->{_dxm}; | ||
| 378 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dxm='.$suinvvxzco->{_dxm}; | ||
| 379 | |||
| 380 | } else { | ||
| 381 | print("suinvvxzco, dxm, missing dxm,\n"); | ||
| 382 | } | ||
| 383 | } | ||
| 384 | |||
| 385 | |||
| 386 | =head2 sub dxo | ||
| 387 | |||
| 388 | |||
| 389 | =cut | ||
| 390 | |||
| 391 | sub dxo { | ||
| 392 | |||
| 393 | my ( $self,$dxo ) = @_; | ||
| 394 | if ( $dxo ne $empty_string ) { | ||
| 395 | |||
| 396 | $suinvvxzco->{_dxo} = $dxo; | ||
| 397 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dxo='.$suinvvxzco->{_dxo}; | ||
| 398 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dxo='.$suinvvxzco->{_dxo}; | ||
| 399 | |||
| 400 | } else { | ||
| 401 | print("suinvvxzco, dxo, missing dxo,\n"); | ||
| 402 | } | ||
| 403 | } | ||
| 404 | |||
| 405 | |||
| 406 | =head2 sub dz | ||
| 407 | |||
| 408 | |||
| 409 | =cut | ||
| 410 | |||
| 411 | sub dz { | ||
| 412 | |||
| 413 | my ( $self,$dz ) = @_; | ||
| 414 | if ( $dz ne $empty_string ) { | ||
| 415 | |||
| 416 | $suinvvxzco->{_dz} = $dz; | ||
| 417 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dz='.$suinvvxzco->{_dz}; | ||
| 418 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dz='.$suinvvxzco->{_dz}; | ||
| 419 | |||
| 420 | } else { | ||
| 421 | print("suinvvxzco, dz, missing dz,\n"); | ||
| 422 | } | ||
| 423 | } | ||
| 424 | |||
| 425 | |||
| 426 | =head2 sub dzo | ||
| 427 | |||
| 428 | |||
| 429 | =cut | ||
| 430 | |||
| 431 | sub dzo { | ||
| 432 | |||
| 433 | my ( $self,$dzo ) = @_; | ||
| 434 | if ( $dzo ne $empty_string ) { | ||
| 435 | |||
| 436 | $suinvvxzco->{_dzo} = $dzo; | ||
| 437 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' dzo='.$suinvvxzco->{_dzo}; | ||
| 438 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' dzo='.$suinvvxzco->{_dzo}; | ||
| 439 | |||
| 440 | } else { | ||
| 441 | print("suinvvxzco, dzo, missing dzo,\n"); | ||
| 442 | } | ||
| 443 | } | ||
| 444 | |||
| 445 | |||
| 446 | =head2 sub fmax | ||
| 447 | |||
| 448 | |||
| 449 | =cut | ||
| 450 | |||
| 451 | sub fmax { | ||
| 452 | |||
| 453 | my ( $self,$fmax ) = @_; | ||
| 454 | if ( $fmax ne $empty_string ) { | ||
| 455 | |||
| 456 | $suinvvxzco->{_fmax} = $fmax; | ||
| 457 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' fmax='.$suinvvxzco->{_fmax}; | ||
| 458 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' fmax='.$suinvvxzco->{_fmax}; | ||
| 459 | |||
| 460 | } else { | ||
| 461 | print("suinvvxzco, fmax, missing fmax,\n"); | ||
| 462 | } | ||
| 463 | } | ||
| 464 | |||
| 465 | |||
| 466 | =head2 sub fx | ||
| 467 | |||
| 468 | |||
| 469 | =cut | ||
| 470 | |||
| 471 | sub fx { | ||
| 472 | |||
| 473 | my ( $self,$fx ) = @_; | ||
| 474 | if ( $fx ne $empty_string ) { | ||
| 475 | |||
| 476 | $suinvvxzco->{_fx} = $fx; | ||
| 477 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' fx='.$suinvvxzco->{_fx}; | ||
| 478 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' fx='.$suinvvxzco->{_fx}; | ||
| 479 | |||
| 480 | } else { | ||
| 481 | print("suinvvxzco, fx, missing fx,\n"); | ||
| 482 | } | ||
| 483 | } | ||
| 484 | |||
| 485 | |||
| 486 | =head2 sub fxm | ||
| 487 | |||
| 488 | |||
| 489 | =cut | ||
| 490 | |||
| 491 | sub fxm { | ||
| 492 | |||
| 493 | my ( $self,$fxm ) = @_; | ||
| 494 | if ( $fxm ne $empty_string ) { | ||
| 495 | |||
| 496 | $suinvvxzco->{_fxm} = $fxm; | ||
| 497 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' fxm='.$suinvvxzco->{_fxm}; | ||
| 498 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' fxm='.$suinvvxzco->{_fxm}; | ||
| 499 | |||
| 500 | } else { | ||
| 501 | print("suinvvxzco, fxm, missing fxm,\n"); | ||
| 502 | } | ||
| 503 | } | ||
| 504 | |||
| 505 | |||
| 506 | =head2 sub fxo | ||
| 507 | |||
| 508 | |||
| 509 | =cut | ||
| 510 | |||
| 511 | sub fxo { | ||
| 512 | |||
| 513 | my ( $self,$fxo ) = @_; | ||
| 514 | if ( $fxo ne $empty_string ) { | ||
| 515 | |||
| 516 | $suinvvxzco->{_fxo} = $fxo; | ||
| 517 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' fxo='.$suinvvxzco->{_fxo}; | ||
| 518 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' fxo='.$suinvvxzco->{_fxo}; | ||
| 519 | |||
| 520 | } else { | ||
| 521 | print("suinvvxzco, fxo, missing fxo,\n"); | ||
| 522 | } | ||
| 523 | } | ||
| 524 | |||
| 525 | |||
| 526 | =head2 sub fzo | ||
| 527 | |||
| 528 | |||
| 529 | =cut | ||
| 530 | |||
| 531 | sub fzo { | ||
| 532 | |||
| 533 | my ( $self,$fzo ) = @_; | ||
| 534 | if ( $fzo ne $empty_string ) { | ||
| 535 | |||
| 536 | $suinvvxzco->{_fzo} = $fzo; | ||
| 537 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' fzo='.$suinvvxzco->{_fzo}; | ||
| 538 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' fzo='.$suinvvxzco->{_fzo}; | ||
| 539 | |||
| 540 | } else { | ||
| 541 | print("suinvvxzco, fzo, missing fzo,\n"); | ||
| 542 | } | ||
| 543 | } | ||
| 544 | |||
| 545 | |||
| 546 | =head2 sub ls | ||
| 547 | |||
| 548 | |||
| 549 | =cut | ||
| 550 | |||
| 551 | sub ls { | ||
| 552 | |||
| 553 | my ( $self,$ls ) = @_; | ||
| 554 | if ( $ls ne $empty_string ) { | ||
| 555 | |||
| 556 | $suinvvxzco->{_ls} = $ls; | ||
| 557 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' ls='.$suinvvxzco->{_ls}; | ||
| 558 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' ls='.$suinvvxzco->{_ls}; | ||
| 559 | |||
| 560 | } else { | ||
| 561 | print("suinvvxzco, ls, missing ls,\n"); | ||
| 562 | } | ||
| 563 | } | ||
| 564 | |||
| 565 | |||
| 566 | =head2 sub nx | ||
| 567 | |||
| 568 | |||
| 569 | =cut | ||
| 570 | |||
| 571 | sub nx { | ||
| 572 | |||
| 573 | my ( $self,$nx ) = @_; | ||
| 574 | if ( $nx ne $empty_string ) { | ||
| 575 | |||
| 576 | $suinvvxzco->{_nx} = $nx; | ||
| 577 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nx='.$suinvvxzco->{_nx}; | ||
| 578 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nx='.$suinvvxzco->{_nx}; | ||
| 579 | |||
| 580 | } else { | ||
| 581 | print("suinvvxzco, nx, missing nx,\n"); | ||
| 582 | } | ||
| 583 | } | ||
| 584 | |||
| 585 | |||
| 586 | =head2 sub nxb | ||
| 587 | |||
| 588 | |||
| 589 | =cut | ||
| 590 | |||
| 591 | sub nxb { | ||
| 592 | |||
| 593 | my ( $self,$nxb ) = @_; | ||
| 594 | if ( $nxb ne $empty_string ) { | ||
| 595 | |||
| 596 | $suinvvxzco->{_nxb} = $nxb; | ||
| 597 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nxb='.$suinvvxzco->{_nxb}; | ||
| 598 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nxb='.$suinvvxzco->{_nxb}; | ||
| 599 | |||
| 600 | } else { | ||
| 601 | print("suinvvxzco, nxb, missing nxb,\n"); | ||
| 602 | } | ||
| 603 | } | ||
| 604 | |||
| 605 | |||
| 606 | =head2 sub nxc | ||
| 607 | |||
| 608 | |||
| 609 | =cut | ||
| 610 | |||
| 611 | sub nxc { | ||
| 612 | |||
| 613 | my ( $self,$nxc ) = @_; | ||
| 614 | if ( $nxc ne $empty_string ) { | ||
| 615 | |||
| 616 | $suinvvxzco->{_nxc} = $nxc; | ||
| 617 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nxc='.$suinvvxzco->{_nxc}; | ||
| 618 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nxc='.$suinvvxzco->{_nxc}; | ||
| 619 | |||
| 620 | } else { | ||
| 621 | print("suinvvxzco, nxc, missing nxc,\n"); | ||
| 622 | } | ||
| 623 | } | ||
| 624 | |||
| 625 | |||
| 626 | =head2 sub nxd | ||
| 627 | |||
| 628 | |||
| 629 | =cut | ||
| 630 | |||
| 631 | sub nxd { | ||
| 632 | |||
| 633 | my ( $self,$nxd ) = @_; | ||
| 634 | if ( $nxd ne $empty_string ) { | ||
| 635 | |||
| 636 | $suinvvxzco->{_nxd} = $nxd; | ||
| 637 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nxd='.$suinvvxzco->{_nxd}; | ||
| 638 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nxd='.$suinvvxzco->{_nxd}; | ||
| 639 | |||
| 640 | } else { | ||
| 641 | print("suinvvxzco, nxd, missing nxd,\n"); | ||
| 642 | } | ||
| 643 | } | ||
| 644 | |||
| 645 | |||
| 646 | =head2 sub nxm | ||
| 647 | |||
| 648 | |||
| 649 | =cut | ||
| 650 | |||
| 651 | sub nxm { | ||
| 652 | |||
| 653 | my ( $self,$nxm ) = @_; | ||
| 654 | if ( $nxm ne $empty_string ) { | ||
| 655 | |||
| 656 | $suinvvxzco->{_nxm} = $nxm; | ||
| 657 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nxm='.$suinvvxzco->{_nxm}; | ||
| 658 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nxm='.$suinvvxzco->{_nxm}; | ||
| 659 | |||
| 660 | } else { | ||
| 661 | print("suinvvxzco, nxm, missing nxm,\n"); | ||
| 662 | } | ||
| 663 | } | ||
| 664 | |||
| 665 | |||
| 666 | =head2 sub nxo | ||
| 667 | |||
| 668 | |||
| 669 | =cut | ||
| 670 | |||
| 671 | sub nxo { | ||
| 672 | |||
| 673 | my ( $self,$nxo ) = @_; | ||
| 674 | if ( $nxo ne $empty_string ) { | ||
| 675 | |||
| 676 | $suinvvxzco->{_nxo} = $nxo; | ||
| 677 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nxo='.$suinvvxzco->{_nxo}; | ||
| 678 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nxo='.$suinvvxzco->{_nxo}; | ||
| 679 | |||
| 680 | } else { | ||
| 681 | print("suinvvxzco, nxo, missing nxo,\n"); | ||
| 682 | } | ||
| 683 | } | ||
| 684 | |||
| 685 | |||
| 686 | =head2 sub nz | ||
| 687 | |||
| 688 | |||
| 689 | =cut | ||
| 690 | |||
| 691 | sub nz { | ||
| 692 | |||
| 693 | my ( $self,$nz ) = @_; | ||
| 694 | if ( $nz ne $empty_string ) { | ||
| 695 | |||
| 696 | $suinvvxzco->{_nz} = $nz; | ||
| 697 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nz='.$suinvvxzco->{_nz}; | ||
| 698 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nz='.$suinvvxzco->{_nz}; | ||
| 699 | |||
| 700 | } else { | ||
| 701 | print("suinvvxzco, nz, missing nz,\n"); | ||
| 702 | } | ||
| 703 | } | ||
| 704 | |||
| 705 | |||
| 706 | =head2 sub nzc | ||
| 707 | |||
| 708 | |||
| 709 | =cut | ||
| 710 | |||
| 711 | sub nzc { | ||
| 712 | |||
| 713 | my ( $self,$nzc ) = @_; | ||
| 714 | if ( $nzc ne $empty_string ) { | ||
| 715 | |||
| 716 | $suinvvxzco->{_nzc} = $nzc; | ||
| 717 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nzc='.$suinvvxzco->{_nzc}; | ||
| 718 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nzc='.$suinvvxzco->{_nzc}; | ||
| 719 | |||
| 720 | } else { | ||
| 721 | print("suinvvxzco, nzc, missing nzc,\n"); | ||
| 722 | } | ||
| 723 | } | ||
| 724 | |||
| 725 | |||
| 726 | =head2 sub nzo | ||
| 727 | |||
| 728 | |||
| 729 | =cut | ||
| 730 | |||
| 731 | sub nzo { | ||
| 732 | |||
| 733 | my ( $self,$nzo ) = @_; | ||
| 734 | if ( $nzo ne $empty_string ) { | ||
| 735 | |||
| 736 | $suinvvxzco->{_nzo} = $nzo; | ||
| 737 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' nzo='.$suinvvxzco->{_nzo}; | ||
| 738 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' nzo='.$suinvvxzco->{_nzo}; | ||
| 739 | |||
| 740 | } else { | ||
| 741 | print("suinvvxzco, nzo, missing nzo,\n"); | ||
| 742 | } | ||
| 743 | } | ||
| 744 | |||
| 745 | |||
| 746 | =head2 sub offs | ||
| 747 | |||
| 748 | |||
| 749 | =cut | ||
| 750 | |||
| 751 | sub offs { | ||
| 752 | |||
| 753 | my ( $self,$offs ) = @_; | ||
| 754 | if ( $offs ne $empty_string ) { | ||
| 755 | |||
| 756 | $suinvvxzco->{_offs} = $offs; | ||
| 757 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' offs='.$suinvvxzco->{_offs}; | ||
| 758 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' offs='.$suinvvxzco->{_offs}; | ||
| 759 | |||
| 760 | } else { | ||
| 761 | print("suinvvxzco, offs, missing offs,\n"); | ||
| 762 | } | ||
| 763 | } | ||
| 764 | |||
| 765 | |||
| 766 | =head2 sub pert | ||
| 767 | |||
| 768 | |||
| 769 | =cut | ||
| 770 | |||
| 771 | sub pert { | ||
| 772 | |||
| 773 | my ( $self,$pert ) = @_; | ||
| 774 | if ( $pert ne $empty_string ) { | ||
| 775 | |||
| 776 | $suinvvxzco->{_pert} = $pert; | ||
| 777 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' pert='.$suinvvxzco->{_pert}; | ||
| 778 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' pert='.$suinvvxzco->{_pert}; | ||
| 779 | |||
| 780 | } else { | ||
| 781 | print("suinvvxzco, pert, missing pert,\n"); | ||
| 782 | } | ||
| 783 | } | ||
| 784 | |||
| 785 | |||
| 786 | =head2 sub verbose | ||
| 787 | |||
| 788 | |||
| 789 | =cut | ||
| 790 | |||
| 791 | sub verbose { | ||
| 792 | |||
| 793 | my ( $self,$verbose ) = @_; | ||
| 794 | if ( $verbose ne $empty_string ) { | ||
| 795 | |||
| 796 | $suinvvxzco->{_verbose} = $verbose; | ||
| 797 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' verbose='.$suinvvxzco->{_verbose}; | ||
| 798 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' verbose='.$suinvvxzco->{_verbose}; | ||
| 799 | |||
| 800 | } else { | ||
| 801 | print("suinvvxzco, verbose, missing verbose,\n"); | ||
| 802 | } | ||
| 803 | } | ||
| 804 | |||
| 805 | |||
| 806 | =head2 sub vfile | ||
| 807 | |||
| 808 | |||
| 809 | =cut | ||
| 810 | |||
| 811 | sub vfile { | ||
| 812 | |||
| 813 | my ( $self,$vfile ) = @_; | ||
| 814 | if ( $vfile ne $empty_string ) { | ||
| 815 | |||
| 816 | $suinvvxzco->{_vfile} = $vfile; | ||
| 817 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' vfile='.$suinvvxzco->{_vfile}; | ||
| 818 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' vfile='.$suinvvxzco->{_vfile}; | ||
| 819 | |||
| 820 | } else { | ||
| 821 | print("suinvvxzco, vfile, missing vfile,\n"); | ||
| 822 | } | ||
| 823 | } | ||
| 824 | |||
| 825 | |||
| 826 | =head2 sub vpfile | ||
| 827 | |||
| 828 | |||
| 829 | =cut | ||
| 830 | |||
| 831 | sub vpfile { | ||
| 832 | |||
| 833 | my ( $self,$vpfile ) = @_; | ||
| 834 | if ( $vpfile ne $empty_string ) { | ||
| 835 | |||
| 836 | $suinvvxzco->{_vpfile} = $vpfile; | ||
| 837 | $suinvvxzco->{_note} = $suinvvxzco->{_note}.' vpfile='.$suinvvxzco->{_vpfile}; | ||
| 838 | $suinvvxzco->{_Step} = $suinvvxzco->{_Step}.' vpfile='.$suinvvxzco->{_vpfile}; | ||
| 839 | |||
| 840 | } else { | ||
| 841 | print("suinvvxzco, vpfile, missing vpfile,\n"); | ||
| 842 | } | ||
| 843 | } | ||
| 844 | |||
| 845 | |||
| 846 | =head2 sub get_max_index | ||
| 847 | |||
| 848 | max index = number of input variables -1 | ||
| 849 | |||
| 850 | =cut | ||
| 851 | |||
| 852 | sub get_max_index { | ||
| 853 | my ($self) = @_; | ||
| 854 | my $max_index = 26; | ||
| 855 | |||
| 856 | return($max_index); | ||
| 857 | } | ||
| 858 | |||
| 859 | |||
| 860 | 1; |