« lib/App/SeismicUnixGui/sunix/datum/sukdmdcr.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/model/sukdsyn2d.pm »
| 1 | package App::SeismicUnixGui::sunix::filter::supolar; | ||
| 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 | SUPOLAR - POLarization analysis of three-component data | ||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | supolar <stdin [optional parameters] | ||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | Required parameters: | ||
| 33 | |||
| 34 | none | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | Optional parameters: | ||
| 39 | |||
| 40 | dt=(from header) time sampling intervall in seconds | ||
| 41 | |||
| 42 | wl=0.1 correlation window length in seconds | ||
| 43 | |||
| 44 | win=boxcar correlation window shape, choose "boxcar", | ||
| 45 | |||
| 46 | "hanning", "bartlett", or "welsh | ||
| 47 | |||
| 48 | file=polar base of output file name(s) | ||
| 49 | |||
| 50 | rl=1 1 = rectilinearity evaluating 2 eigenvalues, | ||
| 51 | |||
| 52 | 2, 3 = rectilinearity evaluating 3 eigenvalues | ||
| 53 | |||
| 54 | rlq=1.0 contrast parameter for rectilinearity | ||
| 55 | |||
| 56 | dir=1 1 = 3 components of direction of polarization | ||
| 57 | |||
| 58 | (the only three-component output file) | ||
| 59 | |||
| 60 | tau=0 1 = global polarization parameter | ||
| 61 | |||
| 62 | ellip=0 1 = principal, subprincipal, and transverse | ||
| 63 | |||
| 64 | ellipticities e21, e31, and e32 | ||
| 65 | |||
| 66 | pln=0 1 = planarity measure | ||
| 67 | |||
| 68 | f1=0 1 = flatness or oblateness coefficient | ||
| 69 | |||
| 70 | l1=0 1 = linearity coefficient | ||
| 71 | |||
| 72 | amp=0 1 = amplitude parameters: instantaneous, | ||
| 73 | |||
| 74 | quadratic, and eigenresultant ir, qr, and er | ||
| 75 | |||
| 76 | theta=0 1, 2, 3 = incidence angle of principal axis | ||
| 77 | |||
| 78 | phi=0 1, 2, 3 = horizontal azimuth of principal axis | ||
| 79 | |||
| 80 | angle=rad unit of angles theta and phi, choose "rad", | ||
| 81 | |||
| 82 | "deg", or "gon | ||
| 83 | |||
| 84 | all=0 1, 2, 3 = set all output flags to that value | ||
| 85 | |||
| 86 | verbose=0 1 = echo additional information | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | Notes: | ||
| 93 | |||
| 94 | Three adjacent traces are considered as one three-component | ||
| 95 | |||
| 96 | dataset. | ||
| 97 | |||
| 98 | Correct calculation of angles theta and phi requires the first of | ||
| 99 | |||
| 100 | these traces to be the vertical component, followed by the two | ||
| 101 | |||
| 102 | horizontal components (e.g. Z, N, E, or Z, inline, crossline). | ||
| 103 | |||
| 104 | Significant signal energy on Z is necessary to resolve the 180 deg | ||
| 105 | |||
| 106 | ambiguity of phi (options phi=2,3 only). | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | Each calculated polarization attribute is written into its own | ||
| 111 | |||
| 112 | SU file. These files get the same base name (set with "file=") | ||
| 113 | |||
| 114 | and the parameter flag as an extension (e.g. polar.rl). | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | In case of a tapered correlation window, the window length wl may | ||
| 119 | |||
| 120 | have to be increased compared to the boxcar case, because of their | ||
| 121 | |||
| 122 | smaller effective widths (Bartlett, Hanning: 1/2, Welsh: 1/3). | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | Range of values: | ||
| 127 | |||
| 128 | parameter option interval | ||
| 129 | |||
| 130 | rl 1, 2 0.0 ... 1.0 (1.0: linear polarization) | ||
| 131 | |||
| 132 | rl 3 -1.0 ... 1.0 | ||
| 133 | |||
| 134 | tau, l1 1 0.0 ... 1.0 (1.0: linear polarization) | ||
| 135 | |||
| 136 | pln, f1 1 0.0 ... 1.0 (1.0: planar polarization) | ||
| 137 | |||
| 138 | e21, e31, e32 1 0.0 ... 1.0 (0.0: linear polarization) | ||
| 139 | |||
| 140 | theta 1 -pi/2... pi/2 rad | ||
| 141 | |||
| 142 | theta 2, 3 0.0 ... pi/2 rad | ||
| 143 | |||
| 144 | phi 1 -pi/2... pi/2 rad | ||
| 145 | |||
| 146 | phi 2 -pi ... pi rad (see notes above) | ||
| 147 | |||
| 148 | phi 3 0.0 ... 2 pi rad (see notes above) | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | |||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | Author: Nils Maercklin, | ||
| 159 | |||
| 160 | GeoForschungsZentrum (GFZ) Potsdam, Germany, 1998-2001. | ||
| 161 | |||
| 162 | E-mail: nils@gfz-potsdam.de | ||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | References: | ||
| 169 | |||
| 170 | Jurkevics, A., 1988: Polarization analysis of three-component | ||
| 171 | |||
| 172 | array data. Bulletin of the Seismological Society of America, | ||
| 173 | |||
| 174 | vol. 78, no. 5. | ||
| 175 | |||
| 176 | Kanasewich, E. R., 1981: Time Sequence Analysis in Geophysics. | ||
| 177 | |||
| 178 | The University of Alberta Press. | ||
| 179 | |||
| 180 | Kanasewich, E. R., 1990: Seismic Noise Attenuation. | ||
| 181 | |||
| 182 | Handbook of Geophysical Exploration, Pergamon Press, Oxford. | ||
| 183 | |||
| 184 | Meyer, J. H. 1988: First Comparative Results of Integral and | ||
| 185 | |||
| 186 | Instantaneous Polarization Attributes for Multicomponent Seismic | ||
| 187 | |||
| 188 | Data. Institut Francais du Petrole. | ||
| 189 | |||
| 190 | Press, W. H., Teukolsky, S. A., Vetterling, W. T., and Flannery, B. P. | ||
| 191 | |||
| 192 | 1996: Numerical Recipes in C - The Art of Scientific Computing. | ||
| 193 | |||
| 194 | Cambridge University Press, Cambridge. | ||
| 195 | |||
| 196 | Samson, J. C., 1973: Description of the Polarisation States of Vector | ||
| 197 | |||
| 198 | Processes: Application to ULF Electromagnetic Fields. | ||
| 199 | |||
| 200 | Geophysical Journal vol. 34, p. 403-419. | ||
| 201 | |||
| 202 | Sheriff, R. E., 1991: Encyclopedic Dictionary of Exploration | ||
| 203 | |||
| 204 | Geophysics. 3rd ed., Society of Exploration Geophysicists, Tulsa. | ||
| 205 | |||
| 206 | |||
| 207 | |||
| 208 | Trace header fields accessed: ns, dt | ||
| 209 | |||
| 210 | Trace header fields modified: none | ||
| 211 | |||
| 212 | =head2 User's notes (Juan Lorenzo) | ||
| 213 | Untested | ||
| 214 | |||
| 215 | =cut | ||
| 216 | |||
| 217 | =head2 CHANGES and their DATES | ||
| 218 | |||
| 219 | =cut | ||
| 220 | |||
| 221 | use Moose; | ||
| 222 | our $VERSION = '0.0.1'; | ||
| 223 | |||
| 224 | =head2 Import packages | ||
| 225 | |||
| 226 | =cut | ||
| 227 | |||
| 228 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 229 | |||
| 230 | use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin); | ||
| 231 | use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config'; | ||
| 232 | |||
| 233 | =head2 instantiation of packages | ||
| 234 | |||
| 235 | =cut | ||
| 236 | |||
| 237 | my $get = L_SU_global_constants->new(); | ||
| 238 | my $Project = Project_config->new(); | ||
| 239 | my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU(); | ||
| 240 | my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN(); | ||
| 241 | my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT(); | ||
| 242 | |||
| 243 | my $var = $get->var(); | ||
| 244 | my $on = $var->{_on}; | ||
| 245 | my $off = $var->{_off}; | ||
| 246 | my $true = $var->{_true}; | ||
| 247 | my $false = $var->{_false}; | ||
| 248 | my $empty_string = $var->{_empty_string}; | ||
| 249 | |||
| 250 | =head2 Encapsulated | ||
| 251 | hash of private variables | ||
| 252 | |||
| 253 | =cut | ||
| 254 | |||
| 255 | my $supolar = { | ||
| 256 | _output_amplitude => '', | ||
| 257 | _amp => '', | ||
| 258 | _angle_units => '', | ||
| 259 | _angle => '', | ||
| 260 | _azimuth_principal_axes => '', | ||
| 261 | _phi => '', | ||
| 262 | _base_file_name_out => '', | ||
| 263 | _file => '', | ||
| 264 | _correlation_window_width_s => '', | ||
| 265 | _wl => '', | ||
| 266 | _correlation_window_type => '', | ||
| 267 | _win => '', | ||
| 268 | _default_values => '', | ||
| 269 | _all => '', | ||
| 270 | _flatness => '', | ||
| 271 | _f1 => '', | ||
| 272 | _global_parameter => '', | ||
| 273 | _tau => '', | ||
| 274 | _incidence_angle_principal_axis => '', | ||
| 275 | _theta => '', | ||
| 276 | _linearity => '', | ||
| 277 | _l1 => '', | ||
| 278 | _note => '', | ||
| 279 | _components_polarization => '', | ||
| 280 | _dir => '', | ||
| 281 | _planarity => '', | ||
| 282 | _pln => '', | ||
| 283 | _rectilinearity => '', | ||
| 284 | _rl => '', | ||
| 285 | _rectilinearity_contrast => '', | ||
| 286 | _rlq => '', | ||
| 287 | _Step => '', | ||
| 288 | _verbose => '', | ||
| 289 | _output_ellipticities => '', | ||
| 290 | _ellip => '' | ||
| 291 | }; | ||
| 292 | |||
| 293 | =head2 sub Step | ||
| 294 | |||
| 295 | collects switches and assembles bash instructions | ||
| 296 | by adding the program name | ||
| 297 | =cut | ||
| 298 | |||
| 299 | sub Step { | ||
| 300 | |||
| 301 | $supolar->{_Step} = 'supolar' . $supolar->{_Step}; | ||
| 302 | return ( $supolar->{_Step} ); | ||
| 303 | |||
| 304 | } | ||
| 305 | |||
| 306 | =head2 sub note | ||
| 307 | |||
| 308 | collects switches and assembles bash instructions | ||
| 309 | by adding the program name | ||
| 310 | |||
| 311 | =cut | ||
| 312 | |||
| 313 | sub note { | ||
| 314 | |||
| 315 | $supolar->{_note} = 'supolar' . $supolar->{_note}; | ||
| 316 | return ( $supolar->{_note} ); | ||
| 317 | |||
| 318 | } | ||
| 319 | |||
| 320 | =head2 sub clear | ||
| 321 | |||
| 322 | =cut | ||
| 323 | |||
| 324 | sub clear { | ||
| 325 | |||
| 326 | $supolar->{_output_amplitude} = ''; | ||
| 327 | $supolar->{_amp} = ''; | ||
| 328 | $supolar->{_angle_units} = ''; | ||
| 329 | $supolar->{_angle} = ''; | ||
| 330 | $supolar->{_azimuth_principal_axes} = ''; | ||
| 331 | $supolar->{_phi} = ''; | ||
| 332 | $supolar->{_base_file_name_out} = ''; | ||
| 333 | $supolar->{_file} = ''; | ||
| 334 | $supolar->{_correlation_window_type} = ''; | ||
| 335 | $supolar->{_win} = ''; | ||
| 336 | $supolar->{_correlation_window_width_s} = ''; | ||
| 337 | $supolar->{_wl} = ''; | ||
| 338 | $supolar->{_default_values} = ''; | ||
| 339 | $supolar->{_all} = ''; | ||
| 340 | $supolar->{_flatness} = ''; | ||
| 341 | $supolar->{_f1} = ''; | ||
| 342 | $supolar->{_global_parameter} = ''; | ||
| 343 | $supolar->{_tau} = ''; | ||
| 344 | $supolar->{_incidence_angle_principal_axis} = ''; | ||
| 345 | $supolar->{_theta} = ''; | ||
| 346 | $supolar->{_linearity} = ''; | ||
| 347 | $supolar->{_l1} = ''; | ||
| 348 | $supolar->{_note} = ''; | ||
| 349 | $supolar->{_components_polarization} = ''; | ||
| 350 | $supolar->{_dir} = ''; | ||
| 351 | $supolar->{_planarity} = ''; | ||
| 352 | $supolar->{_pln} = ''; | ||
| 353 | $supolar->{_rectilinearity} = ''; | ||
| 354 | $supolar->{_rl} = ''; | ||
| 355 | $supolar->{_rectilinearity_contrast} = ''; | ||
| 356 | $supolar->{_rlq} = ''; | ||
| 357 | $supolar->{_verbose} = ''; | ||
| 358 | $supolar->{_output_ellipticities} = ''; | ||
| 359 | $supolar->{_ellip} = ''; | ||
| 360 | $supolar->{_Step} = ''; | ||
| 361 | |||
| 362 | } | ||
| 363 | |||
| 364 | |||
| 365 | =head2 sub all | ||
| 366 | |||
| 367 | |||
| 368 | =cut | ||
| 369 | |||
| 370 | sub all { | ||
| 371 | |||
| 372 | my ( $self, $all ) = @_; | ||
| 373 | if ( $all ne $empty_string ) { | ||
| 374 | |||
| 375 | $supolar->{_all} = $all; | ||
| 376 | $supolar->{_note} = $supolar->{_note} . ' all=' . $supolar->{_all}; | ||
| 377 | $supolar->{_Step} = $supolar->{_Step} . ' all=' . $supolar->{_all}; | ||
| 378 | |||
| 379 | } else { | ||
| 380 | print("supolar, all, missing all,\n"); | ||
| 381 | } | ||
| 382 | } | ||
| 383 | |||
| 384 | =head2 sub angle_units | ||
| 385 | |||
| 386 | =cut | ||
| 387 | |||
| 388 | sub angle_units { | ||
| 389 | my ($supolar, $angle_units ) = @_; | ||
| 390 | $supolar->{_angle_units} = $angle_units if defined($angle_units); | ||
| 391 | $supolar->{_note} = $supolar->{_note}.' angle='.$supolar->{_angle_units}; | ||
| 392 | $supolar->{_Step} = $supolar->{_Step}.' angle='.$supolar->{_angle_units}; | ||
| 393 | } | ||
| 394 | |||
| 395 | =head2 sub azimuth_principal_axes | ||
| 396 | |||
| 397 | =cut | ||
| 398 | |||
| 399 | sub azimuth_principal_axes { | ||
| 400 | my ($supolar, $azimuth_principal_axes ) = @_; | ||
| 401 | $supolar->{_azimuth_principal_axes} = $azimuth_principal_axes if defined($azimuth_principal_axes); | ||
| 402 | $supolar->{_note} = $supolar->{_note}.' phi='.$supolar->{_azimuth_principal_axes}; | ||
| 403 | $supolar->{_Step} = $supolar->{_Step}.' phi='.$supolar->{_azimuth_principal_axes}; | ||
| 404 | } | ||
| 405 | |||
| 406 | =head2 sub base_file_name_out | ||
| 407 | |||
| 408 | =cut | ||
| 409 | |||
| 410 | sub base_file_name_out { | ||
| 411 | my ($supolar, $base_file_name_out ) = @_; | ||
| 412 | $supolar->{_base_file_name_out} = $base_file_name_out if defined($base_file_name_out); | ||
| 413 | $supolar->{_note} = $supolar->{_note}.' file='.$supolar->{_base_file_name_out}; | ||
| 414 | $supolar->{_Step} = $supolar->{_Step}.' file='.$supolar->{_base_file_name_out}; | ||
| 415 | } | ||
| 416 | |||
| 417 | |||
| 418 | =head2 sub components_polarization | ||
| 419 | |||
| 420 | =cut | ||
| 421 | |||
| 422 | sub components_polarization{ | ||
| 423 | my ($supolar,$components_polarization) = @_; | ||
| 424 | $supolar->{_components_polarization} = $components_polarization if defined($components_polarization); | ||
| 425 | $supolar->{_note} = $supolar->{_note}.' dir='.$supolar->{_components_polarization}; | ||
| 426 | $supolar->{_Step} = $supolar->{_Step}.' dir='.$supolar->{_components_polarization}; | ||
| 427 | |||
| 428 | } | ||
| 429 | |||
| 430 | |||
| 431 | =head2 sub correlation_window_type | ||
| 432 | |||
| 433 | =cut | ||
| 434 | |||
| 435 | sub correlation_window_type { | ||
| 436 | my ($supolar, $correlation_window_type ) = @_; | ||
| 437 | $supolar->{_correlation_window_type} = $correlation_window_type if defined($correlation_window_type); | ||
| 438 | $supolar->{_note} = $supolar->{_note}.' win='.$supolar->{_correlation_window_type}; | ||
| 439 | $supolar->{_Step} = $supolar->{_Step}.' win='.$supolar->{_correlation_window_type}; | ||
| 440 | } | ||
| 441 | |||
| 442 | |||
| 443 | =head2 sub correlation_window_length_s | ||
| 444 | |||
| 445 | =cut | ||
| 446 | sub correlation_window_length_s { | ||
| 447 | my ($supolar, $correlation_window_length_s) = @_; | ||
| 448 | $supolar->{_correlation_window_length_s} = $correlation_window_length_s if defined($correlation_window_length_s); | ||
| 449 | $supolar->{_note} = $supolar->{_note}.' wl='.$supolar->{_correlation_window_length_s}; | ||
| 450 | $supolar->{_Step} = $supolar->{_Step}.' wl='.$supolar->{_correlation_window_length_s}; | ||
| 451 | } | ||
| 452 | |||
| 453 | =head2 sub amp | ||
| 454 | |||
| 455 | |||
| 456 | =cut | ||
| 457 | |||
| 458 | sub amp { | ||
| 459 | |||
| 460 | my ( $self, $amp ) = @_; | ||
| 461 | if ( $amp ne $empty_string ) { | ||
| 462 | |||
| 463 | $supolar->{_amp} = $amp; | ||
| 464 | $supolar->{_note} = $supolar->{_note} . ' amp=' . $supolar->{_amp}; | ||
| 465 | $supolar->{_Step} = $supolar->{_Step} . ' amp=' . $supolar->{_amp}; | ||
| 466 | |||
| 467 | } else { | ||
| 468 | print("supolar, amp, missing amp,\n"); | ||
| 469 | } | ||
| 470 | } | ||
| 471 | |||
| 472 | =head2 sub angle | ||
| 473 | |||
| 474 | |||
| 475 | =cut | ||
| 476 | |||
| 477 | sub angle { | ||
| 478 | |||
| 479 | my ( $self, $angle ) = @_; | ||
| 480 | if ( $angle ne $empty_string ) { | ||
| 481 | |||
| 482 | $supolar->{_angle} = $angle; | ||
| 483 | $supolar->{_note} = $supolar->{_note} . ' angle=' . $supolar->{_angle}; | ||
| 484 | $supolar->{_Step} = $supolar->{_Step} . ' angle=' . $supolar->{_angle}; | ||
| 485 | |||
| 486 | } else { | ||
| 487 | print("supolar, angle, missing angle,\n"); | ||
| 488 | } | ||
| 489 | } | ||
| 490 | sub default_values { | ||
| 491 | my ($supolar, $default_values ) = @_; | ||
| 492 | $supolar->{_default_values} = $default_values if defined($default_values); | ||
| 493 | $supolar->{_Step} = $supolar->{_Step}.' all='.$supolar->{_default_values}; | ||
| 494 | } | ||
| 495 | |||
| 496 | |||
| 497 | =head2 sub dir | ||
| 498 | |||
| 499 | |||
| 500 | =cut | ||
| 501 | |||
| 502 | sub dir { | ||
| 503 | |||
| 504 | my ( $self, $dir ) = @_; | ||
| 505 | if ( $dir ne $empty_string ) { | ||
| 506 | |||
| 507 | $supolar->{_dir} = $dir; | ||
| 508 | $supolar->{_note} = $supolar->{_note} . ' dir=' . $supolar->{_dir}; | ||
| 509 | $supolar->{_Step} = $supolar->{_Step} . ' dir=' . $supolar->{_dir}; | ||
| 510 | |||
| 511 | } else { | ||
| 512 | print("supolar, dir, missing dir,\n"); | ||
| 513 | } | ||
| 514 | } | ||
| 515 | |||
| 516 | =head2 sub dt | ||
| 517 | |||
| 518 | |||
| 519 | =cut | ||
| 520 | |||
| 521 | sub dt { | ||
| 522 | |||
| 523 | my ( $self, $dt ) = @_; | ||
| 524 | if ( $dt ne $empty_string ) { | ||
| 525 | |||
| 526 | $supolar->{_dt} = $dt; | ||
| 527 | $supolar->{_note} = $supolar->{_note} . ' dt=' . $supolar->{_dt}; | ||
| 528 | $supolar->{_Step} = $supolar->{_Step} . ' dt=' . $supolar->{_dt}; | ||
| 529 | |||
| 530 | } else { | ||
| 531 | print("supolar, dt, missing dt,\n"); | ||
| 532 | } | ||
| 533 | } | ||
| 534 | |||
| 535 | =head2 sub ellip | ||
| 536 | |||
| 537 | |||
| 538 | =cut | ||
| 539 | |||
| 540 | sub ellip { | ||
| 541 | |||
| 542 | my ( $self, $ellip ) = @_; | ||
| 543 | if ( $ellip ne $empty_string ) { | ||
| 544 | |||
| 545 | $supolar->{_ellip} = $ellip; | ||
| 546 | $supolar->{_note} = $supolar->{_note} . ' ellip=' . $supolar->{_ellip}; | ||
| 547 | $supolar->{_Step} = $supolar->{_Step} . ' ellip=' . $supolar->{_ellip}; | ||
| 548 | |||
| 549 | } else { | ||
| 550 | print("supolar, ellip, missing ellip,\n"); | ||
| 551 | } | ||
| 552 | } | ||
| 553 | |||
| 554 | =head2 sub f1 | ||
| 555 | |||
| 556 | |||
| 557 | =cut | ||
| 558 | |||
| 559 | sub f1 { | ||
| 560 | |||
| 561 | my ( $self, $f1 ) = @_; | ||
| 562 | if ( $f1 ne $empty_string ) { | ||
| 563 | |||
| 564 | $supolar->{_f1} = $f1; | ||
| 565 | $supolar->{_note} = $supolar->{_note} . ' f1=' . $supolar->{_f1}; | ||
| 566 | $supolar->{_Step} = $supolar->{_Step} . ' f1=' . $supolar->{_f1}; | ||
| 567 | |||
| 568 | } else { | ||
| 569 | print("supolar, f1, missing f1,\n"); | ||
| 570 | } | ||
| 571 | } | ||
| 572 | |||
| 573 | =head2 sub flatness | ||
| 574 | |||
| 575 | =cut | ||
| 576 | |||
| 577 | sub flatness { | ||
| 578 | my ($supolar, $flatness) = @_; | ||
| 579 | $supolar->{_flatness} = $flatness if defined($flatness); | ||
| 580 | $supolar->{_note} = $supolar->{_note}.' f1='.$supolar->{_flatness}; | ||
| 581 | $supolar->{_Step} = $supolar->{_Step}.' f1='.$supolar->{_flatnes}; | ||
| 582 | } | ||
| 583 | |||
| 584 | =head2 sub file | ||
| 585 | |||
| 586 | |||
| 587 | =cut | ||
| 588 | |||
| 589 | sub file { | ||
| 590 | |||
| 591 | my ( $self, $file ) = @_; | ||
| 592 | if ( $file ne $empty_string ) { | ||
| 593 | |||
| 594 | $supolar->{_file} = $file; | ||
| 595 | $supolar->{_note} = $supolar->{_note} . ' file=' . $supolar->{_file}; | ||
| 596 | $supolar->{_Step} = $supolar->{_Step} . ' file=' . $supolar->{_file}; | ||
| 597 | |||
| 598 | } else { | ||
| 599 | print("supolar, file, missing file,\n"); | ||
| 600 | } | ||
| 601 | } | ||
| 602 | sub global_parameter { | ||
| 603 | my ($supolar, $global_parameter) = @_; | ||
| 604 | $supolar->{_global_paramter} = $global_parameter if defined($global_parameter); | ||
| 605 | $supolar->{_note} = $supolar->{_note}.' tau='.$supolar->{_global_parameter}; | ||
| 606 | $supolar->{_Step} = $supolar->{_Step}.' tau='.$supolar->{_global_parameter}; | ||
| 607 | } | ||
| 608 | |||
| 609 | |||
| 610 | sub incidence_angle_principal_axis { | ||
| 611 | my ($supolar, $incidence_angle_principal_axis ) = @_; | ||
| 612 | $supolar->{_incidence_angle_principal_axis} = $incidence_angle_principal_axis if defined($incidence_angle_principal_axis); | ||
| 613 | $supolar->{_note} = $supolar->{_note}.' theta='.$supolar->{_incidence_angle_principal_axis}; | ||
| 614 | $supolar->{_Step} = $supolar->{_Step}.' theta='.$supolar->{_incidence_angle_principal_axis}; | ||
| 615 | } | ||
| 616 | |||
| 617 | sub linearity{ | ||
| 618 | my ($supolar,$linearity) = @_; | ||
| 619 | $supolar->{_linearity} = $linearity if defined($linearity); | ||
| 620 | $supolar->{_note} = $supolar->{_note}.' l1='.$supolar->{_linearity}; | ||
| 621 | $supolar->{_Step} = $supolar->{_Step}.' l1='.$supolar->{_linearity}; | ||
| 622 | |||
| 623 | } | ||
| 624 | |||
| 625 | =head2 sub l1 | ||
| 626 | |||
| 627 | |||
| 628 | =cut | ||
| 629 | |||
| 630 | sub l1 { | ||
| 631 | |||
| 632 | my ( $self, $l1 ) = @_; | ||
| 633 | if ( $l1 ne $empty_string ) { | ||
| 634 | |||
| 635 | $supolar->{_l1} = $l1; | ||
| 636 | $supolar->{_note} = $supolar->{_note} . ' l1=' . $supolar->{_l1}; | ||
| 637 | $supolar->{_Step} = $supolar->{_Step} . ' l1=' . $supolar->{_l1}; | ||
| 638 | |||
| 639 | } else { | ||
| 640 | print("supolar, l1, missing l1,\n"); | ||
| 641 | } | ||
| 642 | } | ||
| 643 | |||
| 644 | |||
| 645 | sub output_amplitude { | ||
| 646 | my ($supolar, $output_amplitude ) = @_; | ||
| 647 | $supolar->{_output_amplitude} = $output_amplitude if defined($output_amplitude); | ||
| 648 | $supolar->{_note} = $supolar->{_note}.' amp='.$supolar->{_output_amplitude}; | ||
| 649 | $supolar->{_Step} = $supolar->{_Step}.' amp='.$supolar->{_output_amplitude}; | ||
| 650 | } | ||
| 651 | |||
| 652 | |||
| 653 | =head2 sub phi | ||
| 654 | |||
| 655 | |||
| 656 | =cut | ||
| 657 | |||
| 658 | sub phi { | ||
| 659 | |||
| 660 | my ( $self, $phi ) = @_; | ||
| 661 | if ( $phi ne $empty_string ) { | ||
| 662 | |||
| 663 | $supolar->{_phi} = $phi; | ||
| 664 | $supolar->{_note} = $supolar->{_note} . ' phi=' . $supolar->{_phi}; | ||
| 665 | $supolar->{_Step} = $supolar->{_Step} . ' phi=' . $supolar->{_phi}; | ||
| 666 | |||
| 667 | } else { | ||
| 668 | print("supolar, phi, missing phi,\n"); | ||
| 669 | } | ||
| 670 | } | ||
| 671 | |||
| 672 | sub planarity{ | ||
| 673 | my ($supolar, $planarity) = @_; | ||
| 674 | $supolar->{_planarity} = $planarity if defined($planarity); | ||
| 675 | $supolar->{_note} = $supolar->{_note}.' pln='.$supolar->{_planarity}; | ||
| 676 | $supolar->{_Step} = $supolar->{_Step}.' pln='.$supolar->{_planarity}; | ||
| 677 | } | ||
| 678 | |||
| 679 | =head2 sub pln | ||
| 680 | |||
| 681 | |||
| 682 | =cut | ||
| 683 | |||
| 684 | sub pln { | ||
| 685 | |||
| 686 | my ( $self, $pln ) = @_; | ||
| 687 | if ( $pln ne $empty_string ) { | ||
| 688 | |||
| 689 | $supolar->{_pln} = $pln; | ||
| 690 | $supolar->{_note} = $supolar->{_note} . ' pln=' . $supolar->{_pln}; | ||
| 691 | $supolar->{_Step} = $supolar->{_Step} . ' pln=' . $supolar->{_pln}; | ||
| 692 | |||
| 693 | } else { | ||
| 694 | print("supolar, pln, missing pln,\n"); | ||
| 695 | } | ||
| 696 | } | ||
| 697 | sub rectilinearity{ | ||
| 698 | my ($supolar,$rectilinearity) = @_; | ||
| 699 | $supolar->{_rectilinearity} = $rectilinearity if defined($rectilinearity); | ||
| 700 | $supolar->{_note} = $supolar->{_note}.' rl='.$supolar->{_rectilinearity}; | ||
| 701 | $supolar->{_Step} = $supolar->{_Step}.' rl='.$supolar->{_rectilinearity}; | ||
| 702 | |||
| 703 | } | ||
| 704 | |||
| 705 | sub rectilinearity_contrast{ | ||
| 706 | my ($supolar,$rectilinearity_contrast) = @_; | ||
| 707 | $supolar->{_rectilinearity_contrast} = $rectilinearity_contrast if defined($rectilinearity_contrast); | ||
| 708 | $supolar->{_note} = $supolar->{_note}.' rlq='.$supolar->{_rectilinearity_contrast}; | ||
| 709 | $supolar->{_Step} = $supolar->{_Step}.' rlq='.$supolar->{_rectilinearity_contrast}; | ||
| 710 | |||
| 711 | } | ||
| 712 | |||
| 713 | =head2 sub rl | ||
| 714 | |||
| 715 | |||
| 716 | =cut | ||
| 717 | |||
| 718 | sub rl { | ||
| 719 | |||
| 720 | my ( $self, $rl ) = @_; | ||
| 721 | if ( $rl ne $empty_string ) { | ||
| 722 | |||
| 723 | $supolar->{_rl} = $rl; | ||
| 724 | $supolar->{_note} = $supolar->{_note} . ' rl=' . $supolar->{_rl}; | ||
| 725 | $supolar->{_Step} = $supolar->{_Step} . ' rl=' . $supolar->{_rl}; | ||
| 726 | |||
| 727 | } else { | ||
| 728 | print("supolar, rl, missing rl,\n"); | ||
| 729 | } | ||
| 730 | } | ||
| 731 | |||
| 732 | =head2 sub rlq | ||
| 733 | |||
| 734 | |||
| 735 | =cut | ||
| 736 | |||
| 737 | sub rlq { | ||
| 738 | |||
| 739 | my ( $self, $rlq ) = @_; | ||
| 740 | if ( $rlq ne $empty_string ) { | ||
| 741 | |||
| 742 | $supolar->{_rlq} = $rlq; | ||
| 743 | $supolar->{_note} = $supolar->{_note} . ' rlq=' . $supolar->{_rlq}; | ||
| 744 | $supolar->{_Step} = $supolar->{_Step} . ' rlq=' . $supolar->{_rlq}; | ||
| 745 | |||
| 746 | } else { | ||
| 747 | print("supolar, rlq, missing rlq,\n"); | ||
| 748 | } | ||
| 749 | } | ||
| 750 | |||
| 751 | =head2 sub tau | ||
| 752 | |||
| 753 | |||
| 754 | =cut | ||
| 755 | |||
| 756 | sub tau { | ||
| 757 | |||
| 758 | my ( $self, $tau ) = @_; | ||
| 759 | if ( $tau ne $empty_string ) { | ||
| 760 | |||
| 761 | $supolar->{_tau} = $tau; | ||
| 762 | $supolar->{_note} = $supolar->{_note} . ' tau=' . $supolar->{_tau}; | ||
| 763 | $supolar->{_Step} = $supolar->{_Step} . ' tau=' . $supolar->{_tau}; | ||
| 764 | |||
| 765 | } else { | ||
| 766 | print("supolar, tau, missing tau,\n"); | ||
| 767 | } | ||
| 768 | } | ||
| 769 | |||
| 770 | =head2 sub theta | ||
| 771 | |||
| 772 | |||
| 773 | =cut | ||
| 774 | |||
| 775 | sub theta { | ||
| 776 | |||
| 777 | my ( $self, $theta ) = @_; | ||
| 778 | if ( $theta ne $empty_string ) { | ||
| 779 | |||
| 780 | $supolar->{_theta} = $theta; | ||
| 781 | $supolar->{_note} = $supolar->{_note} . ' theta=' . $supolar->{_theta}; | ||
| 782 | $supolar->{_Step} = $supolar->{_Step} . ' theta=' . $supolar->{_theta}; | ||
| 783 | |||
| 784 | } else { | ||
| 785 | print("supolar, theta, missing theta,\n"); | ||
| 786 | } | ||
| 787 | } | ||
| 788 | |||
| 789 | =head2 sub verbose | ||
| 790 | |||
| 791 | |||
| 792 | =cut | ||
| 793 | |||
| 794 | sub verbose { | ||
| 795 | |||
| 796 | my ( $self, $verbose ) = @_; | ||
| 797 | if ( $verbose ne $empty_string ) { | ||
| 798 | |||
| 799 | $supolar->{_verbose} = $verbose; | ||
| 800 | $supolar->{_note} = $supolar->{_note} . ' verbose=' . $supolar->{_verbose}; | ||
| 801 | $supolar->{_Step} = $supolar->{_Step} . ' verbose=' . $supolar->{_verbose}; | ||
| 802 | |||
| 803 | } else { | ||
| 804 | print("supolar, verbose, missing verbose,\n"); | ||
| 805 | } | ||
| 806 | } | ||
| 807 | |||
| 808 | sub output_ellipticities{ | ||
| 809 | my ($supolar,$output_ellipticities) = @_; | ||
| 810 | $supolar->{_output_ellipticities} = $output_ellipticities if defined($output_ellipticities); | ||
| 811 | $supolar->{_note} = $supolar->{_note}.' ellip='.$supolar->{_output_ellipticities}; | ||
| 812 | $supolar->{_Step} = $supolar->{_Step}.' ellip='.$supolar->{_output_ellipticities}; | ||
| 813 | |||
| 814 | } | ||
| 815 | |||
| 816 | |||
| 817 | =head2 sub win | ||
| 818 | |||
| 819 | |||
| 820 | =cut | ||
| 821 | |||
| 822 | sub win { | ||
| 823 | |||
| 824 | my ( $self, $win ) = @_; | ||
| 825 | if ( $win ne $empty_string ) { | ||
| 826 | |||
| 827 | $supolar->{_win} = $win; | ||
| 828 | $supolar->{_note} = $supolar->{_note} . ' win=' . $supolar->{_win}; | ||
| 829 | $supolar->{_Step} = $supolar->{_Step} . ' win=' . $supolar->{_win}; | ||
| 830 | |||
| 831 | } else { | ||
| 832 | print("supolar, win, missing win,\n"); | ||
| 833 | } | ||
| 834 | } | ||
| 835 | |||
| 836 | =head2 sub wl | ||
| 837 | |||
| 838 | |||
| 839 | =cut | ||
| 840 | |||
| 841 | sub wl { | ||
| 842 | |||
| 843 | my ( $self, $wl ) = @_; | ||
| 844 | if ( $wl ne $empty_string ) { | ||
| 845 | |||
| 846 | $supolar->{_wl} = $wl; | ||
| 847 | $supolar->{_note} = $supolar->{_note} . ' wl=' . $supolar->{_wl}; | ||
| 848 | $supolar->{_Step} = $supolar->{_Step} . ' wl=' . $supolar->{_wl}; | ||
| 849 | |||
| 850 | } else { | ||
| 851 | print("supolar, wl, missing wl,\n"); | ||
| 852 | } | ||
| 853 | } | ||
| 854 | |||
| 855 | =head2 sub get_max_index | ||
| 856 | |||
| 857 | max index = number of input variables -1 | ||
| 858 | |||
| 859 | =cut | ||
| 860 | |||
| 861 | sub get_max_index { | ||
| 862 | my ($self) = @_; | ||
| 863 | my $max_index = 17; | ||
| 864 | |||
| 865 | return ($max_index); | ||
| 866 | } | ||
| 867 | |||
| 868 | 1; |