lib/App/SeismicUnixGui/big_streams/Synseis.pl untested

filter: Statementstmt 0.0% 0 / 278 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod n/a totaltotal 0.0% 0 / 292 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 =head2 SYNOPSIS
3  
4 FILE/PERL PROGRAM NAME: Synseis.pl
5  
6 AUTHOR: Juan M. Lorenzo (sm), gllore@lsu.edu
7  
8 DATE:10/02/2017 05:33:04 PM
9  
10 DESCRIPTION:
11  
12 Version: 2.0
13  
14 =head2 USE
15  
16  
17 =head3 NOTES for old V 1.0
18 This script creates the synthetic seismogram in an ascii file
19 usage Synseis.sh Site number
20  
21 ***** SETTING SITE WATER DEPTHS******* NOTE 1 ***************************
22 water_depth=1123. # water depth at site 904 delay = 370 ms
23 water_depth=1; #1123. #wqter depth incurrent zrhov model
24  
25  
26 ********SETTING PATHS ******* NOTE 2 ***************************
27
28 zrhov is the only file that Synseis reads on input
29 zrhov contains depth versus density and velosity in three columns
30 values versus depth DO NOT HAVE to be at regular intervals but
31 commonly are.
32  
33 ----
34  
35 # Setting paths
36 path=./
37 zrhov_filename=./zrhov.904 # input filename
38 zrhov_filename=./zrhov # input filename
39 output_source=./source.out
40 reflec_coef_time=./rc_t
41 reflec_coef_depth=./rc_z
42 reg_density_file=./zrho.reg
43 reg_velocity_file=./zv.reg
44 #
45 # *********** OPTIONS ************* NOTE 3 *************************
46 The program has various options, e.g.
47 1) variable sampling rate
48 2) synthetic Ricker source
49 3A) real MCS source ready to roll!
50 3B) sources that need to be resampled at a finer sampling rate
51  
52 For each option several parameters must be turned off and others turned
53 on. At present this program works using an MCS source wavelet with
54 a 2ms sampling interval taken from EW Line 1027 at CDP 1377 1.106-1.166ms
55 (1027.source) found in /projects/projects5/Geol4068/Synseis_class/sources
56 Be careful with the units as SUnix uses microseconds and you may
57 like to think in terms of milliseconds or just seconds!
58  
59 ---------------- uncomment before next line if using resampled source
60 OTHER OPTIONAL SOURCES with DIFFERENT (!!!) sampling intervals
61  
62 1ms SI; first source used, fromCDP 1400, line2, SCS
63 input_source_filename=$path/sources/CDP1400.source
64 time_sampling_interval=0.001 in seconds
65  
66 1ms SI; CDP 1210 1086-1173ms
67 input_source_filename=$path/sources/line2.source
68 time_sampling_interval=0.001 in seconds
69  
70 ******************************************************
71 WE USE THE FOLLOWING SOURCE IN THIS EXAMPLE
72 *******************************************************
73 2ms SI CDP 1377 1.106-1.166ms
74 input_source_filename=./1027.source
75 time_sampling_interval=0.002 in seconds
76  
77 depth_sampling_interval=0.4 in meters
78  
79 Remember that you can't use an MCS source AND a Ricker wavelet
80 and a seismic source wavelet you would like to change within Synseis
81 SIMLUTANEOUSLY. Therefore, if you want to use on eof these options
82 other options MUST be set off. I advise you to not use the following
83 options for the time being without help.
84  
85 If you want to use the following options
86 ----------------- uncomment before next line for source for sampling
87 source_resampling_interval=0.004
88 ## tmin_resampled_source=0.004
89 xstart4resampling_source=0.0
90 -X0$xstart4resampling_source \
91 -S$input_source_filename
92  
93 --------------- uncomment below this line if using Ricker --------
94 Ricker_endtime=0.15 s
95 Ricker_file=$path2/Geol4068/users/$1/modeling/output/ricker.out
96 Ricker_frequency=40. Hz
97 -AF$Ricker_frequency \
98 -AE$Ricker_endtime \
99 -Ao$Ricker_file
100 -----------------------------------------------------------------
101 ************* Running the program *********** NOTE ***************
102 -V allows output of all values during run time : not recommended
103 unless you desire to inspect the gizzards of the beast
104  
105 -X0$xstart4resampling_source \
106 Synseis \
107 -S$input_source_filename \
108 -CZ$reflec_coef_depth \
109 -CT$reflec_coef_time \
110 -I$time_sampling_interval \
111 -IZ$depth_sampling_interval \
112 -LD$reg_density_file \
113 -LV$reg_velocity_file \
114 -Ro$output_source \
115 -Z$zrhov_filename \
116 -W$water_depth
117 -V
118
119 =head2 NOTEs V 2.0
120  
121 =head4 Examples
122  
123  
124 =head3 SEISMIC UNIX NOTES
125  
126  
127 =head2 CHANGES and their DATES
128  
129 upgrade ss plot to use suxwigb
130  
131 =cut
132  
133 use Moose;
134 our $VERSION = '0.0.2';
135  
136 use aliased 'App::SeismicUnixGui::sunix::par::a2b';
137 use aliased 'App::SeismicUnixGui::misc::a2su';
138 use aliased 'App::SeismicUnixGui::sunix::data::data_in';
139 use aliased 'App::SeismicUnixGui::misc::flow';
140 use aliased 'App::SeismicUnixGui::misc::manage_files_by2';
141 use aliased 'App::SeismicUnixGui::misc::message';
142 use aliased 'App::SeismicUnixGui::big_streams::Synseis';
143 use aliased 'App::SeismicUnixGui::configs::big_streams::Synseis_config';
144 use App::SeismicUnixGui::misc::SeismicUnix
145 qw($in $out $on $go $to $suffix_ascii $suffix_bin $off $suffix_su);
146 use aliased 'App::SeismicUnixGui::sunix::plot::xgraph';
147 use aliased 'App::SeismicUnixGui::sunix::header::suaddhead';
148 use aliased 'App::SeismicUnixGui::sunix::plot::suxwigb';
149 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
150  
151 =head2 Instantiate classes
152  
153 Create a new version of the package
154 Personalize it with a new name if you wish
155  
156 =cut
157  
158 my $Project = Project_config->new();
159 my $manage_files_by2 = manage_files_by2->new();
160 my $log = message->new();
161 my $a2b = a2b->new();
162 my $a2su = a2su->new();
163 my $run = flow->new();
164 my $suxwigb = suxwigb->new();
165 my $Synseis = Synseis->new();
166 my $Synseis_config = Synseis_config->new();
167 my $xgraph = xgraph->new();
168 my $data_in = data_in->new();
169  
170  
171 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
172 my $DATA_SEISMIC_SEGD = $Project->DATA_SEISMIC_SEGD();
173 my $DATA_SEISMIC_SEGY = $Project->DATA_SEISMIC_SEGY();
174 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
175 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
176 my ($PL_SEISMIC) = $Project->PL_SEISMIC();
177 my ($DATA_SEISMIC_WELL_SYNSEIS) = $Project->DATA_SEISMIC_WELL_SYNSEIS();
178 my ($DATA_RESISTIVITY_WELL_TXT) =
179 $Project->DATA_RESISTIVITY_WELL_TXT();
180  
181 =head2 Declare
182  
183 local variables
184  
185 =cut
186  
187 my ( @Synseis, @SynseisNote, @flow );
188 my ( @items, @plot, @a2b, @xgraph );
189 my ( @a2b_outbound, @a2b_inbound );
190 my @xgraph_inbound;
191 my $xgraph_file_name;
192 my ( @geometry, @a2b_file_name );
193 my ( $wbox, $hbox, $xbox, $ybox );
194 my (@data_in);
195 my (@suxwigb);
196  
197 =head2 default values for
198 geomtery of boxes
199
200 =cut
201  
202 $wbox = 230;
203 $hbox = 600;
204 $ybox = 500;
205  
206 my $water_velocity_mps = 1500.;
207 my $s2us = 1000000;
208  
209 =head2 Get configuration information
210 input hash and an array reference
211  
212 =cut
213  
214 my ( $CFG_h, $CFG_aref ) = $Synseis_config->get_values();
215  
216 =head2 set the different parameters
217 includes sugain variables
218  
219 =cut
220  
221 my $base_file_name = $CFG_h->{Synseis}{1}{base_file_name};
222 my $time_sampling_interval_s = $CFG_h->{Synseis}{1}{time_sampling_interval_s};
223  
224 my $depth_sampling_interval_m =
225 $CFG_h->{Synseis}{1}{depth_sampling_interval_m};
226 my $Ricker_endtime = $CFG_h->{Synseis}{1}{Ricker_endtime};
227 my $Ricker_frequency = $CFG_h->{Synseis}{1}{Ricker_frequency};
228 my $plot_density_min = $CFG_h->{Synseis}{1}{plot_density_min};
229 my $plot_density_max = $CFG_h->{Synseis}{1}{plot_density_max};
230 my $plot_depth_min_m = $CFG_h->{Synseis}{1}{plot_depth_min_m};
231 my $plot_depth_max_m = $CFG_h->{Synseis}{1}{plot_depth_max_m};
232 my $plot_time_min_s = $CFG_h->{Synseis}{1}{plot_time_min_s};
233 my $plot_time_max_s = $CFG_h->{Synseis}{1}{plot_time_max_s};
234 my $plot_velocity_min = $CFG_h->{Synseis}{1}{plot_velocity_min};
235 my $plot_velocity_max = $CFG_h->{Synseis}{1}{plot_velocity_max};
236 my $plot_reflection_coefficient_min =
237 $CFG_h->{Synseis}{1}{plot_reflection_coefficient_min};
238 my $plot_reflection_coefficient_max =
239 $CFG_h->{Synseis}{1}{plot_reflection_coefficient_max};
240 my $water_depth_m = $CFG_h->{Synseis}{1}{water_depth_m};
241 my $plot_ss_amplitude_min = $CFG_h->{Synseis}{1}{plot_ss_amplitude_min};
242 my $plot_ss_amplitude_max = $CFG_h->{Synseis}{1}{plot_ss_amplitude_max};
243  
244 my $output_synthetic_seismogram = $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'ss';
245  
246 # file names and their full paths
247 my $reflection_coef_time = $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'rc_t';
248 my $reflection_coef_depth = $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'rc_z';
249 my $zrho_reg = $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'zrho_reg';
250 my $zv_reg = $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'zv_reg';
251 my $zrhov = $DATA_SEISMIC_WELL_SYNSEIS . '/' . $base_file_name;
252  
253 # default parameters and calculations
254 my $water_depth_s = $water_depth_m / $water_velocity_mps/ 2;
255  
256  
257 =head2 Set a2b
258  
259 =cut
260  
261 $a2b_file_name[1] = $zrho_reg;
262 $a2b_outbound[1] = $a2b_file_name[1] . $suffix_bin;
263 $a2b_inbound[1] = $a2b_file_name[1];
264  
265 $a2b->clear();
266 $a2b->floats_per_line( quotemeta(2) );
267 $a2b->outpar(
268 quotemeta( $DATA_SEISMIC_WELL_SYNSEIS . '/' . '.temp_zrho_reg' ) );
269 $a2b[1] = $a2b->Step();
270  
271  
272 =head2 Set up
273  
274 data_in parameter values
275  
276 =cut
277  
278 $data_in->clear();
279 $data_in->base_file_name( quotemeta('ss_amp_only') );
280 $data_in->suffix_type( quotemeta('su') );
281 $data_in[1] = $data_in->Step();
282  
283  
284 =head2 Set a2b
285  
286 =cut
287  
288 $a2b_file_name[2] = $zv_reg;
289 $a2b_outbound[2] = $a2b_file_name[2] . $suffix_bin;
290 $a2b_inbound[2] = $a2b_file_name[2];
291  
292 $a2b->clear();
293 $a2b->floats_per_line( quotemeta(2) );
294 $a2b->outpar(
295 quotemeta( $DATA_SEISMIC_WELL_SYNSEIS . '/' . '.temp_zv_reg' ) );
296 $a2b[2] = $a2b->Step();
297  
298  
299 =head2 Set a2b
300  
301 =cut
302  
303 $a2b_file_name[3] = $reflection_coef_depth;
304 $a2b_outbound[3] = $a2b_file_name[3] . $suffix_bin;
305 $a2b_inbound[3] = $a2b_file_name[3];
306  
307 $a2b->clear();
308 $a2b->floats_per_line( quotemeta(2) );
309 $a2b->outpar(
310 quotemeta(
311 $DATA_SEISMIC_WELL_SYNSEIS . '/' . '.temp_reflection_coef_depth'
312 )
313 );
314 $a2b[3] = $a2b->Step();
315  
316  
317 =head2 Set a2b
318  
319 =cut
320  
321 $a2b_file_name[4] = $reflection_coef_time;
322 $a2b_outbound[4] = $a2b_file_name[4] . $suffix_bin;
323 $a2b_inbound[4] = $a2b_file_name[4];
324  
325 $a2b->clear();
326 $a2b->floats_per_line( quotemeta(2) );
327 $a2b->outpar(
328 quotemeta(
329 $DATA_SEISMIC_WELL_SYNSEIS . '/' . '.temp_reflection_coef_time'
330 )
331 );
332 $a2b[4] = $a2b->Step();
333  
334  
335 =head2 Set a2b
336  
337 =cut
338  
339 $a2b_file_name[5] = $output_synthetic_seismogram;
340 $a2b_inbound[5] = $a2b_file_name[5];
341 $a2b_outbound[5] = $a2b_file_name[5] . $suffix_bin;
342  
343 $a2b->clear();
344 $a2b->floats_per_line( quotemeta(2) );
345 $a2b->outpar(
346 quotemeta(
347 $DATA_SEISMIC_WELL_SYNSEIS . '/'
348 . '.temp_output_synthetic_seismogram'
349 )
350 );
351 $a2b[5] = $a2b->Step();
352  
353  
354 # =head2 Set sed
355  
356 # =cut
357  
358 # my $sed_num_points;
359  
360  
361 =head2 Set Synseis
362  
363 =cut
364  
365 my $time_sampling_interval_us = $time_sampling_interval_s * $s2us;
366  
367 $Synseis->clear();
368 $Synseis->reflec_coef_depth( quotemeta($reflection_coef_depth) );
369 $Synseis->reflec_coef_time( quotemeta($reflection_coef_time) );
370 $Synseis->time_sampling_interval( quotemeta($time_sampling_interval_s) )
371 ; # seconds
372 $Synseis->depth_sampling_interval( quotemeta($depth_sampling_interval_m) )
373 ; # meters
374 $Synseis->reg_density_file( quotemeta($zrho_reg) );
375 $Synseis->reg_velocity_file( quotemeta($zv_reg) );
376 $Synseis->zrhov_filename($zrhov); # NOTE: no quotemeta
377 #$Synseis -> input_source_filename (quotemeta($DATA_SEISMIC_WELL_SYNSEIS.'/'.'1027.source'));
378 #$Synseis -> output_source(quotemeta($DATA_SEISMIC_WELL_SYNSEIS.'/'.'source.out'));
379 $Synseis->Ricker_endtime( quotemeta($Ricker_endtime) ); # s
380 $Synseis->Ricker_file(
381 quotemeta( $DATA_SEISMIC_WELL_SYNSEIS . '/' . 'ricker.out' ) );
382 $Synseis->Ricker_frequency( quotemeta($Ricker_frequency) ); # Hz
383 $Synseis->water_depth( quotemeta($water_depth_m) );
384 # only for debugging, will generate
385 # error in running flow 6
386 # because the errors are output to stdout which is also ss (text)
387 # $Synseis -> verbose(quotemeta($on));
388 $Synseis[1] = $Synseis->Step();
389 $SynseisNote[1] = $Synseis->note();
390  
391 =head2 DEFINE FLOW(S)
392  
393 Reading and plotting data
394 and synthetic seismogram
395 but do not run yet
396
397 =cut
398  
399 # create main (synseis) and its switches
400 my $program_ss = $Synseis[1];
401 @items = ($program_ss, $out, $output_synthetic_seismogram );
402 $flow[1] = $run->modules( \@items );
403 print "$flow[1]\n";
404  
405 # create zrhoreg.bin
406 @items = ( $a2b[1], $in, $a2b_inbound[1], $out, $a2b_outbound[1] );
407 # print "@items\n";
408 $flow[2] = $run->modules( \@items );
409  
410 # create zvreg.bin
411 @items = ( $a2b[2], $in, $a2b_inbound[2], $out, $a2b_outbound[2] );
412 $flow[3] = $run->modules( \@items );
413 # print "zvreg: @items\n";
414  
415 # create reflection_coef_depth.bin
416 @items = ( $a2b[3], $in, $a2b_inbound[3], $out, $a2b_outbound[3] );
417 $flow[4] = $run->modules( \@items );
418 # print "synthetic seismograms: @items\n";
419  
420 # create reflection_coef_time.bin
421 @items = ( $a2b[4], $in, $a2b_inbound[4], $out, $a2b_outbound[4] );
422 $flow[5] = $run->modules( \@items );
423 # print "rc_time: @items\n";
424  
425 # create ss.bin
426 @items = ( $a2b[5], $in, $a2b_inbound[5], $out, $a2b_outbound[5] );
427 $flow[6] = $run->modules( \@items );
428 # print "synthetic seismograms: @items\n";
429 # create a second ss.su with only the amplitude column in preparation
430
431  
432 =head2 RUN FIRST FLOW(S)
433  
434 flow 1 build ss and accompanying files
435 flow 2 builds zrhoreg.bin etc.
436  
437 =cut
438  
439 # run main
440 $run->flow( \$flow[1] );
441 # print "Synseis.pl,flow1: $flow[1]\n";
442  
443 # create zrho_reg.bin
444 $run->flow( \$flow[2] );
445 # print "Synseis.pl,flow2: $flow[2]\n";
446  
447 # create zv_reg.bin
448 $run->flow( \$flow[3] );
449  
450 #create reflection_coef_depth.bin
451 $run->flow( \$flow[4] );
452  
453 # create reflection_coef_time.bin
454 $run->flow( \$flow[5] );
455 # print "Synseis.pl,flow5: $flow[5]\n";
456  
457 # create ss.bin
458 $run->flow( \$flow[6] );
459  
460 =head2 Collect meta-data
461  
462 for plotting from first flow
463  
464 =cut
465  
466 # get meta-data from zrhoreg
467 my $num_points_zrho_reg = $manage_files_by2->count_lines( \$zrho_reg );
468 # print("num_points_zrho_reg $num_points_zrho_reg \n");
469  
470 # get meta-data from zvreg
471 my $num_points_zv_reg = $manage_files_by2->count_lines( \$zv_reg );
472 # print("num_points_zv_reg $num_points_zv_reg \n");
473  
474 # get meta-data from reflection_coef_depth
475 my $num_points_depth = $manage_files_by2->count_lines( \$reflection_coef_depth );
476 # print("num_points_depth $num_points_depth \n");
477  
478 # get meta-data from reflection_coef_time
479 my $num_points_time = $manage_files_by2->count_lines( \$reflection_coef_time );
480 # print("num_points_time $num_points_time \n");
481  
482 # get meta-data from synthetic seismogram
483 my $num_points_synthetic_seismogram =
484 $manage_files_by2->count_lines( \$output_synthetic_seismogram );
485 # print("num_points_synthetic_seismogram $num_points_synthetic_seismogram \n");
486  
487  
488 =head2 GENERATE PLOTTING FLOW.......
489 plot zrho_reg.bin
490 with xgraph
491  
492 =cut
493  
494 $xbox = 0;
495 $geometry[1] = $wbox . 'x' . $hbox . '+' . $xbox . '+' . $ybox;
496  
497 $xgraph->clear();
498 $xgraph->axes_style( quotemeta('seismic') );
499 $xgraph->title( quotemeta('resampled rho in depth, g/cc') );
500 $xgraph->x2beg( quotemeta($plot_density_min) );
501 $xgraph->x2end( quotemeta($plot_density_max) );
502 $xgraph->x1beg( quotemeta($plot_depth_min_m) );
503 $xgraph->x1end( quotemeta($plot_depth_max_m) );
504 $xgraph->line_color( quotemeta(2) );
505 $xgraph->nTic2( quotemeta(2) );
506 #$xgraph->grid2_type( quotemeta('dash') );
507 $xgraph->geometry( ( quotemeta( $geometry[1] ) ) );
508 $xgraph->box_width( quotemeta($wbox) );
509 $xgraph->num_points( quotemeta($num_points_zrho_reg) );
510 $xgraph[1] = $xgraph->Step();
511 $xgraph_file_name = $zrho_reg;
512 $xgraph_inbound[1] = $xgraph_file_name . $suffix_bin;
513  
514 @items = ( $xgraph[1], $in, $xgraph_inbound[1], $go );
515 $flow[7] = $run->modules( \@items );
516 # print "$flow[7]\n";
517  
518 =head2 Set
519  
520 xgraph to plot zvreg.bin
521  
522 =cut
523  
524 $xbox = 230;
525 $geometry[2] = $wbox . 'x' . $hbox . '+' . $xbox . '+' . $ybox;
526  
527 $xgraph->clear();
528 $xgraph->axes_style( quotemeta('seismic') );
529 $xgraph->title( quotemeta('resampled V in depth') );
530 $xgraph->x1beg( quotemeta($plot_depth_min_m) );
531 $xgraph->x1end( quotemeta($plot_depth_max_m) );
532 $xgraph->x2beg( quotemeta($plot_velocity_min) );
533 $xgraph->x2end( quotemeta($plot_velocity_max) );
534 $xgraph->nTic2( quotemeta(2) );
535 #$xgraph->grid2_type( quotemeta('solid') );
536 $xgraph->geometry( quotemeta( $geometry[2] ) );
537 $xgraph->box_width( quotemeta($wbox) );
538 $xgraph->num_points( quotemeta($num_points_zv_reg) );
539 $xgraph[2] = $xgraph->Step();
540 $xgraph_file_name = $zv_reg;
541 $xgraph_inbound[2] = $xgraph_file_name . $suffix_bin;
542  
543 @items = ( $xgraph[2], $in, $xgraph_inbound[2], $go );
544 $flow[8] = $run->modules( \@items );
545  
546 =head2 Set
547  
548 xgraph to plot reflection_coef_depth.bin
549  
550 =cut
551  
552 $xbox = 460;
553 $geometry[3] = $wbox . 'x' . $hbox . '+' . $xbox . '+' . $ybox;
554  
555 $xgraph->clear();
556 $xgraph->axes_style( quotemeta('seismic') );
557 $xgraph->title( quotemeta('refl. coeffic. in depth') );
558 $xgraph->x2beg( quotemeta($plot_reflection_coefficient_min) );
559 $xgraph->x2end( quotemeta($plot_reflection_coefficient_max) );
560 $xgraph->x1beg( quotemeta($plot_depth_min_m) );
561 $xgraph->x1end( quotemeta($plot_depth_max_m) );
562 $xgraph->nTic2( quotemeta(2) );
563 #$xgraph->grid2_type( quotemeta('solid') );
564 #$xgraph->grid1_type( quotemeta('solid') );
565 $xgraph->geometry( quotemeta( $geometry[3] ) );
566 $xgraph->box_width( quotemeta($wbox) );
567 $xgraph->num_points( quotemeta($num_points_depth) );
568 $xgraph[3] = $xgraph->Step();
569 $xgraph_file_name = $reflection_coef_depth;
570 $xgraph_inbound[3] = $xgraph_file_name . $suffix_bin;
571  
572 @items = ( $xgraph[3], $in, $xgraph_inbound[3], $go );
573 $flow[9] = $run->modules( \@items );
574  
575 =head2 Set
576  
577 xgraph to plot reflection_coef_time.bin
578  
579 =cut
580  
581 $xbox = 690;
582 $geometry[4] = $wbox . 'x' . $hbox . '+' . $xbox . '+' . $ybox;
583  
584 $xgraph->clear();
585 $xgraph->axes_style( quotemeta('seismic') );
586 $xgraph->title( quotemeta('Refl. coeff. in time') );
587 $xgraph->x2beg( quotemeta($plot_reflection_coefficient_min) );
588 $xgraph->x2end( quotemeta($plot_reflection_coefficient_max) );
589 $xgraph->x1beg( quotemeta($plot_time_min_s) );
590 $xgraph->x1end( quotemeta($plot_time_max_s) );
591 $xgraph->nTic2( quotemeta(2) );
592 #$xgraph->grid2_type( quotemeta('solid') );
593 $xgraph->geometry( quotemeta( $geometry[4] ) );
594 $xgraph->box_width( quotemeta($wbox) );
595 $xgraph->num_points( quotemeta($num_points_time) );
596 $xgraph[4] = $xgraph->Step();
597 $xgraph_file_name = $reflection_coef_time;
598 $xgraph_inbound[4] = $xgraph_file_name . $suffix_bin;
599  
600 @items = ( $xgraph[4], $in, $xgraph_inbound[4], $go );
601 $flow[10] = $run->modules( \@items );
602  
603 =head2 Set
604  
605 xgraph to plot synthetic seismogram
606  
607 =cut
608  
609 $xbox = 920;
610 $geometry[5] = $wbox . 'x' . $hbox . '+' . $xbox . '+' . $ybox;
611  
612 $xgraph->clear();
613 $xgraph->axes_style( quotemeta('seismic') );
614 $xgraph->title( quotemeta('synthetic seismogram') );
615 $xgraph->x2end( quotemeta($plot_ss_amplitude_max) );
616 $xgraph->x2beg( quotemeta($plot_ss_amplitude_min) );
617 $xgraph->x1beg( quotemeta($plot_time_min_s) );
618 $xgraph->x1end( quotemeta($plot_time_max_s) );
619 $xgraph->nTic2( quotemeta(2) );
620 #$xgraph->grid2_type( quotemeta('solid') );
621 $xgraph->geometry( quotemeta( $geometry[5] ) );
622 $xgraph->box_width( quotemeta($wbox) );
623 $xgraph->num_points( quotemeta($num_points_synthetic_seismogram) );
624 $xgraph[5] = $xgraph->Step();
625 $xgraph_file_name = $output_synthetic_seismogram;
626 $xgraph_inbound[5] = $xgraph_file_name . $suffix_bin;
627  
628 @items = ( $xgraph[5], $in, $xgraph_inbound[5], $go );
629 $flow[11] = $run->modules( \@items );
630  
631  
632 =head2 PLOTTING RUNS
633  
634 =cut
635  
636 # plot zrho_reg.bin
637 $run->flow( \$flow[7] );
638  
639 # plot zv_reg.bin
640 $run->flow( \$flow[8] );
641  
642 # plot rc_depth.bin
643 $run->flow( \$flow[9] );
644  
645 # plot rc_time.bin
646 $run->flow( \$flow[10] );
647  
648 # plot ss.bin
649 $run->flow( \$flow[11] );