« lib/App/SeismicUnixGui/sunix/model/suea2df.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/par/unif2aniso.pm »
| 1 | package App::SeismicUnixGui::sunix::model::suremel2dan; | ||
| 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 | SUREMEL2DAN - Elastic anisotropic 2D Fourier method modeling with high | ||
| 25 | |||
| 26 | accuracy Rapid Expansion Method (REM) time integration | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | suremel2dan [parameters] | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | Required parameters: | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | nx= number of grid points in horizontal direction | ||
| 39 | |||
| 40 | nz= number of grid points in vertical direction | ||
| 41 | |||
| 42 | nt= number of time samples | ||
| 43 | |||
| 44 | dx= spatial increment in horizontal direction | ||
| 45 | |||
| 46 | dz= spatial increment in vertical direction | ||
| 47 | |||
| 48 | dt= time sample interval in seconds | ||
| 49 | |||
| 50 | isx= grid point # of horizontal source positions | ||
| 51 | |||
| 52 | isz= grid point # of vertical source positions | ||
| 53 | |||
| 54 | styp= source types (pressure, shear, single forces) | ||
| 55 | |||
| 56 | samp= amplitudes of sources | ||
| 57 | |||
| 58 | amode= 0: isotropic, 1: anisotropic | ||
| 59 | |||
| 60 | vmax= global maximum velocity (only if amode=1) | ||
| 61 | |||
| 62 | vmin= global minimum velocity (only if amode=1) | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | Optional parameters: | ||
| 67 | |||
| 68 | fx=0.0 first horizontal coordinate | ||
| 69 | |||
| 70 | fz=0.0 first vertical coordinate | ||
| 71 | |||
| 72 | irx= horizontal grid point # of vertical receiver lines | ||
| 73 | |||
| 74 | irz= vertical grid point # of horizontal receiver lines | ||
| 75 | |||
| 76 | rxtyp= types of horizontal receiver lines | ||
| 77 | |||
| 78 | rztyp= types of vertical receivers lines | ||
| 79 | |||
| 80 | sntyp= types of snapshots | ||
| 81 | |||
| 82 | 0: P, 1: S, 2: UX, 3: UZ | ||
| 83 | |||
| 84 | w=0.1 width of spatial source distribution (see notes) | ||
| 85 | |||
| 86 | sflag=2 source time function | ||
| 87 | |||
| 88 | 0: user supplied source function | ||
| 89 | |||
| 90 | 1: impulse (spike at t=0) | ||
| 91 | |||
| 92 | 2: Ricker wavelet | ||
| 93 | |||
| 94 | fmax= maximum frequency of Ricker (default) wavelet | ||
| 95 | |||
| 96 | amps=1.0 amplitudes of sources | ||
| 97 | |||
| 98 | prec=0 1: precompute Bessel coefficients b_k (see notes) | ||
| 99 | |||
| 100 | 2: use precomputed Bessel coefficients b_k | ||
| 101 | |||
| 102 | vmaxu= user-defined maximum velocity | ||
| 103 | |||
| 104 | dtsnap=0.0 time interval in seconds of wave field snapshots | ||
| 105 | |||
| 106 | iabso=1 apply absorbing boundary conditions (0: none) | ||
| 107 | |||
| 108 | abso=0.1 damping parameter for absorbing boundaries | ||
| 109 | |||
| 110 | nbwx=20 horizontal width of absorbing boundary | ||
| 111 | |||
| 112 | nbwz=20 vertical width of absorbing boundary | ||
| 113 | |||
| 114 | verbose=0 1: show parameters used | ||
| 115 | |||
| 116 | 2: print maximum amplitude at every expansion term | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | c11file=c11 c11 filename | ||
| 121 | |||
| 122 | c13file=c13 c13 filename | ||
| 123 | |||
| 124 | c15file=c15 c15 filename | ||
| 125 | |||
| 126 | c33file=c33 c33 filename | ||
| 127 | |||
| 128 | c35file=c35 c35 filename | ||
| 129 | |||
| 130 | c55file=c55 c55 filename | ||
| 131 | |||
| 132 | vpfile=vp P-velocity filename | ||
| 133 | |||
| 134 | vsfile=vs S-velocity filename | ||
| 135 | |||
| 136 | densfile=dens density filename | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | sname=wavelet.su user supplied source time function filename | ||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | Basenames of seismogram and snapshot files: | ||
| 145 | |||
| 146 | xsect=xsect_ x-direction section files basename | ||
| 147 | |||
| 148 | zsect=zsect_ z-direction section files basename | ||
| 149 | |||
| 150 | snap=snap_ snapshot files basename | ||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | jpfile=stderr diagnostic output | ||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | Notes: | ||
| 159 | |||
| 160 | 0. The combination of the Fourier method with REM time integration | ||
| 161 | |||
| 162 | allows the computation of synthetic seismograms which are free | ||
| 163 | |||
| 164 | of numerical grid dispersion. REM has no restriction on the | ||
| 165 | |||
| 166 | time step size dt. The Fourier method requires at least two | ||
| 167 | |||
| 168 | grid points per shortest wavelength. | ||
| 169 | |||
| 170 | 1. nx and nz must be valid numbers for pfafft transform lengths. | ||
| 171 | |||
| 172 | nx and nz must be odd numbers. For valid numbers see e.g. | ||
| 173 | |||
| 174 | numbers in structure 'nctab' in source file | ||
| 175 | |||
| 176 | $CWPROOT/src/cwp/lib/pfafft.c. | ||
| 177 | |||
| 178 | 2. Velocities and densities are stored as plain C style files | ||
| 179 | |||
| 180 | of floats where the fast dimension is along the z-direction. | ||
| 181 | |||
| 182 | 3. Units must be consistent, e.g. m, s and m/s. | ||
| 183 | |||
| 184 | 4. A 20 grid points wide border at the sides and the bottom of | ||
| 185 | |||
| 186 | the modeling grid is used for sponge boundary conditions | ||
| 187 | |||
| 188 | (default: iabso=1). | ||
| 189 | |||
| 190 | Source and receiver lines should be placed some (e.g. 10) grid | ||
| 191 | |||
| 192 | points away from the absorbing boundaries in order to reduce | ||
| 193 | |||
| 194 | reflections due to obliquely incident wavefronts. | ||
| 195 | |||
| 196 | 5. Dominant frequency is about fmax/2 (sflag=2), absolute maximum | ||
| 197 | |||
| 198 | is delayed by 3/fmax from beginning of wavelet. | ||
| 199 | |||
| 200 | 6. If source is not single force (i.e. pressure or shear source) | ||
| 201 | |||
| 202 | it should be not a spike in space; the parameter w determines | ||
| 203 | |||
| 204 | at which distance (in grid points) from the source's center | ||
| 205 | |||
| 206 | the Gaussian weight decays to 10 percent of its maximum. | ||
| 207 | |||
| 208 | w=2 may be a reasonable choice; however, the waveform will be | ||
| 209 | |||
| 210 | distorted. | ||
| 211 | |||
| 212 | 7. Horizontal and vertical receiver line sections are written to | ||
| 213 | |||
| 214 | separate files. Each file can hold more than one line. | ||
| 215 | |||
| 216 | 8. Parameter vmaxu may be enlarged if the modeling run becomes | ||
| 217 | |||
| 218 | unstable. This happens if the largest eigenvalue of the modeling | ||
| 219 | |||
| 220 | operator L is larger than estimated from the largest velocity. | ||
| 221 | |||
| 222 | 9. Bessel coefficients can be precomputed (prec=1) and stored on | ||
| 223 | |||
| 224 | disk to save CPU time when several shots need to be run. | ||
| 225 | |||
| 226 | In this case computation of Bessel coefficients can be skipped | ||
| 227 | |||
| 228 | and read from disk file for reuse (prec=2). | ||
| 229 | |||
| 230 | For reuse of Bessel coefficients the user may need to define | ||
| 231 | |||
| 232 | the overall maximum velocity (vmaxu). | ||
| 233 | |||
| 234 | 10. If snapshots are not required, a spike source (sflag=1) may be | ||
| 235 | |||
| 236 | applied and the resulting impulse response seismograms can be | ||
| 237 | |||
| 238 | convolved later with a desired wavelet. | ||
| 239 | |||
| 240 | 11. Output is written to SU style files. ", | ||
| 241 | |||
| 242 | Basenames of seismogram and snapshot output files will be | ||
| 243 | |||
| 244 | extended by the type of the data (p, s, ux, or uz). | ||
| 245 | |||
| 246 | Additionally seismogram files will be consecutively numbered. | ||
| 247 | |||
| 248 | |||
| 249 | |||
| 250 | Caveat: | ||
| 251 | |||
| 252 | Time sections and snapshots are kept entirely in memory during | ||
| 253 | |||
| 254 | run time. Therefore, lots of time section and snapshots may | ||
| 255 | |||
| 256 | eat up a large amount of memory. | ||
| 257 | |||
| 258 | =head2 User's notes (Juan Lorenzo) | ||
| 259 | untested | ||
| 260 | |||
| 261 | =cut | ||
| 262 | |||
| 263 | |||
| 264 | =head2 CHANGES and their DATES | ||
| 265 | |||
| 266 | =cut | ||
| 267 | |||
| 268 | use Moose; | ||
| 269 | our $VERSION = '0.0.1'; | ||
| 270 | |||
| 271 | |||
| 272 | =head2 Import packages | ||
| 273 | |||
| 274 | =cut | ||
| 275 | |||
| 276 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 277 | |||
| 278 | use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin); | ||
| 279 | use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config'; | ||
| 280 | |||
| 281 | |||
| 282 | =head2 instantiation of packages | ||
| 283 | |||
| 284 | =cut | ||
| 285 | |||
| 286 | my $get = L_SU_global_constants->new(); | ||
| 287 | my $Project = Project_config->new(); | ||
| 288 | my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU(); | ||
| 289 | my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN(); | ||
| 290 | my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT(); | ||
| 291 | |||
| 292 | my $var = $get->var(); | ||
| 293 | my $on = $var->{_on}; | ||
| 294 | my $off = $var->{_off}; | ||
| 295 | my $true = $var->{_true}; | ||
| 296 | my $false = $var->{_false}; | ||
| 297 | my $empty_string = $var->{_empty_string}; | ||
| 298 | |||
| 299 | =head2 Encapsulated | ||
| 300 | hash of private variables | ||
| 301 | |||
| 302 | =cut | ||
| 303 | |||
| 304 | my $suremel2dan = { | ||
| 305 | _abso => '', | ||
| 306 | _amode => '', | ||
| 307 | _amps => '', | ||
| 308 | _c11file => '', | ||
| 309 | _c13file => '', | ||
| 310 | _c15file => '', | ||
| 311 | _c33file => '', | ||
| 312 | _c35file => '', | ||
| 313 | _c55file => '', | ||
| 314 | _densfile => '', | ||
| 315 | _dt => '', | ||
| 316 | _dtsnap => '', | ||
| 317 | _dx => '', | ||
| 318 | _dz => '', | ||
| 319 | _fmax => '', | ||
| 320 | _fx => '', | ||
| 321 | _fz => '', | ||
| 322 | _iabso => '', | ||
| 323 | _irx => '', | ||
| 324 | _irz => '', | ||
| 325 | _isx => '', | ||
| 326 | _isz => '', | ||
| 327 | _jpfile => '', | ||
| 328 | _nbwx => '', | ||
| 329 | _nbwz => '', | ||
| 330 | _nt => '', | ||
| 331 | _nx => '', | ||
| 332 | _nz => '', | ||
| 333 | _prec => '', | ||
| 334 | _rxtyp => '', | ||
| 335 | _rztyp => '', | ||
| 336 | _samp => '', | ||
| 337 | _sflag => '', | ||
| 338 | _sname => '', | ||
| 339 | _snap => '', | ||
| 340 | _sntyp => '', | ||
| 341 | _styp => '', | ||
| 342 | _t => '', | ||
| 343 | _verbose => '', | ||
| 344 | _vmax => '', | ||
| 345 | _vmaxu => '', | ||
| 346 | _vmin => '', | ||
| 347 | _vpfile => '', | ||
| 348 | _vsfile => '', | ||
| 349 | _w => '', | ||
| 350 | _xsect => '', | ||
| 351 | _zsect => '', | ||
| 352 | _Step => '', | ||
| 353 | _note => '', | ||
| 354 | |||
| 355 | }; | ||
| 356 | |||
| 357 | =head2 sub Step | ||
| 358 | |||
| 359 | collects switches and assembles bash instructions | ||
| 360 | by adding the program name | ||
| 361 | |||
| 362 | =cut | ||
| 363 | |||
| 364 | sub Step { | ||
| 365 | |||
| 366 | $suremel2dan->{_Step} = 'suremel2dan'.$suremel2dan->{_Step}; | ||
| 367 | return ( $suremel2dan->{_Step} ); | ||
| 368 | |||
| 369 | } | ||
| 370 | |||
| 371 | |||
| 372 | =head2 sub note | ||
| 373 | |||
| 374 | collects switches and assembles bash instructions | ||
| 375 | by adding the program name | ||
| 376 | |||
| 377 | =cut | ||
| 378 | |||
| 379 | sub note { | ||
| 380 | |||
| 381 | $suremel2dan->{_note} = 'suremel2dan'.$suremel2dan->{_note}; | ||
| 382 | return ( $suremel2dan->{_note} ); | ||
| 383 | |||
| 384 | } | ||
| 385 | |||
| 386 | |||
| 387 | |||
| 388 | =head2 sub clear | ||
| 389 | |||
| 390 | =cut | ||
| 391 | |||
| 392 | sub clear { | ||
| 393 | |||
| 394 | $suremel2dan->{_abso} = ''; | ||
| 395 | $suremel2dan->{_amode} = ''; | ||
| 396 | $suremel2dan->{_amps} = ''; | ||
| 397 | $suremel2dan->{_c11file} = ''; | ||
| 398 | $suremel2dan->{_c13file} = ''; | ||
| 399 | $suremel2dan->{_c15file} = ''; | ||
| 400 | $suremel2dan->{_c33file} = ''; | ||
| 401 | $suremel2dan->{_c35file} = ''; | ||
| 402 | $suremel2dan->{_c55file} = ''; | ||
| 403 | $suremel2dan->{_densfile} = ''; | ||
| 404 | $suremel2dan->{_dt} = ''; | ||
| 405 | $suremel2dan->{_dtsnap} = ''; | ||
| 406 | $suremel2dan->{_dx} = ''; | ||
| 407 | $suremel2dan->{_dz} = ''; | ||
| 408 | $suremel2dan->{_fmax} = ''; | ||
| 409 | $suremel2dan->{_fx} = ''; | ||
| 410 | $suremel2dan->{_fz} = ''; | ||
| 411 | $suremel2dan->{_iabso} = ''; | ||
| 412 | $suremel2dan->{_irx} = ''; | ||
| 413 | $suremel2dan->{_irz} = ''; | ||
| 414 | $suremel2dan->{_isx} = ''; | ||
| 415 | $suremel2dan->{_isz} = ''; | ||
| 416 | $suremel2dan->{_jpfile} = ''; | ||
| 417 | $suremel2dan->{_nbwx} = ''; | ||
| 418 | $suremel2dan->{_nbwz} = ''; | ||
| 419 | $suremel2dan->{_nt} = ''; | ||
| 420 | $suremel2dan->{_nx} = ''; | ||
| 421 | $suremel2dan->{_nz} = ''; | ||
| 422 | $suremel2dan->{_prec} = ''; | ||
| 423 | $suremel2dan->{_rxtyp} = ''; | ||
| 424 | $suremel2dan->{_rztyp} = ''; | ||
| 425 | $suremel2dan->{_samp} = ''; | ||
| 426 | $suremel2dan->{_sflag} = ''; | ||
| 427 | $suremel2dan->{_sname} = ''; | ||
| 428 | $suremel2dan->{_snap} = ''; | ||
| 429 | $suremel2dan->{_sntyp} = ''; | ||
| 430 | $suremel2dan->{_styp} = ''; | ||
| 431 | $suremel2dan->{_t} = ''; | ||
| 432 | $suremel2dan->{_verbose} = ''; | ||
| 433 | $suremel2dan->{_vmax} = ''; | ||
| 434 | $suremel2dan->{_vmaxu} = ''; | ||
| 435 | $suremel2dan->{_vmin} = ''; | ||
| 436 | $suremel2dan->{_vpfile} = ''; | ||
| 437 | $suremel2dan->{_vsfile} = ''; | ||
| 438 | $suremel2dan->{_w} = ''; | ||
| 439 | $suremel2dan->{_xsect} = ''; | ||
| 440 | $suremel2dan->{_zsect} = ''; | ||
| 441 | $suremel2dan->{_Step} = ''; | ||
| 442 | $suremel2dan->{_note} = ''; | ||
| 443 | } | ||
| 444 | |||
| 445 | |||
| 446 | =head2 sub abso | ||
| 447 | |||
| 448 | |||
| 449 | =cut | ||
| 450 | |||
| 451 | sub abso { | ||
| 452 | |||
| 453 | my ( $self,$abso ) = @_; | ||
| 454 | if ( $abso ne $empty_string ) { | ||
| 455 | |||
| 456 | $suremel2dan->{_abso} = $abso; | ||
| 457 | $suremel2dan->{_note} = $suremel2dan->{_note}.' abso='.$suremel2dan->{_abso}; | ||
| 458 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' abso='.$suremel2dan->{_abso}; | ||
| 459 | |||
| 460 | } else { | ||
| 461 | print("suremel2dan, abso, missing abso,\n"); | ||
| 462 | } | ||
| 463 | } | ||
| 464 | |||
| 465 | |||
| 466 | =head2 sub amode | ||
| 467 | |||
| 468 | |||
| 469 | =cut | ||
| 470 | |||
| 471 | sub amode { | ||
| 472 | |||
| 473 | my ( $self,$amode ) = @_; | ||
| 474 | if ( $amode ne $empty_string ) { | ||
| 475 | |||
| 476 | $suremel2dan->{_amode} = $amode; | ||
| 477 | $suremel2dan->{_note} = $suremel2dan->{_note}.' amode='.$suremel2dan->{_amode}; | ||
| 478 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' amode='.$suremel2dan->{_amode}; | ||
| 479 | |||
| 480 | } else { | ||
| 481 | print("suremel2dan, amode, missing amode,\n"); | ||
| 482 | } | ||
| 483 | } | ||
| 484 | |||
| 485 | |||
| 486 | =head2 sub amps | ||
| 487 | |||
| 488 | |||
| 489 | =cut | ||
| 490 | |||
| 491 | sub amps { | ||
| 492 | |||
| 493 | my ( $self,$amps ) = @_; | ||
| 494 | if ( $amps ne $empty_string ) { | ||
| 495 | |||
| 496 | $suremel2dan->{_amps} = $amps; | ||
| 497 | $suremel2dan->{_note} = $suremel2dan->{_note}.' amps='.$suremel2dan->{_amps}; | ||
| 498 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' amps='.$suremel2dan->{_amps}; | ||
| 499 | |||
| 500 | } else { | ||
| 501 | print("suremel2dan, amps, missing amps,\n"); | ||
| 502 | } | ||
| 503 | } | ||
| 504 | |||
| 505 | |||
| 506 | =head2 sub c11file | ||
| 507 | |||
| 508 | |||
| 509 | =cut | ||
| 510 | |||
| 511 | sub c11file { | ||
| 512 | |||
| 513 | my ( $self,$c11file ) = @_; | ||
| 514 | if ( $c11file ne $empty_string ) { | ||
| 515 | |||
| 516 | $suremel2dan->{_c11file} = $c11file; | ||
| 517 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c11file='.$suremel2dan->{_c11file}; | ||
| 518 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c11file='.$suremel2dan->{_c11file}; | ||
| 519 | |||
| 520 | } else { | ||
| 521 | print("suremel2dan, c11file, missing c11file,\n"); | ||
| 522 | } | ||
| 523 | } | ||
| 524 | |||
| 525 | |||
| 526 | =head2 sub c13file | ||
| 527 | |||
| 528 | |||
| 529 | =cut | ||
| 530 | |||
| 531 | sub c13file { | ||
| 532 | |||
| 533 | my ( $self,$c13file ) = @_; | ||
| 534 | if ( $c13file ne $empty_string ) { | ||
| 535 | |||
| 536 | $suremel2dan->{_c13file} = $c13file; | ||
| 537 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c13file='.$suremel2dan->{_c13file}; | ||
| 538 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c13file='.$suremel2dan->{_c13file}; | ||
| 539 | |||
| 540 | } else { | ||
| 541 | print("suremel2dan, c13file, missing c13file,\n"); | ||
| 542 | } | ||
| 543 | } | ||
| 544 | |||
| 545 | |||
| 546 | =head2 sub c15file | ||
| 547 | |||
| 548 | |||
| 549 | =cut | ||
| 550 | |||
| 551 | sub c15file { | ||
| 552 | |||
| 553 | my ( $self,$c15file ) = @_; | ||
| 554 | if ( $c15file ne $empty_string ) { | ||
| 555 | |||
| 556 | $suremel2dan->{_c15file} = $c15file; | ||
| 557 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c15file='.$suremel2dan->{_c15file}; | ||
| 558 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c15file='.$suremel2dan->{_c15file}; | ||
| 559 | |||
| 560 | } else { | ||
| 561 | print("suremel2dan, c15file, missing c15file,\n"); | ||
| 562 | } | ||
| 563 | } | ||
| 564 | |||
| 565 | |||
| 566 | =head2 sub c33file | ||
| 567 | |||
| 568 | |||
| 569 | =cut | ||
| 570 | |||
| 571 | sub c33file { | ||
| 572 | |||
| 573 | my ( $self,$c33file ) = @_; | ||
| 574 | if ( $c33file ne $empty_string ) { | ||
| 575 | |||
| 576 | $suremel2dan->{_c33file} = $c33file; | ||
| 577 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c33file='.$suremel2dan->{_c33file}; | ||
| 578 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c33file='.$suremel2dan->{_c33file}; | ||
| 579 | |||
| 580 | } else { | ||
| 581 | print("suremel2dan, c33file, missing c33file,\n"); | ||
| 582 | } | ||
| 583 | } | ||
| 584 | |||
| 585 | |||
| 586 | =head2 sub c35file | ||
| 587 | |||
| 588 | |||
| 589 | =cut | ||
| 590 | |||
| 591 | sub c35file { | ||
| 592 | |||
| 593 | my ( $self,$c35file ) = @_; | ||
| 594 | if ( $c35file ne $empty_string ) { | ||
| 595 | |||
| 596 | $suremel2dan->{_c35file} = $c35file; | ||
| 597 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c35file='.$suremel2dan->{_c35file}; | ||
| 598 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c35file='.$suremel2dan->{_c35file}; | ||
| 599 | |||
| 600 | } else { | ||
| 601 | print("suremel2dan, c35file, missing c35file,\n"); | ||
| 602 | } | ||
| 603 | } | ||
| 604 | |||
| 605 | |||
| 606 | =head2 sub c55file | ||
| 607 | |||
| 608 | |||
| 609 | =cut | ||
| 610 | |||
| 611 | sub c55file { | ||
| 612 | |||
| 613 | my ( $self,$c55file ) = @_; | ||
| 614 | if ( $c55file ne $empty_string ) { | ||
| 615 | |||
| 616 | $suremel2dan->{_c55file} = $c55file; | ||
| 617 | $suremel2dan->{_note} = $suremel2dan->{_note}.' c55file='.$suremel2dan->{_c55file}; | ||
| 618 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' c55file='.$suremel2dan->{_c55file}; | ||
| 619 | |||
| 620 | } else { | ||
| 621 | print("suremel2dan, c55file, missing c55file,\n"); | ||
| 622 | } | ||
| 623 | } | ||
| 624 | |||
| 625 | |||
| 626 | =head2 sub densfile | ||
| 627 | |||
| 628 | |||
| 629 | =cut | ||
| 630 | |||
| 631 | sub densfile { | ||
| 632 | |||
| 633 | my ( $self,$densfile ) = @_; | ||
| 634 | if ( $densfile ne $empty_string ) { | ||
| 635 | |||
| 636 | $suremel2dan->{_densfile} = $densfile; | ||
| 637 | $suremel2dan->{_note} = $suremel2dan->{_note}.' densfile='.$suremel2dan->{_densfile}; | ||
| 638 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' densfile='.$suremel2dan->{_densfile}; | ||
| 639 | |||
| 640 | } else { | ||
| 641 | print("suremel2dan, densfile, missing densfile,\n"); | ||
| 642 | } | ||
| 643 | } | ||
| 644 | |||
| 645 | |||
| 646 | =head2 sub dt | ||
| 647 | |||
| 648 | |||
| 649 | =cut | ||
| 650 | |||
| 651 | sub dt { | ||
| 652 | |||
| 653 | my ( $self,$dt ) = @_; | ||
| 654 | if ( $dt ne $empty_string ) { | ||
| 655 | |||
| 656 | $suremel2dan->{_dt} = $dt; | ||
| 657 | $suremel2dan->{_note} = $suremel2dan->{_note}.' dt='.$suremel2dan->{_dt}; | ||
| 658 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' dt='.$suremel2dan->{_dt}; | ||
| 659 | |||
| 660 | } else { | ||
| 661 | print("suremel2dan, dt, missing dt,\n"); | ||
| 662 | } | ||
| 663 | } | ||
| 664 | |||
| 665 | |||
| 666 | =head2 sub dtsnap | ||
| 667 | |||
| 668 | |||
| 669 | =cut | ||
| 670 | |||
| 671 | sub dtsnap { | ||
| 672 | |||
| 673 | my ( $self,$dtsnap ) = @_; | ||
| 674 | if ( $dtsnap ne $empty_string ) { | ||
| 675 | |||
| 676 | $suremel2dan->{_dtsnap} = $dtsnap; | ||
| 677 | $suremel2dan->{_note} = $suremel2dan->{_note}.' dtsnap='.$suremel2dan->{_dtsnap}; | ||
| 678 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' dtsnap='.$suremel2dan->{_dtsnap}; | ||
| 679 | |||
| 680 | } else { | ||
| 681 | print("suremel2dan, dtsnap, missing dtsnap,\n"); | ||
| 682 | } | ||
| 683 | } | ||
| 684 | |||
| 685 | |||
| 686 | =head2 sub dx | ||
| 687 | |||
| 688 | |||
| 689 | =cut | ||
| 690 | |||
| 691 | sub dx { | ||
| 692 | |||
| 693 | my ( $self,$dx ) = @_; | ||
| 694 | if ( $dx ne $empty_string ) { | ||
| 695 | |||
| 696 | $suremel2dan->{_dx} = $dx; | ||
| 697 | $suremel2dan->{_note} = $suremel2dan->{_note}.' dx='.$suremel2dan->{_dx}; | ||
| 698 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' dx='.$suremel2dan->{_dx}; | ||
| 699 | |||
| 700 | } else { | ||
| 701 | print("suremel2dan, dx, missing dx,\n"); | ||
| 702 | } | ||
| 703 | } | ||
| 704 | |||
| 705 | |||
| 706 | =head2 sub dz | ||
| 707 | |||
| 708 | |||
| 709 | =cut | ||
| 710 | |||
| 711 | sub dz { | ||
| 712 | |||
| 713 | my ( $self,$dz ) = @_; | ||
| 714 | if ( $dz ne $empty_string ) { | ||
| 715 | |||
| 716 | $suremel2dan->{_dz} = $dz; | ||
| 717 | $suremel2dan->{_note} = $suremel2dan->{_note}.' dz='.$suremel2dan->{_dz}; | ||
| 718 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' dz='.$suremel2dan->{_dz}; | ||
| 719 | |||
| 720 | } else { | ||
| 721 | print("suremel2dan, dz, missing dz,\n"); | ||
| 722 | } | ||
| 723 | } | ||
| 724 | |||
| 725 | |||
| 726 | =head2 sub fmax | ||
| 727 | |||
| 728 | |||
| 729 | =cut | ||
| 730 | |||
| 731 | sub fmax { | ||
| 732 | |||
| 733 | my ( $self,$fmax ) = @_; | ||
| 734 | if ( $fmax ne $empty_string ) { | ||
| 735 | |||
| 736 | $suremel2dan->{_fmax} = $fmax; | ||
| 737 | $suremel2dan->{_note} = $suremel2dan->{_note}.' fmax='.$suremel2dan->{_fmax}; | ||
| 738 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' fmax='.$suremel2dan->{_fmax}; | ||
| 739 | |||
| 740 | } else { | ||
| 741 | print("suremel2dan, fmax, missing fmax,\n"); | ||
| 742 | } | ||
| 743 | } | ||
| 744 | |||
| 745 | |||
| 746 | =head2 sub fx | ||
| 747 | |||
| 748 | |||
| 749 | =cut | ||
| 750 | |||
| 751 | sub fx { | ||
| 752 | |||
| 753 | my ( $self,$fx ) = @_; | ||
| 754 | if ( $fx ne $empty_string ) { | ||
| 755 | |||
| 756 | $suremel2dan->{_fx} = $fx; | ||
| 757 | $suremel2dan->{_note} = $suremel2dan->{_note}.' fx='.$suremel2dan->{_fx}; | ||
| 758 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' fx='.$suremel2dan->{_fx}; | ||
| 759 | |||
| 760 | } else { | ||
| 761 | print("suremel2dan, fx, missing fx,\n"); | ||
| 762 | } | ||
| 763 | } | ||
| 764 | |||
| 765 | |||
| 766 | =head2 sub fz | ||
| 767 | |||
| 768 | |||
| 769 | =cut | ||
| 770 | |||
| 771 | sub fz { | ||
| 772 | |||
| 773 | my ( $self,$fz ) = @_; | ||
| 774 | if ( $fz ne $empty_string ) { | ||
| 775 | |||
| 776 | $suremel2dan->{_fz} = $fz; | ||
| 777 | $suremel2dan->{_note} = $suremel2dan->{_note}.' fz='.$suremel2dan->{_fz}; | ||
| 778 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' fz='.$suremel2dan->{_fz}; | ||
| 779 | |||
| 780 | } else { | ||
| 781 | print("suremel2dan, fz, missing fz,\n"); | ||
| 782 | } | ||
| 783 | } | ||
| 784 | |||
| 785 | |||
| 786 | =head2 sub iabso | ||
| 787 | |||
| 788 | |||
| 789 | =cut | ||
| 790 | |||
| 791 | sub iabso { | ||
| 792 | |||
| 793 | my ( $self,$iabso ) = @_; | ||
| 794 | if ( $iabso ne $empty_string ) { | ||
| 795 | |||
| 796 | $suremel2dan->{_iabso} = $iabso; | ||
| 797 | $suremel2dan->{_note} = $suremel2dan->{_note}.' iabso='.$suremel2dan->{_iabso}; | ||
| 798 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' iabso='.$suremel2dan->{_iabso}; | ||
| 799 | |||
| 800 | } else { | ||
| 801 | print("suremel2dan, iabso, missing iabso,\n"); | ||
| 802 | } | ||
| 803 | } | ||
| 804 | |||
| 805 | |||
| 806 | =head2 sub irx | ||
| 807 | |||
| 808 | |||
| 809 | =cut | ||
| 810 | |||
| 811 | sub irx { | ||
| 812 | |||
| 813 | my ( $self,$irx ) = @_; | ||
| 814 | if ( $irx ne $empty_string ) { | ||
| 815 | |||
| 816 | $suremel2dan->{_irx} = $irx; | ||
| 817 | $suremel2dan->{_note} = $suremel2dan->{_note}.' irx='.$suremel2dan->{_irx}; | ||
| 818 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' irx='.$suremel2dan->{_irx}; | ||
| 819 | |||
| 820 | } else { | ||
| 821 | print("suremel2dan, irx, missing irx,\n"); | ||
| 822 | } | ||
| 823 | } | ||
| 824 | |||
| 825 | |||
| 826 | =head2 sub irz | ||
| 827 | |||
| 828 | |||
| 829 | =cut | ||
| 830 | |||
| 831 | sub irz { | ||
| 832 | |||
| 833 | my ( $self,$irz ) = @_; | ||
| 834 | if ( $irz ne $empty_string ) { | ||
| 835 | |||
| 836 | $suremel2dan->{_irz} = $irz; | ||
| 837 | $suremel2dan->{_note} = $suremel2dan->{_note}.' irz='.$suremel2dan->{_irz}; | ||
| 838 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' irz='.$suremel2dan->{_irz}; | ||
| 839 | |||
| 840 | } else { | ||
| 841 | print("suremel2dan, irz, missing irz,\n"); | ||
| 842 | } | ||
| 843 | } | ||
| 844 | |||
| 845 | |||
| 846 | =head2 sub isx | ||
| 847 | |||
| 848 | |||
| 849 | =cut | ||
| 850 | |||
| 851 | sub isx { | ||
| 852 | |||
| 853 | my ( $self,$isx ) = @_; | ||
| 854 | if ( $isx ne $empty_string ) { | ||
| 855 | |||
| 856 | $suremel2dan->{_isx} = $isx; | ||
| 857 | $suremel2dan->{_note} = $suremel2dan->{_note}.' isx='.$suremel2dan->{_isx}; | ||
| 858 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' isx='.$suremel2dan->{_isx}; | ||
| 859 | |||
| 860 | } else { | ||
| 861 | print("suremel2dan, isx, missing isx,\n"); | ||
| 862 | } | ||
| 863 | } | ||
| 864 | |||
| 865 | |||
| 866 | =head2 sub isz | ||
| 867 | |||
| 868 | |||
| 869 | =cut | ||
| 870 | |||
| 871 | sub isz { | ||
| 872 | |||
| 873 | my ( $self,$isz ) = @_; | ||
| 874 | if ( $isz ne $empty_string ) { | ||
| 875 | |||
| 876 | $suremel2dan->{_isz} = $isz; | ||
| 877 | $suremel2dan->{_note} = $suremel2dan->{_note}.' isz='.$suremel2dan->{_isz}; | ||
| 878 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' isz='.$suremel2dan->{_isz}; | ||
| 879 | |||
| 880 | } else { | ||
| 881 | print("suremel2dan, isz, missing isz,\n"); | ||
| 882 | } | ||
| 883 | } | ||
| 884 | |||
| 885 | |||
| 886 | =head2 sub jpfile | ||
| 887 | |||
| 888 | |||
| 889 | =cut | ||
| 890 | |||
| 891 | sub jpfile { | ||
| 892 | |||
| 893 | my ( $self,$jpfile ) = @_; | ||
| 894 | if ( $jpfile ne $empty_string ) { | ||
| 895 | |||
| 896 | $suremel2dan->{_jpfile} = $jpfile; | ||
| 897 | $suremel2dan->{_note} = $suremel2dan->{_note}.' jpfile='.$suremel2dan->{_jpfile}; | ||
| 898 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' jpfile='.$suremel2dan->{_jpfile}; | ||
| 899 | |||
| 900 | } else { | ||
| 901 | print("suremel2dan, jpfile, missing jpfile,\n"); | ||
| 902 | } | ||
| 903 | } | ||
| 904 | |||
| 905 | |||
| 906 | =head2 sub nbwx | ||
| 907 | |||
| 908 | |||
| 909 | =cut | ||
| 910 | |||
| 911 | sub nbwx { | ||
| 912 | |||
| 913 | my ( $self,$nbwx ) = @_; | ||
| 914 | if ( $nbwx ne $empty_string ) { | ||
| 915 | |||
| 916 | $suremel2dan->{_nbwx} = $nbwx; | ||
| 917 | $suremel2dan->{_note} = $suremel2dan->{_note}.' nbwx='.$suremel2dan->{_nbwx}; | ||
| 918 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' nbwx='.$suremel2dan->{_nbwx}; | ||
| 919 | |||
| 920 | } else { | ||
| 921 | print("suremel2dan, nbwx, missing nbwx,\n"); | ||
| 922 | } | ||
| 923 | } | ||
| 924 | |||
| 925 | |||
| 926 | =head2 sub nbwz | ||
| 927 | |||
| 928 | |||
| 929 | =cut | ||
| 930 | |||
| 931 | sub nbwz { | ||
| 932 | |||
| 933 | my ( $self,$nbwz ) = @_; | ||
| 934 | if ( $nbwz ne $empty_string ) { | ||
| 935 | |||
| 936 | $suremel2dan->{_nbwz} = $nbwz; | ||
| 937 | $suremel2dan->{_note} = $suremel2dan->{_note}.' nbwz='.$suremel2dan->{_nbwz}; | ||
| 938 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' nbwz='.$suremel2dan->{_nbwz}; | ||
| 939 | |||
| 940 | } else { | ||
| 941 | print("suremel2dan, nbwz, missing nbwz,\n"); | ||
| 942 | } | ||
| 943 | } | ||
| 944 | |||
| 945 | |||
| 946 | =head2 sub nt | ||
| 947 | |||
| 948 | |||
| 949 | =cut | ||
| 950 | |||
| 951 | sub nt { | ||
| 952 | |||
| 953 | my ( $self,$nt ) = @_; | ||
| 954 | if ( $nt ne $empty_string ) { | ||
| 955 | |||
| 956 | $suremel2dan->{_nt} = $nt; | ||
| 957 | $suremel2dan->{_note} = $suremel2dan->{_note}.' nt='.$suremel2dan->{_nt}; | ||
| 958 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' nt='.$suremel2dan->{_nt}; | ||
| 959 | |||
| 960 | } else { | ||
| 961 | print("suremel2dan, nt, missing nt,\n"); | ||
| 962 | } | ||
| 963 | } | ||
| 964 | |||
| 965 | |||
| 966 | =head2 sub nx | ||
| 967 | |||
| 968 | |||
| 969 | =cut | ||
| 970 | |||
| 971 | sub nx { | ||
| 972 | |||
| 973 | my ( $self,$nx ) = @_; | ||
| 974 | if ( $nx ne $empty_string ) { | ||
| 975 | |||
| 976 | $suremel2dan->{_nx} = $nx; | ||
| 977 | $suremel2dan->{_note} = $suremel2dan->{_note}.' nx='.$suremel2dan->{_nx}; | ||
| 978 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' nx='.$suremel2dan->{_nx}; | ||
| 979 | |||
| 980 | } else { | ||
| 981 | print("suremel2dan, nx, missing nx,\n"); | ||
| 982 | } | ||
| 983 | } | ||
| 984 | |||
| 985 | |||
| 986 | =head2 sub nz | ||
| 987 | |||
| 988 | |||
| 989 | =cut | ||
| 990 | |||
| 991 | sub nz { | ||
| 992 | |||
| 993 | my ( $self,$nz ) = @_; | ||
| 994 | if ( $nz ne $empty_string ) { | ||
| 995 | |||
| 996 | $suremel2dan->{_nz} = $nz; | ||
| 997 | $suremel2dan->{_note} = $suremel2dan->{_note}.' nz='.$suremel2dan->{_nz}; | ||
| 998 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' nz='.$suremel2dan->{_nz}; | ||
| 999 | |||
| 1000 | } else { | ||
| 1001 | print("suremel2dan, nz, missing nz,\n"); | ||
| 1002 | } | ||
| 1003 | } | ||
| 1004 | |||
| 1005 | |||
| 1006 | =head2 sub prec | ||
| 1007 | |||
| 1008 | |||
| 1009 | =cut | ||
| 1010 | |||
| 1011 | sub prec { | ||
| 1012 | |||
| 1013 | my ( $self,$prec ) = @_; | ||
| 1014 | if ( $prec ne $empty_string ) { | ||
| 1015 | |||
| 1016 | $suremel2dan->{_prec} = $prec; | ||
| 1017 | $suremel2dan->{_note} = $suremel2dan->{_note}.' prec='.$suremel2dan->{_prec}; | ||
| 1018 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' prec='.$suremel2dan->{_prec}; | ||
| 1019 | |||
| 1020 | } else { | ||
| 1021 | print("suremel2dan, prec, missing prec,\n"); | ||
| 1022 | } | ||
| 1023 | } | ||
| 1024 | |||
| 1025 | |||
| 1026 | =head2 sub rxtyp | ||
| 1027 | |||
| 1028 | |||
| 1029 | =cut | ||
| 1030 | |||
| 1031 | sub rxtyp { | ||
| 1032 | |||
| 1033 | my ( $self,$rxtyp ) = @_; | ||
| 1034 | if ( $rxtyp ne $empty_string ) { | ||
| 1035 | |||
| 1036 | $suremel2dan->{_rxtyp} = $rxtyp; | ||
| 1037 | $suremel2dan->{_note} = $suremel2dan->{_note}.' rxtyp='.$suremel2dan->{_rxtyp}; | ||
| 1038 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' rxtyp='.$suremel2dan->{_rxtyp}; | ||
| 1039 | |||
| 1040 | } else { | ||
| 1041 | print("suremel2dan, rxtyp, missing rxtyp,\n"); | ||
| 1042 | } | ||
| 1043 | } | ||
| 1044 | |||
| 1045 | |||
| 1046 | =head2 sub rztyp | ||
| 1047 | |||
| 1048 | |||
| 1049 | =cut | ||
| 1050 | |||
| 1051 | sub rztyp { | ||
| 1052 | |||
| 1053 | my ( $self,$rztyp ) = @_; | ||
| 1054 | if ( $rztyp ne $empty_string ) { | ||
| 1055 | |||
| 1056 | $suremel2dan->{_rztyp} = $rztyp; | ||
| 1057 | $suremel2dan->{_note} = $suremel2dan->{_note}.' rztyp='.$suremel2dan->{_rztyp}; | ||
| 1058 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' rztyp='.$suremel2dan->{_rztyp}; | ||
| 1059 | |||
| 1060 | } else { | ||
| 1061 | print("suremel2dan, rztyp, missing rztyp,\n"); | ||
| 1062 | } | ||
| 1063 | } | ||
| 1064 | |||
| 1065 | |||
| 1066 | =head2 sub samp | ||
| 1067 | |||
| 1068 | |||
| 1069 | =cut | ||
| 1070 | |||
| 1071 | sub samp { | ||
| 1072 | |||
| 1073 | my ( $self,$samp ) = @_; | ||
| 1074 | if ( $samp ne $empty_string ) { | ||
| 1075 | |||
| 1076 | $suremel2dan->{_samp} = $samp; | ||
| 1077 | $suremel2dan->{_note} = $suremel2dan->{_note}.' samp='.$suremel2dan->{_samp}; | ||
| 1078 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' samp='.$suremel2dan->{_samp}; | ||
| 1079 | |||
| 1080 | } else { | ||
| 1081 | print("suremel2dan, samp, missing samp,\n"); | ||
| 1082 | } | ||
| 1083 | } | ||
| 1084 | |||
| 1085 | |||
| 1086 | =head2 sub sflag | ||
| 1087 | |||
| 1088 | |||
| 1089 | =cut | ||
| 1090 | |||
| 1091 | sub sflag { | ||
| 1092 | |||
| 1093 | my ( $self,$sflag ) = @_; | ||
| 1094 | if ( $sflag ne $empty_string ) { | ||
| 1095 | |||
| 1096 | $suremel2dan->{_sflag} = $sflag; | ||
| 1097 | $suremel2dan->{_note} = $suremel2dan->{_note}.' sflag='.$suremel2dan->{_sflag}; | ||
| 1098 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' sflag='.$suremel2dan->{_sflag}; | ||
| 1099 | |||
| 1100 | } else { | ||
| 1101 | print("suremel2dan, sflag, missing sflag,\n"); | ||
| 1102 | } | ||
| 1103 | } | ||
| 1104 | |||
| 1105 | |||
| 1106 | =head2 sub sname | ||
| 1107 | |||
| 1108 | |||
| 1109 | =cut | ||
| 1110 | |||
| 1111 | sub sname { | ||
| 1112 | |||
| 1113 | my ( $self,$sname ) = @_; | ||
| 1114 | if ( $sname ne $empty_string ) { | ||
| 1115 | |||
| 1116 | $suremel2dan->{_sname} = $sname; | ||
| 1117 | $suremel2dan->{_note} = $suremel2dan->{_note}.' sname='.$suremel2dan->{_sname}; | ||
| 1118 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' sname='.$suremel2dan->{_sname}; | ||
| 1119 | |||
| 1120 | } else { | ||
| 1121 | print("suremel2dan, sname, missing sname,\n"); | ||
| 1122 | } | ||
| 1123 | } | ||
| 1124 | |||
| 1125 | |||
| 1126 | =head2 sub snap | ||
| 1127 | |||
| 1128 | |||
| 1129 | =cut | ||
| 1130 | |||
| 1131 | sub snap { | ||
| 1132 | |||
| 1133 | my ( $self,$snap ) = @_; | ||
| 1134 | if ( $snap ne $empty_string ) { | ||
| 1135 | |||
| 1136 | $suremel2dan->{_snap} = $snap; | ||
| 1137 | $suremel2dan->{_note} = $suremel2dan->{_note}.' snap='.$suremel2dan->{_snap}; | ||
| 1138 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' snap='.$suremel2dan->{_snap}; | ||
| 1139 | |||
| 1140 | } else { | ||
| 1141 | print("suremel2dan, snap, missing snap,\n"); | ||
| 1142 | } | ||
| 1143 | } | ||
| 1144 | |||
| 1145 | |||
| 1146 | =head2 sub sntyp | ||
| 1147 | |||
| 1148 | |||
| 1149 | =cut | ||
| 1150 | |||
| 1151 | sub sntyp { | ||
| 1152 | |||
| 1153 | my ( $self,$sntyp ) = @_; | ||
| 1154 | if ( $sntyp ne $empty_string ) { | ||
| 1155 | |||
| 1156 | $suremel2dan->{_sntyp} = $sntyp; | ||
| 1157 | $suremel2dan->{_note} = $suremel2dan->{_note}.' sntyp='.$suremel2dan->{_sntyp}; | ||
| 1158 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' sntyp='.$suremel2dan->{_sntyp}; | ||
| 1159 | |||
| 1160 | } else { | ||
| 1161 | print("suremel2dan, sntyp, missing sntyp,\n"); | ||
| 1162 | } | ||
| 1163 | } | ||
| 1164 | |||
| 1165 | |||
| 1166 | =head2 sub styp | ||
| 1167 | |||
| 1168 | |||
| 1169 | =cut | ||
| 1170 | |||
| 1171 | sub styp { | ||
| 1172 | |||
| 1173 | my ( $self,$styp ) = @_; | ||
| 1174 | if ( $styp ne $empty_string ) { | ||
| 1175 | |||
| 1176 | $suremel2dan->{_styp} = $styp; | ||
| 1177 | $suremel2dan->{_note} = $suremel2dan->{_note}.' styp='.$suremel2dan->{_styp}; | ||
| 1178 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' styp='.$suremel2dan->{_styp}; | ||
| 1179 | |||
| 1180 | } else { | ||
| 1181 | print("suremel2dan, styp, missing styp,\n"); | ||
| 1182 | } | ||
| 1183 | } | ||
| 1184 | |||
| 1185 | |||
| 1186 | =head2 sub t | ||
| 1187 | |||
| 1188 | |||
| 1189 | =cut | ||
| 1190 | |||
| 1191 | sub t { | ||
| 1192 | |||
| 1193 | my ( $self,$t ) = @_; | ||
| 1194 | if ( $t ne $empty_string ) { | ||
| 1195 | |||
| 1196 | $suremel2dan->{_t} = $t; | ||
| 1197 | $suremel2dan->{_note} = $suremel2dan->{_note}.' t='.$suremel2dan->{_t}; | ||
| 1198 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' t='.$suremel2dan->{_t}; | ||
| 1199 | |||
| 1200 | } else { | ||
| 1201 | print("suremel2dan, t, missing t,\n"); | ||
| 1202 | } | ||
| 1203 | } | ||
| 1204 | |||
| 1205 | |||
| 1206 | =head2 sub verbose | ||
| 1207 | |||
| 1208 | |||
| 1209 | =cut | ||
| 1210 | |||
| 1211 | sub verbose { | ||
| 1212 | |||
| 1213 | my ( $self,$verbose ) = @_; | ||
| 1214 | if ( $verbose ne $empty_string ) { | ||
| 1215 | |||
| 1216 | $suremel2dan->{_verbose} = $verbose; | ||
| 1217 | $suremel2dan->{_note} = $suremel2dan->{_note}.' verbose='.$suremel2dan->{_verbose}; | ||
| 1218 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' verbose='.$suremel2dan->{_verbose}; | ||
| 1219 | |||
| 1220 | } else { | ||
| 1221 | print("suremel2dan, verbose, missing verbose,\n"); | ||
| 1222 | } | ||
| 1223 | } | ||
| 1224 | |||
| 1225 | |||
| 1226 | =head2 sub vmax | ||
| 1227 | |||
| 1228 | |||
| 1229 | =cut | ||
| 1230 | |||
| 1231 | sub vmax { | ||
| 1232 | |||
| 1233 | my ( $self,$vmax ) = @_; | ||
| 1234 | if ( $vmax ne $empty_string ) { | ||
| 1235 | |||
| 1236 | $suremel2dan->{_vmax} = $vmax; | ||
| 1237 | $suremel2dan->{_note} = $suremel2dan->{_note}.' vmax='.$suremel2dan->{_vmax}; | ||
| 1238 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' vmax='.$suremel2dan->{_vmax}; | ||
| 1239 | |||
| 1240 | } else { | ||
| 1241 | print("suremel2dan, vmax, missing vmax,\n"); | ||
| 1242 | } | ||
| 1243 | } | ||
| 1244 | |||
| 1245 | |||
| 1246 | =head2 sub vmaxu | ||
| 1247 | |||
| 1248 | |||
| 1249 | =cut | ||
| 1250 | |||
| 1251 | sub vmaxu { | ||
| 1252 | |||
| 1253 | my ( $self,$vmaxu ) = @_; | ||
| 1254 | if ( $vmaxu ne $empty_string ) { | ||
| 1255 | |||
| 1256 | $suremel2dan->{_vmaxu} = $vmaxu; | ||
| 1257 | $suremel2dan->{_note} = $suremel2dan->{_note}.' vmaxu='.$suremel2dan->{_vmaxu}; | ||
| 1258 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' vmaxu='.$suremel2dan->{_vmaxu}; | ||
| 1259 | |||
| 1260 | } else { | ||
| 1261 | print("suremel2dan, vmaxu, missing vmaxu,\n"); | ||
| 1262 | } | ||
| 1263 | } | ||
| 1264 | |||
| 1265 | |||
| 1266 | =head2 sub vmin | ||
| 1267 | |||
| 1268 | |||
| 1269 | =cut | ||
| 1270 | |||
| 1271 | sub vmin { | ||
| 1272 | |||
| 1273 | my ( $self,$vmin ) = @_; | ||
| 1274 | if ( $vmin ne $empty_string ) { | ||
| 1275 | |||
| 1276 | $suremel2dan->{_vmin} = $vmin; | ||
| 1277 | $suremel2dan->{_note} = $suremel2dan->{_note}.' vmin='.$suremel2dan->{_vmin}; | ||
| 1278 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' vmin='.$suremel2dan->{_vmin}; | ||
| 1279 | |||
| 1280 | } else { | ||
| 1281 | print("suremel2dan, vmin, missing vmin,\n"); | ||
| 1282 | } | ||
| 1283 | } | ||
| 1284 | |||
| 1285 | |||
| 1286 | =head2 sub vpfile | ||
| 1287 | |||
| 1288 | |||
| 1289 | =cut | ||
| 1290 | |||
| 1291 | sub vpfile { | ||
| 1292 | |||
| 1293 | my ( $self,$vpfile ) = @_; | ||
| 1294 | if ( $vpfile ne $empty_string ) { | ||
| 1295 | |||
| 1296 | $suremel2dan->{_vpfile} = $vpfile; | ||
| 1297 | $suremel2dan->{_note} = $suremel2dan->{_note}.' vpfile='.$suremel2dan->{_vpfile}; | ||
| 1298 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' vpfile='.$suremel2dan->{_vpfile}; | ||
| 1299 | |||
| 1300 | } else { | ||
| 1301 | print("suremel2dan, vpfile, missing vpfile,\n"); | ||
| 1302 | } | ||
| 1303 | } | ||
| 1304 | |||
| 1305 | |||
| 1306 | =head2 sub vsfile | ||
| 1307 | |||
| 1308 | |||
| 1309 | =cut | ||
| 1310 | |||
| 1311 | sub vsfile { | ||
| 1312 | |||
| 1313 | my ( $self,$vsfile ) = @_; | ||
| 1314 | if ( $vsfile ne $empty_string ) { | ||
| 1315 | |||
| 1316 | $suremel2dan->{_vsfile} = $vsfile; | ||
| 1317 | $suremel2dan->{_note} = $suremel2dan->{_note}.' vsfile='.$suremel2dan->{_vsfile}; | ||
| 1318 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' vsfile='.$suremel2dan->{_vsfile}; | ||
| 1319 | |||
| 1320 | } else { | ||
| 1321 | print("suremel2dan, vsfile, missing vsfile,\n"); | ||
| 1322 | } | ||
| 1323 | } | ||
| 1324 | |||
| 1325 | |||
| 1326 | =head2 sub w | ||
| 1327 | |||
| 1328 | |||
| 1329 | =cut | ||
| 1330 | |||
| 1331 | sub w { | ||
| 1332 | |||
| 1333 | my ( $self,$w ) = @_; | ||
| 1334 | if ( $w ne $empty_string ) { | ||
| 1335 | |||
| 1336 | $suremel2dan->{_w} = $w; | ||
| 1337 | $suremel2dan->{_note} = $suremel2dan->{_note}.' w='.$suremel2dan->{_w}; | ||
| 1338 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' w='.$suremel2dan->{_w}; | ||
| 1339 | |||
| 1340 | } else { | ||
| 1341 | print("suremel2dan, w, missing w,\n"); | ||
| 1342 | } | ||
| 1343 | } | ||
| 1344 | |||
| 1345 | |||
| 1346 | =head2 sub xsect | ||
| 1347 | |||
| 1348 | |||
| 1349 | =cut | ||
| 1350 | |||
| 1351 | sub xsect { | ||
| 1352 | |||
| 1353 | my ( $self,$xsect ) = @_; | ||
| 1354 | if ( $xsect ne $empty_string ) { | ||
| 1355 | |||
| 1356 | $suremel2dan->{_xsect} = $xsect; | ||
| 1357 | $suremel2dan->{_note} = $suremel2dan->{_note}.' xsect='.$suremel2dan->{_xsect}; | ||
| 1358 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' xsect='.$suremel2dan->{_xsect}; | ||
| 1359 | |||
| 1360 | } else { | ||
| 1361 | print("suremel2dan, xsect, missing xsect,\n"); | ||
| 1362 | } | ||
| 1363 | } | ||
| 1364 | |||
| 1365 | |||
| 1366 | =head2 sub zsect | ||
| 1367 | |||
| 1368 | |||
| 1369 | =cut | ||
| 1370 | |||
| 1371 | sub zsect { | ||
| 1372 | |||
| 1373 | my ( $self,$zsect ) = @_; | ||
| 1374 | if ( $zsect ne $empty_string ) { | ||
| 1375 | |||
| 1376 | $suremel2dan->{_zsect} = $zsect; | ||
| 1377 | $suremel2dan->{_note} = $suremel2dan->{_note}.' zsect='.$suremel2dan->{_zsect}; | ||
| 1378 | $suremel2dan->{_Step} = $suremel2dan->{_Step}.' zsect='.$suremel2dan->{_zsect}; | ||
| 1379 | |||
| 1380 | } else { | ||
| 1381 | print("suremel2dan, zsect, missing zsect,\n"); | ||
| 1382 | } | ||
| 1383 | } | ||
| 1384 | |||
| 1385 | |||
| 1386 | =head2 sub get_max_index | ||
| 1387 | |||
| 1388 | max index = number of input variables -1 | ||
| 1389 | |||
| 1390 | =cut | ||
| 1391 | |||
| 1392 | sub get_max_index { | ||
| 1393 | my ($self) = @_; | ||
| 1394 | my $max_index = 47; | ||
| 1395 | |||
| 1396 | return($max_index); | ||
| 1397 | } | ||
| 1398 | |||
| 1399 | |||
| 1400 | 1; |