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