« lib/App/SeismicUnixGui/misc/L_SU_path.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/filter/supolar.pm »
| 1 | package App::SeismicUnixGui::sunix::datum::sukdmdcr; | ||
| 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 | SUKDMDCR - 2.5D datuming of receivers for prestack, common source | ||
| 25 | |||
| 26 | data using constant-background data mapping formula. | ||
| 27 | |||
| 28 | (See selfdoc for specific survey requirements.) | ||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | sukdmdcr infile= outfile= [parameters] | ||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | Required file parameters: | ||
| 37 | |||
| 38 | infile=stdin file for input seismic traces | ||
| 39 | |||
| 40 | outfile=stdout file for output | ||
| 41 | |||
| 42 | ttfile= file for input traveltime tables | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | Required parameters describing the traveltime tables: | ||
| 47 | |||
| 48 | fzt= first depth sample in traveltime table | ||
| 49 | |||
| 50 | nzt= number of depth samples in traveltime table | ||
| 51 | |||
| 52 | dzt= depth interval in traveltime table | ||
| 53 | |||
| 54 | fxt= first lateral sample in traveltime table | ||
| 55 | |||
| 56 | nxt= number of lateral samples in traveltime table | ||
| 57 | |||
| 58 | dxt= lateral interval in traveltime table | ||
| 59 | |||
| 60 | fs= x-coordinate of first source in table | ||
| 61 | |||
| 62 | ns= number of sources in table | ||
| 63 | |||
| 64 | ds= x-coordinate increment of sources in table | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | Parameters describing the input data: | ||
| 69 | |||
| 70 | nxso= number of shots | ||
| 71 | |||
| 72 | dxso= shot interval | ||
| 73 | |||
| 74 | fxso=0 x-coordinate of first shot | ||
| 75 | |||
| 76 | nxgo= number of receiver offsets per shot | ||
| 77 | |||
| 78 | dxgo= receiver offset interval | ||
| 79 | |||
| 80 | fxgo=0 first receiver offset | ||
| 81 | |||
| 82 | dt= or from header (dt) time sampling interval of input data | ||
| 83 | |||
| 84 | ft= or from header (ft) first time sample of input data | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | Parameters describing the domain of the problem: | ||
| 89 | |||
| 90 | dzo=0.2*dzt vertical spacing in surface determination | ||
| 91 | |||
| 92 | offmax=99999 maximum absolute offset allowed | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | Parameters describing the recording and datuming surfaces: | ||
| 97 | |||
| 98 | recsurf=0 recording surface (horizontal=0, topographic=1) | ||
| 99 | |||
| 100 | zrec= defines recording surface when recsurf=0 | ||
| 101 | |||
| 102 | recfile= defines recording surface when recsurf=1 | ||
| 103 | |||
| 104 | datsurf=0 datuming surface (horizontal=0, irregular=1) | ||
| 105 | |||
| 106 | zdat= defines datuming surface when datsurf=0 | ||
| 107 | |||
| 108 | datfile= defines datuming surface when datsurf=1 | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | Optional parameters describing the extrapolation: | ||
| 113 | |||
| 114 | aperx=nxt*dxt/2 lateral half-aperture | ||
| 115 | |||
| 116 | v0=1500(m/s) reference wavespeed | ||
| 117 | |||
| 118 | freq=50 dominant frequency in data, used to determine | ||
| 119 | |||
| 120 | the minimum distance below the datum that | ||
| 121 | |||
| 122 | the stationary phase calculation is valid. | ||
| 123 | |||
| 124 | scale=1.0 user defined scale factor for output | ||
| 125 | |||
| 126 | jpfile=stderr job print file name | ||
| 127 | |||
| 128 | mtr=100 print verbal information at every mtr traces | ||
| 129 | |||
| 130 | ntr=100000 maximum number of input traces to be datumed | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | Computational Notes: | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | 1. Input traces must be SU format and organized in common shot gathers. | ||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | 2. Traveltime tables were generated by program rayt2d (or equivalent) | ||
| 147 | |||
| 148 | on any grid, with dimension ns*nxt*nzt. In the extrapolation process, | ||
| 149 | |||
| 150 | traveltimes are interpolated into shot/geophone locations and | ||
| 151 | |||
| 152 | output grids. | ||
| 153 | |||
| 154 | |||
| 155 | |||
| 156 | 3. If the offset value of an input trace is not in the offset array | ||
| 157 | |||
| 158 | of output, the nearest one in the array is chosen. | ||
| 159 | |||
| 160 | |||
| 161 | |||
| 162 | 4. Amplitudes are computed using the constant reference wavepeed v0. | ||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | 5. Input traces must specify source and receiver positions via the header | ||
| 167 | |||
| 168 | fields tr.sx and tr.gx. | ||
| 169 | |||
| 170 | |||
| 171 | |||
| 172 | 6. Recording and datuming surfaces are defined as follows: If recording | ||
| 173 | |||
| 174 | surface is horizontal, set recsurf=0 (default). Then, zrec will be a | ||
| 175 | |||
| 176 | required parameter, set to the depth of surface. If the recording | ||
| 177 | |||
| 178 | surface is topographic, then set recsurf=1. Then, recfile is a required | ||
| 179 | |||
| 180 | input file. The input file recfile should be a single column ascii file | ||
| 181 | |||
| 182 | with the depth of the recording surface at every surface location (first | ||
| 183 | |||
| 184 | source to last offset), with spacing equal to dxgo. | ||
| 185 | |||
| 186 | |||
| 187 | |||
| 188 | The same holds for the datuming surface, using datsurf, zdat, and datfile. | ||
| 189 | |||
| 190 | |||
| 191 | |||
| 192 | |||
| 193 | |||
| 194 | Assumptions and limitations: | ||
| 195 | |||
| 196 | |||
| 197 | |||
| 198 | 1. This code implements a 2.5D extraplolation operator that allows to | ||
| 199 | |||
| 200 | transfer data from one reference surface to another. The formula used in | ||
| 201 | |||
| 202 | this application is an adaptation of Bleistein & Jaramillo's 2.5D data | ||
| 203 | |||
| 204 | mapping formula for receiver extrapolation. This is the result of a | ||
| 205 | |||
| 206 | stationary phase analysis of the data mapping equation in the case of | ||
| 207 | |||
| 208 | a constant source location (shot gather). | ||
| 209 | |||
| 210 | |||
| 211 | |||
| 212 | |||
| 213 | |||
| 214 | Credits: | ||
| 215 | |||
| 216 | |||
| 217 | |||
| 218 | Authors: Steven D. Sheaffer (CWP), 11/97 | ||
| 219 | |||
| 220 | |||
| 221 | |||
| 222 | |||
| 223 | |||
| 224 | References: Sheaffer, S., 1999, "2.5D Downward Continuation of the Seismic | ||
| 225 | |||
| 226 | Wavefield Using Kirchhoff Data Mapping." M.Sc. Thesis, | ||
| 227 | |||
| 228 | Dept. of Mathematical & Computer Sciences, | ||
| 229 | |||
| 230 | Colorado School of Mines. | ||
| 231 | |||
| 232 | |||
| 233 | |||
| 234 | |||
| 235 | |||
| 236 | |||
| 237 | |||
| 238 | =head2 User's notes (Juan Lorenzo) | ||
| 239 | untested | ||
| 240 | |||
| 241 | =cut | ||
| 242 | |||
| 243 | |||
| 244 | =head2 CHANGES and their DATES | ||
| 245 | |||
| 246 | =cut | ||
| 247 | |||
| 248 | use Moose; | ||
| 249 | our $VERSION = '0.0.1'; | ||
| 250 | |||
| 251 | |||
| 252 | =head2 Import packages | ||
| 253 | |||
| 254 | =cut | ||
| 255 | |||
| 256 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 257 | |||
| 258 | use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin); | ||
| 259 | use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config'; | ||
| 260 | |||
| 261 | |||
| 262 | =head2 instantiation of packages | ||
| 263 | |||
| 264 | =cut | ||
| 265 | |||
| 266 | my $get = L_SU_global_constants->new(); | ||
| 267 | my $Project = Project_config->new(); | ||
| 268 | my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU(); | ||
| 269 | my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN(); | ||
| 270 | my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT(); | ||
| 271 | |||
| 272 | my $var = $get->var(); | ||
| 273 | my $on = $var->{_on}; | ||
| 274 | my $off = $var->{_off}; | ||
| 275 | my $true = $var->{_true}; | ||
| 276 | my $false = $var->{_false}; | ||
| 277 | my $empty_string = $var->{_empty_string}; | ||
| 278 | |||
| 279 | =head2 Encapsulated | ||
| 280 | hash of private variables | ||
| 281 | |||
| 282 | =cut | ||
| 283 | |||
| 284 | my $sukdmdcr = { | ||
| 285 | _aperx => '', | ||
| 286 | _datfile => '', | ||
| 287 | _datsurf => '', | ||
| 288 | _ds => '', | ||
| 289 | _dt => '', | ||
| 290 | _dxgo => '', | ||
| 291 | _dxso => '', | ||
| 292 | _dxt => '', | ||
| 293 | _dzo => '', | ||
| 294 | _dzt => '', | ||
| 295 | _freq => '', | ||
| 296 | _fs => '', | ||
| 297 | _ft => '', | ||
| 298 | _fxgo => '', | ||
| 299 | _fxso => '', | ||
| 300 | _fxt => '', | ||
| 301 | _fzt => '', | ||
| 302 | _infile => '', | ||
| 303 | _jpfile => '', | ||
| 304 | _mtr => '', | ||
| 305 | _ns => '', | ||
| 306 | _ntr => '', | ||
| 307 | _nxgo => '', | ||
| 308 | _nxso => '', | ||
| 309 | _nxt => '', | ||
| 310 | _nzt => '', | ||
| 311 | _offmax => '', | ||
| 312 | _outfile => '', | ||
| 313 | _recfile => '', | ||
| 314 | _recsurf => '', | ||
| 315 | _scale => '', | ||
| 316 | _ttfile => '', | ||
| 317 | _v0 => '', | ||
| 318 | _zdat => '', | ||
| 319 | _zrec => '', | ||
| 320 | _Step => '', | ||
| 321 | _note => '', | ||
| 322 | |||
| 323 | }; | ||
| 324 | |||
| 325 | =head2 sub Step | ||
| 326 | |||
| 327 | collects switches and assembles bash instructions | ||
| 328 | by adding the program name | ||
| 329 | |||
| 330 | =cut | ||
| 331 | |||
| 332 | sub Step { | ||
| 333 | |||
| 334 | $sukdmdcr->{_Step} = 'sukdmdcr'.$sukdmdcr->{_Step}; | ||
| 335 | return ( $sukdmdcr->{_Step} ); | ||
| 336 | |||
| 337 | } | ||
| 338 | |||
| 339 | |||
| 340 | =head2 sub note | ||
| 341 | |||
| 342 | collects switches and assembles bash instructions | ||
| 343 | by adding the program name | ||
| 344 | |||
| 345 | =cut | ||
| 346 | |||
| 347 | sub note { | ||
| 348 | |||
| 349 | $sukdmdcr->{_note} = 'sukdmdcr'.$sukdmdcr->{_note}; | ||
| 350 | return ( $sukdmdcr->{_note} ); | ||
| 351 | |||
| 352 | } | ||
| 353 | |||
| 354 | |||
| 355 | |||
| 356 | =head2 sub clear | ||
| 357 | |||
| 358 | =cut | ||
| 359 | |||
| 360 | sub clear { | ||
| 361 | |||
| 362 | $sukdmdcr->{_aperx} = ''; | ||
| 363 | $sukdmdcr->{_datfile} = ''; | ||
| 364 | $sukdmdcr->{_datsurf} = ''; | ||
| 365 | $sukdmdcr->{_ds} = ''; | ||
| 366 | $sukdmdcr->{_dt} = ''; | ||
| 367 | $sukdmdcr->{_dxgo} = ''; | ||
| 368 | $sukdmdcr->{_dxso} = ''; | ||
| 369 | $sukdmdcr->{_dxt} = ''; | ||
| 370 | $sukdmdcr->{_dzo} = ''; | ||
| 371 | $sukdmdcr->{_dzt} = ''; | ||
| 372 | $sukdmdcr->{_freq} = ''; | ||
| 373 | $sukdmdcr->{_fs} = ''; | ||
| 374 | $sukdmdcr->{_ft} = ''; | ||
| 375 | $sukdmdcr->{_fxgo} = ''; | ||
| 376 | $sukdmdcr->{_fxso} = ''; | ||
| 377 | $sukdmdcr->{_fxt} = ''; | ||
| 378 | $sukdmdcr->{_fzt} = ''; | ||
| 379 | $sukdmdcr->{_infile} = ''; | ||
| 380 | $sukdmdcr->{_jpfile} = ''; | ||
| 381 | $sukdmdcr->{_mtr} = ''; | ||
| 382 | $sukdmdcr->{_ns} = ''; | ||
| 383 | $sukdmdcr->{_ntr} = ''; | ||
| 384 | $sukdmdcr->{_nxgo} = ''; | ||
| 385 | $sukdmdcr->{_nxso} = ''; | ||
| 386 | $sukdmdcr->{_nxt} = ''; | ||
| 387 | $sukdmdcr->{_nzt} = ''; | ||
| 388 | $sukdmdcr->{_offmax} = ''; | ||
| 389 | $sukdmdcr->{_outfile} = ''; | ||
| 390 | $sukdmdcr->{_recfile} = ''; | ||
| 391 | $sukdmdcr->{_recsurf} = ''; | ||
| 392 | $sukdmdcr->{_scale} = ''; | ||
| 393 | $sukdmdcr->{_ttfile} = ''; | ||
| 394 | $sukdmdcr->{_v0} = ''; | ||
| 395 | $sukdmdcr->{_zdat} = ''; | ||
| 396 | $sukdmdcr->{_zrec} = ''; | ||
| 397 | $sukdmdcr->{_Step} = ''; | ||
| 398 | $sukdmdcr->{_note} = ''; | ||
| 399 | } | ||
| 400 | |||
| 401 | |||
| 402 | =head2 sub aperx | ||
| 403 | |||
| 404 | |||
| 405 | =cut | ||
| 406 | |||
| 407 | sub aperx { | ||
| 408 | |||
| 409 | my ( $self,$aperx ) = @_; | ||
| 410 | if ( $aperx ne $empty_string ) { | ||
| 411 | |||
| 412 | $sukdmdcr->{_aperx} = $aperx; | ||
| 413 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' aperx='.$sukdmdcr->{_aperx}; | ||
| 414 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' aperx='.$sukdmdcr->{_aperx}; | ||
| 415 | |||
| 416 | } else { | ||
| 417 | print("sukdmdcr, aperx, missing aperx,\n"); | ||
| 418 | } | ||
| 419 | } | ||
| 420 | |||
| 421 | |||
| 422 | =head2 sub datfile | ||
| 423 | |||
| 424 | |||
| 425 | =cut | ||
| 426 | |||
| 427 | sub datfile { | ||
| 428 | |||
| 429 | my ( $self,$datfile ) = @_; | ||
| 430 | if ( $datfile ne $empty_string ) { | ||
| 431 | |||
| 432 | $sukdmdcr->{_datfile} = $datfile; | ||
| 433 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' datfile='.$sukdmdcr->{_datfile}; | ||
| 434 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' datfile='.$sukdmdcr->{_datfile}; | ||
| 435 | |||
| 436 | } else { | ||
| 437 | print("sukdmdcr, datfile, missing datfile,\n"); | ||
| 438 | } | ||
| 439 | } | ||
| 440 | |||
| 441 | |||
| 442 | =head2 sub datsurf | ||
| 443 | |||
| 444 | |||
| 445 | =cut | ||
| 446 | |||
| 447 | sub datsurf { | ||
| 448 | |||
| 449 | my ( $self,$datsurf ) = @_; | ||
| 450 | if ( $datsurf ne $empty_string ) { | ||
| 451 | |||
| 452 | $sukdmdcr->{_datsurf} = $datsurf; | ||
| 453 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' datsurf='.$sukdmdcr->{_datsurf}; | ||
| 454 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' datsurf='.$sukdmdcr->{_datsurf}; | ||
| 455 | |||
| 456 | } else { | ||
| 457 | print("sukdmdcr, datsurf, missing datsurf,\n"); | ||
| 458 | } | ||
| 459 | } | ||
| 460 | |||
| 461 | |||
| 462 | =head2 sub ds | ||
| 463 | |||
| 464 | |||
| 465 | =cut | ||
| 466 | |||
| 467 | sub ds { | ||
| 468 | |||
| 469 | my ( $self,$ds ) = @_; | ||
| 470 | if ( $ds ne $empty_string ) { | ||
| 471 | |||
| 472 | $sukdmdcr->{_ds} = $ds; | ||
| 473 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' ds='.$sukdmdcr->{_ds}; | ||
| 474 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' ds='.$sukdmdcr->{_ds}; | ||
| 475 | |||
| 476 | } else { | ||
| 477 | print("sukdmdcr, ds, missing ds,\n"); | ||
| 478 | } | ||
| 479 | } | ||
| 480 | |||
| 481 | |||
| 482 | =head2 sub dt | ||
| 483 | |||
| 484 | |||
| 485 | =cut | ||
| 486 | |||
| 487 | sub dt { | ||
| 488 | |||
| 489 | my ( $self,$dt ) = @_; | ||
| 490 | if ( $dt ne $empty_string ) { | ||
| 491 | |||
| 492 | $sukdmdcr->{_dt} = $dt; | ||
| 493 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dt='.$sukdmdcr->{_dt}; | ||
| 494 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dt='.$sukdmdcr->{_dt}; | ||
| 495 | |||
| 496 | } else { | ||
| 497 | print("sukdmdcr, dt, missing dt,\n"); | ||
| 498 | } | ||
| 499 | } | ||
| 500 | |||
| 501 | |||
| 502 | =head2 sub dxgo | ||
| 503 | |||
| 504 | |||
| 505 | =cut | ||
| 506 | |||
| 507 | sub dxgo { | ||
| 508 | |||
| 509 | my ( $self,$dxgo ) = @_; | ||
| 510 | if ( $dxgo ne $empty_string ) { | ||
| 511 | |||
| 512 | $sukdmdcr->{_dxgo} = $dxgo; | ||
| 513 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dxgo='.$sukdmdcr->{_dxgo}; | ||
| 514 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dxgo='.$sukdmdcr->{_dxgo}; | ||
| 515 | |||
| 516 | } else { | ||
| 517 | print("sukdmdcr, dxgo, missing dxgo,\n"); | ||
| 518 | } | ||
| 519 | } | ||
| 520 | |||
| 521 | |||
| 522 | =head2 sub dxso | ||
| 523 | |||
| 524 | |||
| 525 | =cut | ||
| 526 | |||
| 527 | sub dxso { | ||
| 528 | |||
| 529 | my ( $self,$dxso ) = @_; | ||
| 530 | if ( $dxso ne $empty_string ) { | ||
| 531 | |||
| 532 | $sukdmdcr->{_dxso} = $dxso; | ||
| 533 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dxso='.$sukdmdcr->{_dxso}; | ||
| 534 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dxso='.$sukdmdcr->{_dxso}; | ||
| 535 | |||
| 536 | } else { | ||
| 537 | print("sukdmdcr, dxso, missing dxso,\n"); | ||
| 538 | } | ||
| 539 | } | ||
| 540 | |||
| 541 | |||
| 542 | =head2 sub dxt | ||
| 543 | |||
| 544 | |||
| 545 | =cut | ||
| 546 | |||
| 547 | sub dxt { | ||
| 548 | |||
| 549 | my ( $self,$dxt ) = @_; | ||
| 550 | if ( $dxt ne $empty_string ) { | ||
| 551 | |||
| 552 | $sukdmdcr->{_dxt} = $dxt; | ||
| 553 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dxt='.$sukdmdcr->{_dxt}; | ||
| 554 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dxt='.$sukdmdcr->{_dxt}; | ||
| 555 | |||
| 556 | } else { | ||
| 557 | print("sukdmdcr, dxt, missing dxt,\n"); | ||
| 558 | } | ||
| 559 | } | ||
| 560 | |||
| 561 | |||
| 562 | =head2 sub dzo | ||
| 563 | |||
| 564 | |||
| 565 | =cut | ||
| 566 | |||
| 567 | sub dzo { | ||
| 568 | |||
| 569 | my ( $self,$dzo ) = @_; | ||
| 570 | if ( $dzo ne $empty_string ) { | ||
| 571 | |||
| 572 | $sukdmdcr->{_dzo} = $dzo; | ||
| 573 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dzo='.$sukdmdcr->{_dzo}; | ||
| 574 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dzo='.$sukdmdcr->{_dzo}; | ||
| 575 | |||
| 576 | } else { | ||
| 577 | print("sukdmdcr, dzo, missing dzo,\n"); | ||
| 578 | } | ||
| 579 | } | ||
| 580 | |||
| 581 | |||
| 582 | =head2 sub dzt | ||
| 583 | |||
| 584 | |||
| 585 | =cut | ||
| 586 | |||
| 587 | sub dzt { | ||
| 588 | |||
| 589 | my ( $self,$dzt ) = @_; | ||
| 590 | if ( $dzt ne $empty_string ) { | ||
| 591 | |||
| 592 | $sukdmdcr->{_dzt} = $dzt; | ||
| 593 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' dzt='.$sukdmdcr->{_dzt}; | ||
| 594 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' dzt='.$sukdmdcr->{_dzt}; | ||
| 595 | |||
| 596 | } else { | ||
| 597 | print("sukdmdcr, dzt, missing dzt,\n"); | ||
| 598 | } | ||
| 599 | } | ||
| 600 | |||
| 601 | |||
| 602 | =head2 sub freq | ||
| 603 | |||
| 604 | |||
| 605 | =cut | ||
| 606 | |||
| 607 | sub freq { | ||
| 608 | |||
| 609 | my ( $self,$freq ) = @_; | ||
| 610 | if ( $freq ne $empty_string ) { | ||
| 611 | |||
| 612 | $sukdmdcr->{_freq} = $freq; | ||
| 613 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' freq='.$sukdmdcr->{_freq}; | ||
| 614 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' freq='.$sukdmdcr->{_freq}; | ||
| 615 | |||
| 616 | } else { | ||
| 617 | print("sukdmdcr, freq, missing freq,\n"); | ||
| 618 | } | ||
| 619 | } | ||
| 620 | |||
| 621 | |||
| 622 | =head2 sub fs | ||
| 623 | |||
| 624 | |||
| 625 | =cut | ||
| 626 | |||
| 627 | sub fs { | ||
| 628 | |||
| 629 | my ( $self,$fs ) = @_; | ||
| 630 | if ( $fs ne $empty_string ) { | ||
| 631 | |||
| 632 | $sukdmdcr->{_fs} = $fs; | ||
| 633 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' fs='.$sukdmdcr->{_fs}; | ||
| 634 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' fs='.$sukdmdcr->{_fs}; | ||
| 635 | |||
| 636 | } else { | ||
| 637 | print("sukdmdcr, fs, missing fs,\n"); | ||
| 638 | } | ||
| 639 | } | ||
| 640 | |||
| 641 | |||
| 642 | =head2 sub ft | ||
| 643 | |||
| 644 | |||
| 645 | =cut | ||
| 646 | |||
| 647 | sub ft { | ||
| 648 | |||
| 649 | my ( $self,$ft ) = @_; | ||
| 650 | if ( $ft ne $empty_string ) { | ||
| 651 | |||
| 652 | $sukdmdcr->{_ft} = $ft; | ||
| 653 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' ft='.$sukdmdcr->{_ft}; | ||
| 654 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' ft='.$sukdmdcr->{_ft}; | ||
| 655 | |||
| 656 | } else { | ||
| 657 | print("sukdmdcr, ft, missing ft,\n"); | ||
| 658 | } | ||
| 659 | } | ||
| 660 | |||
| 661 | |||
| 662 | =head2 sub fxgo | ||
| 663 | |||
| 664 | |||
| 665 | =cut | ||
| 666 | |||
| 667 | sub fxgo { | ||
| 668 | |||
| 669 | my ( $self,$fxgo ) = @_; | ||
| 670 | if ( $fxgo ne $empty_string ) { | ||
| 671 | |||
| 672 | $sukdmdcr->{_fxgo} = $fxgo; | ||
| 673 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' fxgo='.$sukdmdcr->{_fxgo}; | ||
| 674 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' fxgo='.$sukdmdcr->{_fxgo}; | ||
| 675 | |||
| 676 | } else { | ||
| 677 | print("sukdmdcr, fxgo, missing fxgo,\n"); | ||
| 678 | } | ||
| 679 | } | ||
| 680 | |||
| 681 | |||
| 682 | =head2 sub fxso | ||
| 683 | |||
| 684 | |||
| 685 | =cut | ||
| 686 | |||
| 687 | sub fxso { | ||
| 688 | |||
| 689 | my ( $self,$fxso ) = @_; | ||
| 690 | if ( $fxso ne $empty_string ) { | ||
| 691 | |||
| 692 | $sukdmdcr->{_fxso} = $fxso; | ||
| 693 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' fxso='.$sukdmdcr->{_fxso}; | ||
| 694 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' fxso='.$sukdmdcr->{_fxso}; | ||
| 695 | |||
| 696 | } else { | ||
| 697 | print("sukdmdcr, fxso, missing fxso,\n"); | ||
| 698 | } | ||
| 699 | } | ||
| 700 | |||
| 701 | |||
| 702 | =head2 sub fxt | ||
| 703 | |||
| 704 | |||
| 705 | =cut | ||
| 706 | |||
| 707 | sub fxt { | ||
| 708 | |||
| 709 | my ( $self,$fxt ) = @_; | ||
| 710 | if ( $fxt ne $empty_string ) { | ||
| 711 | |||
| 712 | $sukdmdcr->{_fxt} = $fxt; | ||
| 713 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' fxt='.$sukdmdcr->{_fxt}; | ||
| 714 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' fxt='.$sukdmdcr->{_fxt}; | ||
| 715 | |||
| 716 | } else { | ||
| 717 | print("sukdmdcr, fxt, missing fxt,\n"); | ||
| 718 | } | ||
| 719 | } | ||
| 720 | |||
| 721 | |||
| 722 | =head2 sub fzt | ||
| 723 | |||
| 724 | |||
| 725 | =cut | ||
| 726 | |||
| 727 | sub fzt { | ||
| 728 | |||
| 729 | my ( $self,$fzt ) = @_; | ||
| 730 | if ( $fzt ne $empty_string ) { | ||
| 731 | |||
| 732 | $sukdmdcr->{_fzt} = $fzt; | ||
| 733 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' fzt='.$sukdmdcr->{_fzt}; | ||
| 734 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' fzt='.$sukdmdcr->{_fzt}; | ||
| 735 | |||
| 736 | } else { | ||
| 737 | print("sukdmdcr, fzt, missing fzt,\n"); | ||
| 738 | } | ||
| 739 | } | ||
| 740 | |||
| 741 | |||
| 742 | =head2 sub infile | ||
| 743 | |||
| 744 | |||
| 745 | =cut | ||
| 746 | |||
| 747 | sub infile { | ||
| 748 | |||
| 749 | my ( $self,$infile ) = @_; | ||
| 750 | if ( $infile ne $empty_string ) { | ||
| 751 | |||
| 752 | $sukdmdcr->{_infile} = $infile; | ||
| 753 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' infile='.$sukdmdcr->{_infile}; | ||
| 754 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' infile='.$sukdmdcr->{_infile}; | ||
| 755 | |||
| 756 | } else { | ||
| 757 | print("sukdmdcr, infile, missing infile,\n"); | ||
| 758 | } | ||
| 759 | } | ||
| 760 | |||
| 761 | |||
| 762 | =head2 sub jpfile | ||
| 763 | |||
| 764 | |||
| 765 | =cut | ||
| 766 | |||
| 767 | sub jpfile { | ||
| 768 | |||
| 769 | my ( $self,$jpfile ) = @_; | ||
| 770 | if ( $jpfile ne $empty_string ) { | ||
| 771 | |||
| 772 | $sukdmdcr->{_jpfile} = $jpfile; | ||
| 773 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' jpfile='.$sukdmdcr->{_jpfile}; | ||
| 774 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' jpfile='.$sukdmdcr->{_jpfile}; | ||
| 775 | |||
| 776 | } else { | ||
| 777 | print("sukdmdcr, jpfile, missing jpfile,\n"); | ||
| 778 | } | ||
| 779 | } | ||
| 780 | |||
| 781 | |||
| 782 | =head2 sub mtr | ||
| 783 | |||
| 784 | |||
| 785 | =cut | ||
| 786 | |||
| 787 | sub mtr { | ||
| 788 | |||
| 789 | my ( $self,$mtr ) = @_; | ||
| 790 | if ( $mtr ne $empty_string ) { | ||
| 791 | |||
| 792 | $sukdmdcr->{_mtr} = $mtr; | ||
| 793 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' mtr='.$sukdmdcr->{_mtr}; | ||
| 794 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' mtr='.$sukdmdcr->{_mtr}; | ||
| 795 | |||
| 796 | } else { | ||
| 797 | print("sukdmdcr, mtr, missing mtr,\n"); | ||
| 798 | } | ||
| 799 | } | ||
| 800 | |||
| 801 | |||
| 802 | =head2 sub ns | ||
| 803 | |||
| 804 | |||
| 805 | =cut | ||
| 806 | |||
| 807 | sub ns { | ||
| 808 | |||
| 809 | my ( $self,$ns ) = @_; | ||
| 810 | if ( $ns ne $empty_string ) { | ||
| 811 | |||
| 812 | $sukdmdcr->{_ns} = $ns; | ||
| 813 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' ns='.$sukdmdcr->{_ns}; | ||
| 814 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' ns='.$sukdmdcr->{_ns}; | ||
| 815 | |||
| 816 | } else { | ||
| 817 | print("sukdmdcr, ns, missing ns,\n"); | ||
| 818 | } | ||
| 819 | } | ||
| 820 | |||
| 821 | |||
| 822 | =head2 sub ntr | ||
| 823 | |||
| 824 | |||
| 825 | =cut | ||
| 826 | |||
| 827 | sub ntr { | ||
| 828 | |||
| 829 | my ( $self,$ntr ) = @_; | ||
| 830 | if ( $ntr ne $empty_string ) { | ||
| 831 | |||
| 832 | $sukdmdcr->{_ntr} = $ntr; | ||
| 833 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' ntr='.$sukdmdcr->{_ntr}; | ||
| 834 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' ntr='.$sukdmdcr->{_ntr}; | ||
| 835 | |||
| 836 | } else { | ||
| 837 | print("sukdmdcr, ntr, missing ntr,\n"); | ||
| 838 | } | ||
| 839 | } | ||
| 840 | |||
| 841 | |||
| 842 | =head2 sub nxgo | ||
| 843 | |||
| 844 | |||
| 845 | =cut | ||
| 846 | |||
| 847 | sub nxgo { | ||
| 848 | |||
| 849 | my ( $self,$nxgo ) = @_; | ||
| 850 | if ( $nxgo ne $empty_string ) { | ||
| 851 | |||
| 852 | $sukdmdcr->{_nxgo} = $nxgo; | ||
| 853 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' nxgo='.$sukdmdcr->{_nxgo}; | ||
| 854 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' nxgo='.$sukdmdcr->{_nxgo}; | ||
| 855 | |||
| 856 | } else { | ||
| 857 | print("sukdmdcr, nxgo, missing nxgo,\n"); | ||
| 858 | } | ||
| 859 | } | ||
| 860 | |||
| 861 | |||
| 862 | =head2 sub nxso | ||
| 863 | |||
| 864 | |||
| 865 | =cut | ||
| 866 | |||
| 867 | sub nxso { | ||
| 868 | |||
| 869 | my ( $self,$nxso ) = @_; | ||
| 870 | if ( $nxso ne $empty_string ) { | ||
| 871 | |||
| 872 | $sukdmdcr->{_nxso} = $nxso; | ||
| 873 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' nxso='.$sukdmdcr->{_nxso}; | ||
| 874 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' nxso='.$sukdmdcr->{_nxso}; | ||
| 875 | |||
| 876 | } else { | ||
| 877 | print("sukdmdcr, nxso, missing nxso,\n"); | ||
| 878 | } | ||
| 879 | } | ||
| 880 | |||
| 881 | |||
| 882 | =head2 sub nxt | ||
| 883 | |||
| 884 | |||
| 885 | =cut | ||
| 886 | |||
| 887 | sub nxt { | ||
| 888 | |||
| 889 | my ( $self,$nxt ) = @_; | ||
| 890 | if ( $nxt ne $empty_string ) { | ||
| 891 | |||
| 892 | $sukdmdcr->{_nxt} = $nxt; | ||
| 893 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' nxt='.$sukdmdcr->{_nxt}; | ||
| 894 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' nxt='.$sukdmdcr->{_nxt}; | ||
| 895 | |||
| 896 | } else { | ||
| 897 | print("sukdmdcr, nxt, missing nxt,\n"); | ||
| 898 | } | ||
| 899 | } | ||
| 900 | |||
| 901 | |||
| 902 | =head2 sub nzt | ||
| 903 | |||
| 904 | |||
| 905 | =cut | ||
| 906 | |||
| 907 | sub nzt { | ||
| 908 | |||
| 909 | my ( $self,$nzt ) = @_; | ||
| 910 | if ( $nzt ne $empty_string ) { | ||
| 911 | |||
| 912 | $sukdmdcr->{_nzt} = $nzt; | ||
| 913 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' nzt='.$sukdmdcr->{_nzt}; | ||
| 914 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' nzt='.$sukdmdcr->{_nzt}; | ||
| 915 | |||
| 916 | } else { | ||
| 917 | print("sukdmdcr, nzt, missing nzt,\n"); | ||
| 918 | } | ||
| 919 | } | ||
| 920 | |||
| 921 | |||
| 922 | =head2 sub offmax | ||
| 923 | |||
| 924 | |||
| 925 | =cut | ||
| 926 | |||
| 927 | sub offmax { | ||
| 928 | |||
| 929 | my ( $self,$offmax ) = @_; | ||
| 930 | if ( $offmax ne $empty_string ) { | ||
| 931 | |||
| 932 | $sukdmdcr->{_offmax} = $offmax; | ||
| 933 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' offmax='.$sukdmdcr->{_offmax}; | ||
| 934 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' offmax='.$sukdmdcr->{_offmax}; | ||
| 935 | |||
| 936 | } else { | ||
| 937 | print("sukdmdcr, offmax, missing offmax,\n"); | ||
| 938 | } | ||
| 939 | } | ||
| 940 | |||
| 941 | |||
| 942 | =head2 sub outfile | ||
| 943 | |||
| 944 | |||
| 945 | =cut | ||
| 946 | |||
| 947 | sub outfile { | ||
| 948 | |||
| 949 | my ( $self,$outfile ) = @_; | ||
| 950 | if ( $outfile ne $empty_string ) { | ||
| 951 | |||
| 952 | $sukdmdcr->{_outfile} = $outfile; | ||
| 953 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' outfile='.$sukdmdcr->{_outfile}; | ||
| 954 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' outfile='.$sukdmdcr->{_outfile}; | ||
| 955 | |||
| 956 | } else { | ||
| 957 | print("sukdmdcr, outfile, missing outfile,\n"); | ||
| 958 | } | ||
| 959 | } | ||
| 960 | |||
| 961 | |||
| 962 | =head2 sub recfile | ||
| 963 | |||
| 964 | |||
| 965 | =cut | ||
| 966 | |||
| 967 | sub recfile { | ||
| 968 | |||
| 969 | my ( $self,$recfile ) = @_; | ||
| 970 | if ( $recfile ne $empty_string ) { | ||
| 971 | |||
| 972 | $sukdmdcr->{_recfile} = $recfile; | ||
| 973 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' recfile='.$sukdmdcr->{_recfile}; | ||
| 974 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' recfile='.$sukdmdcr->{_recfile}; | ||
| 975 | |||
| 976 | } else { | ||
| 977 | print("sukdmdcr, recfile, missing recfile,\n"); | ||
| 978 | } | ||
| 979 | } | ||
| 980 | |||
| 981 | |||
| 982 | =head2 sub recsurf | ||
| 983 | |||
| 984 | |||
| 985 | =cut | ||
| 986 | |||
| 987 | sub recsurf { | ||
| 988 | |||
| 989 | my ( $self,$recsurf ) = @_; | ||
| 990 | if ( $recsurf ne $empty_string ) { | ||
| 991 | |||
| 992 | $sukdmdcr->{_recsurf} = $recsurf; | ||
| 993 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' recsurf='.$sukdmdcr->{_recsurf}; | ||
| 994 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' recsurf='.$sukdmdcr->{_recsurf}; | ||
| 995 | |||
| 996 | } else { | ||
| 997 | print("sukdmdcr, recsurf, missing recsurf,\n"); | ||
| 998 | } | ||
| 999 | } | ||
| 1000 | |||
| 1001 | |||
| 1002 | =head2 sub scale | ||
| 1003 | |||
| 1004 | |||
| 1005 | =cut | ||
| 1006 | |||
| 1007 | sub scale { | ||
| 1008 | |||
| 1009 | my ( $self,$scale ) = @_; | ||
| 1010 | if ( $scale ne $empty_string ) { | ||
| 1011 | |||
| 1012 | $sukdmdcr->{_scale} = $scale; | ||
| 1013 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' scale='.$sukdmdcr->{_scale}; | ||
| 1014 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' scale='.$sukdmdcr->{_scale}; | ||
| 1015 | |||
| 1016 | } else { | ||
| 1017 | print("sukdmdcr, scale, missing scale,\n"); | ||
| 1018 | } | ||
| 1019 | } | ||
| 1020 | |||
| 1021 | |||
| 1022 | =head2 sub ttfile | ||
| 1023 | |||
| 1024 | |||
| 1025 | =cut | ||
| 1026 | |||
| 1027 | sub ttfile { | ||
| 1028 | |||
| 1029 | my ( $self,$ttfile ) = @_; | ||
| 1030 | if ( $ttfile ne $empty_string ) { | ||
| 1031 | |||
| 1032 | $sukdmdcr->{_ttfile} = $ttfile; | ||
| 1033 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' ttfile='.$sukdmdcr->{_ttfile}; | ||
| 1034 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' ttfile='.$sukdmdcr->{_ttfile}; | ||
| 1035 | |||
| 1036 | } else { | ||
| 1037 | print("sukdmdcr, ttfile, missing ttfile,\n"); | ||
| 1038 | } | ||
| 1039 | } | ||
| 1040 | |||
| 1041 | |||
| 1042 | =head2 sub v0 | ||
| 1043 | |||
| 1044 | |||
| 1045 | =cut | ||
| 1046 | |||
| 1047 | sub v0 { | ||
| 1048 | |||
| 1049 | my ( $self,$v0 ) = @_; | ||
| 1050 | if ( $v0 ne $empty_string ) { | ||
| 1051 | |||
| 1052 | $sukdmdcr->{_v0} = $v0; | ||
| 1053 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' v0='.$sukdmdcr->{_v0}; | ||
| 1054 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' v0='.$sukdmdcr->{_v0}; | ||
| 1055 | |||
| 1056 | } else { | ||
| 1057 | print("sukdmdcr, v0, missing v0,\n"); | ||
| 1058 | } | ||
| 1059 | } | ||
| 1060 | |||
| 1061 | |||
| 1062 | =head2 sub zdat | ||
| 1063 | |||
| 1064 | |||
| 1065 | =cut | ||
| 1066 | |||
| 1067 | sub zdat { | ||
| 1068 | |||
| 1069 | my ( $self,$zdat ) = @_; | ||
| 1070 | if ( $zdat ne $empty_string ) { | ||
| 1071 | |||
| 1072 | $sukdmdcr->{_zdat} = $zdat; | ||
| 1073 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' zdat='.$sukdmdcr->{_zdat}; | ||
| 1074 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' zdat='.$sukdmdcr->{_zdat}; | ||
| 1075 | |||
| 1076 | } else { | ||
| 1077 | print("sukdmdcr, zdat, missing zdat,\n"); | ||
| 1078 | } | ||
| 1079 | } | ||
| 1080 | |||
| 1081 | |||
| 1082 | =head2 sub zrec | ||
| 1083 | |||
| 1084 | |||
| 1085 | =cut | ||
| 1086 | |||
| 1087 | sub zrec { | ||
| 1088 | |||
| 1089 | my ( $self,$zrec ) = @_; | ||
| 1090 | if ( $zrec ne $empty_string ) { | ||
| 1091 | |||
| 1092 | $sukdmdcr->{_zrec} = $zrec; | ||
| 1093 | $sukdmdcr->{_note} = $sukdmdcr->{_note}.' zrec='.$sukdmdcr->{_zrec}; | ||
| 1094 | $sukdmdcr->{_Step} = $sukdmdcr->{_Step}.' zrec='.$sukdmdcr->{_zrec}; | ||
| 1095 | |||
| 1096 | } else { | ||
| 1097 | print("sukdmdcr, zrec, missing zrec,\n"); | ||
| 1098 | } | ||
| 1099 | } | ||
| 1100 | |||
| 1101 | |||
| 1102 | =head2 sub get_max_index | ||
| 1103 | |||
| 1104 | max index = number of input variables -1 | ||
| 1105 | |||
| 1106 | =cut | ||
| 1107 | |||
| 1108 | sub get_max_index { | ||
| 1109 | my ($self) = @_; | ||
| 1110 | |||
| 1111 | my $max_index = 61; | ||
| 1112 | |||
| 1113 | return($max_index); | ||
| 1114 | } | ||
| 1115 | |||
| 1116 | 1; | ||
| 1117 |