|
1 #====================================================================== |
|
2 # D E F A U L T _ O U T P U T . P L |
|
3 # doc: Wed Jun 1 19:21:19 2016 |
|
4 # dlm: Wed Jun 1 19:26:01 2016 |
|
5 # (c) 2016 A.M. Thurnherr |
|
6 # uE-Info: 106 1 NIL 0 0 72 0 2 4 NIL ofnI |
|
7 #====================================================================== |
|
8 |
|
9 # NOTES: |
|
10 # - as this file is executed after ProcessingParams, only undefined |
|
11 # variables are set |
|
12 |
|
13 # HISTORY: |
|
14 # Jun 1, 2016: - created from [default_paths.pl] |
|
15 |
|
16 #---------------------------------------------------------------------- |
|
17 # Processing log (diagnostic messages) output |
|
18 #---------------------------------------------------------------------- |
|
19 |
|
20 $out_log = "$log_dir/$out_basename.log" |
|
21 unless defined($out_log); |
|
22 |
|
23 |
|
24 #---------------------------------------------------------------------- |
|
25 # Vertical-velocity profile output and plots: |
|
26 # |
|
27 # Data: |
|
28 # *.wprof vertical velocity profiles |
|
29 # |
|
30 # Plots: |
|
31 # *_wprof.ps vertical velocity profiles (main output plot) |
|
32 #---------------------------------------------------------------------- |
|
33 |
|
34 unless (@out_profile) { |
|
35 push(@out_profile,"$data_dir/$out_basename.wprof"); |
|
36 push(@out_profile,"plot_wprof($plot_dir/${out_basename}_wprof.ps)") |
|
37 if ($plotting_level > 0); |
|
38 } |
|
39 |
|
40 #-------------------------------------------------------------------------------------------------- |
|
41 # Vertical-velocity sample data output and plots: |
|
42 # |
|
43 # Data (in $data_dir): |
|
44 # *.wsamp w sample data |
|
45 # residuals/<prof>/<ens>.rprof OPTIONAL: per-ensemble residuals |
|
46 # |
|
47 # Plots (in $plot_dir): |
|
48 # *_wsamp.ps 1: vertical velocity time-depth plot |
|
49 # *_residuals.ps 1: residual vertical velocity time-depth plot |
|
50 # *_residual_profs.ps 1: residuals binned in depth |
|
51 # *_backscatter.ps 1: volume scattering coefficient time-depth plot |
|
52 # *_attitude_res.ps 2: residuals binned wrt. pitch/roll |
|
53 # *_residuals12.ps 2: beampair <1,2> residual vertical velocity time-depth plot |
|
54 # *_residuals34.ps 2: beampair <3,4> residual vertical velocity time-depth plot |
|
55 # *_attitude_res.ps 2: residuals binned wrt. package attitude |
|
56 # *_acceleration_res.ps 2: residuals binned wrt. package acceleration derivative |
|
57 # *_correlation.ps 3: correlation time-depth plot |
|
58 #-------------------------------------------------------------------------------------------------- |
|
59 |
|
60 unless (@out_wsamp) { |
|
61 push(@out_wsamp,"$data_dir/$out_basename.wsamp"); |
|
62 #push(@out_wsamp,sprintf('dump_residual_profiles(%s/residuals/%03d)',$data_dir,$PROF)); |
|
63 |
|
64 if ($plotting_level > 0) { |
|
65 push(@out_wsamp,"plot_wsamp($plot_dir/${out_basename}_wsamp.ps)"); |
|
66 push(@out_wsamp,"plot_residuals($plot_dir/${out_basename}_residuals.ps)"); |
|
67 push(@out_wsamp,"plot_residual_profs($plot_dir/${out_basename}_residual_profs.ps)"); |
|
68 push(@out_wsamp,"plot_backscatter($plot_dir/${out_basename}_backscatter.ps)"); |
|
69 if ($plotting_level > 1) { |
|
70 push(@out_wsamp,"plot_residuals12($plot_dir/${out_basename}_residuals12.ps)"); |
|
71 push(@out_wsamp,"plot_residuals34($plot_dir/${out_basename}_residuals34.ps)"); |
|
72 push(@out_wsamp,"plot_attitude_residuals($plot_dir/${out_basename}_attitude_res.ps)"); |
|
73 push(@out_wsamp,"plot_acceleration_residuals($plot_dir/${out_basename}_acceleration_res.ps)"); |
|
74 if ($plotting_level > 2) { |
|
75 push(@out_wsamp,"plot_correlation($plot_dir/${out_basename}_correlation.ps)"); |
|
76 } |
|
77 } |
|
78 } |
|
79 } |
|
80 |
|
81 #---------------------------------------------------------------------- |
|
82 # Time-series output |
|
83 # |
|
84 # *.tis combined CTD/LADCP time-series data, including |
|
85 # package- and LADCP reference layer w |
|
86 #---------------------------------------------------------------------- |
|
87 |
|
88 push(@out_timeseries,"$data_dir/$out_basename.tis") |
|
89 unless (@out_timeseries); |
|
90 |
|
91 #---------------------------------------------------------------------- |
|
92 # Per-bin vertical-velocity residuals (plot only) |
|
93 #---------------------------------------------------------------------- |
|
94 |
|
95 push(@out_BR,"plot_mean_residuals($plot_dir/${out_basename}_bin_residuals.ps)") |
|
96 unless (@out_BR); |
|
97 |
|
98 |
|
99 #---------------------------------------------------------------------- |
|
100 # Time-lagging correlation statistics (plot only) |
|
101 #---------------------------------------------------------------------- |
|
102 |
|
103 unless (@out_TL) { |
|
104 push(@out_TL,"plot_time_lags($plot_dir/${out_basename}_time_lags.ps)") |
|
105 if ($plotting_level > 0); |
|
106 } |
|
107 |
|
108 #---------------------------------------------------------------------- |
|
109 |
|
110 1; # return true |
|
111 |