1 #====================================================================== |
1 #====================================================================== |
2 # D E F A U L T S . P L |
2 # D E F A U L T S . P L |
3 # doc: Tue Oct 11 17:11:21 2011 |
3 # doc: Tue Oct 11 17:11:21 2011 |
4 # dlm: Tue Mar 29 07:23:24 2016 |
4 # dlm: Mon Jun 6 22:07:19 2016 |
5 # (c) 2011 A.M. Thurnherr |
5 # (c) 2011 A.M. Thurnherr |
6 # uE-Info: 74 39 NIL 0 0 72 0 2 4 NIL ofnI |
6 # uE-Info: 179 18 NIL 0 0 72 0 2 4 NIL ofnI |
7 #====================================================================== |
7 #====================================================================== |
8 |
8 |
9 # HISTORY: |
9 # HISTORY: |
10 # Oct 11, 2011: - created |
10 # Oct 11, 2011: - created |
11 # Oct 12, 2011: - added $processing_param_file |
11 # Oct 12, 2011: - added $processing_param_file |
70 # Mar 16, 2016: - added auto creation of output directory |
70 # Mar 16, 2016: - added auto creation of output directory |
71 # Mar 18, 2016: - added comments about -l |
71 # Mar 18, 2016: - added comments about -l |
72 # Mar 19, 2016: - improved docu |
72 # Mar 19, 2016: - improved docu |
73 # Mar 29, 2016: - moved out dir creation to [LADCP_w_ocean] |
73 # Mar 29, 2016: - moved out dir creation to [LADCP_w_ocean] |
74 # - added opt_r support |
74 # - added opt_r support |
|
75 # May 26, 2016: - added RDI_Coords::binMapping |
|
76 # May 28, 2016: - added delta-residual filter (-r) |
|
77 # Jun 1, 2016: - added $plotting_level |
|
78 # Jun 2, 2016: - added $tilt_correction_* |
75 |
79 |
76 #====================================================================== |
80 #====================================================================== |
77 # Output Log Files |
81 # Output Log Files |
78 # - there are 4 verbosity levels, selected by -v |
82 # - there are 4 verbosity levels, selected by -v |
79 # 0 : errors |
83 # 0 : errors |
85 #====================================================================== |
89 #====================================================================== |
86 |
90 |
87 &antsCardOpt(\$opt_v,$ENV{VERB}); |
91 &antsCardOpt(\$opt_v,$ENV{VERB}); |
88 $opt_v = 1 unless numberp($opt_v); |
92 $opt_v = 1 unless numberp($opt_v); |
89 |
93 |
90 |
94 #====================================================================== |
91 #====================================================================== |
95 # Output Plots |
92 # Data Input |
96 # - there are 3 plotting levels |
|
97 # 0 : suppress all plots |
|
98 # 1* : produce default plots; *DEFAULT |
|
99 # 2 : produce default and diagnostic plots |
|
100 # >2: produce all plots, including useless ones |
|
101 #====================================================================== |
|
102 |
|
103 $plotting_level = 1; |
|
104 |
|
105 |
|
106 #====================================================================== |
|
107 # Input Data |
93 #====================================================================== |
108 #====================================================================== |
94 |
109 |
95 # Set $opt_4 to 1 (or use the -4 option) to suppress 3-beam LADCP |
110 # Set $opt_4 to 1 (or use the -4 option) to suppress 3-beam LADCP |
96 # solutions |
111 # solutions. This only has an effect for beam-coordinate data. |
97 |
112 |
98 #$opt_4 = 1; |
113 #$opt_4 = 1; |
|
114 |
|
115 |
|
116 # Set $RDI_Coords::binMapping to 'none' or use -d to disable |
|
117 # linear bin interpolation (which is better than bin mapping). |
|
118 # This only has an effect for beam-coordinate data. |
|
119 |
|
120 $RDI_Coords::binMapping = $opt_d ? 'none' : 'linterp'; |
99 |
121 |
100 |
122 |
101 # The following variables allow bias-correcting the attiude |
123 # The following variables allow bias-correcting the attiude |
102 # sensors. |
124 # sensors. |
103 # NB: heading is not used for vertical-velocity processing! |
125 # NB: heading is not used for vertical-velocity processing! |
123 |
145 |
124 #====================================================================== |
146 #====================================================================== |
125 # Data Editing |
147 # Data Editing |
126 #====================================================================== |
148 #====================================================================== |
127 |
149 |
128 # The following sets the max allowable rms residual w per ensemble; |
150 # The following sets the max allowable rms residual w per ensemble, as |
129 # data from ensembles with larger rms residuals are discarded. |
151 # well as the max allowable difference between the two beam-pair |
130 |
152 # residuals. Measurements that fail either of these tests are are |
131 &antsFloatOpt(\$opt_r,0.04); |
153 # discarded. The limiting values were chosed by inspection of |
|
154 # log files and diagnostic plots of a few example profiles. In case of |
|
155 # the delta-residual limit, histograms of this parameter show a very |
|
156 # steep cutoff at 0.05 cm/s for both IWISE and 2016_I08S data. |
|
157 |
|
158 &antsFloatOpt(\$opt_r,'0.06,0.06'); |
132 |
159 |
133 |
160 |
134 # By default, ensembles with uncertain time-lagging are discarded. |
161 # By default, ensembles with uncertain time-lagging are discarded. |
135 # This allows profiles with dropped CTD scans to be processed without |
162 # This allows profiles with dropped CTD scans to be processed without |
136 # manual intervention. For profiles collected in very calm conditions |
163 # manual intervention. For profiles collected in very calm conditions |
145 # correlations below this limit are discarded. |
172 # correlations below this limit are discarded. |
146 |
173 |
147 &antsFloatOpt(\$opt_c,70); |
174 &antsFloatOpt(\$opt_c,70); |
148 |
175 |
149 |
176 |
150 # The following sets the default limit for instrument attitude |
177 # Instrument Tilt |
151 # (pitch/roll). |
|
152 # |
|
153 # The default value was established with IWISE profiles 004, 005, 045 |
|
154 # and 049, which all show considerabe tilt-related discrepancies between |
|
155 # the corresponding 2-beam solutions. The first and second pair of |
|
156 # profiles were collected with 8 and 6m bins, respectively, without |
|
157 # bin re-mapping. The original default of 15 degrees led to large |
|
158 # beam-pair differences. Based on diagnostic plots it appears that |
|
159 # only tilt angles smaller than 9 degrees or so are satisfactory. |
|
160 # In case of the IWISE data set, such a tight constraint causes |
|
161 # too many data gaps. The compromise of 12 degrees seems to work |
|
162 # quite well, based on the p0 vs epsilon correlation across 5 |
|
163 # data sets. |
|
164 # |
178 # |
165 # NB: if this default is changed, the usage message in [LADCP_w] |
179 # It is not fully clear what tilt angles are acceptable for |
166 # needs to be updated as well. |
180 # obtaining good vertical velocities. Up to 2016 (V1.3) the |
167 |
181 # default limit was 12 degrees based on an analysis of |
168 &antsFloatOpt(\$opt_t,12); |
182 # the 2010 IWISE data with inaccurate 2-beam transformations. |
|
183 # As re-processing with a limit of 20 degrees improves the |
|
184 # agreement between DL and UL data (R = 0.77/0.67 => 0.79/0.74) |
|
185 # the limit was changed to 22 degrees, the same used |
|
186 # in Martin Visbeck's inversion code. |
|
187 |
|
188 &antsFloatOpt(\$opt_t,22); |
169 |
189 |
170 |
190 |
171 # The following sets the default error velocity limit; measurements |
191 # The following sets the default error velocity limit; measurements |
172 # with error velocities below this limit are discarded. |
192 # with error velocities below this limit are discarded. |
173 |
193 |
222 $surface_layer_depth = 25; |
242 $surface_layer_depth = 25; |
223 |
243 |
224 |
244 |
225 # Previous Ping Interference editing as described in [edit_data.pl] |
245 # Previous Ping Interference editing as described in [edit_data.pl] |
226 # - enabled by default for WH150 data |
246 # - enabled by default for WH150 data |
227 # - the variable defines a string with a perl expression, which is |
247 # - PPI_seabed_editing_required defines a string with a perl expression |
228 # evaluated once the data are loaded |
248 # that is evaluated once the data are loaded; if true, seabed PPI |
|
249 # editing is enabled |
|
250 # - to enable PPI editing without condition, set $PPI_editing = 1; |
229 # - 2014 CLIVAR P16 #47 has a slight discontinuity at 4000m; this |
251 # - 2014 CLIVAR P16 #47 has a slight discontinuity at 4000m; this |
230 # discontinuity is there without PPI filtering but gets slightly |
252 # discontinuity is there without PPI filtering but gets slightly |
231 # worse with PPI filtering. Setting $PPI_extend_upper_limit to |
253 # worse with PPI filtering. Setting $PPI_extend_upper_limit to |
232 # 1.03-1.05 partially removes the discontinuity but the profile |
254 # 1.03-1.05 partially removes the discontinuity but the profile |
233 # never gets better than the profile wihtout PPI editing. Note |
255 # never gets better than the profile wihtout PPI editing. Note |
234 # the only reason why the upper PPI should be extended is if the |
256 # the only reason why the upper PPI should be extended is if the |
235 # recorded ping intervals are inaccurate as the upper limit is |
257 # recorded ping intervals are inaccurate as the upper limit is |
236 # set by the shortest acoustic path between the ADCP and the |
258 # set by the shortest acoustic path between the ADCP and the |
237 # seabed. |
259 # seabed. |
238 |
260 |
239 $PPI_editing_required = '($LADCP{BEAM_FREQUENCY} < 300)'; |
261 $PPI_seabed_editing_required = '($LADCP{BEAM_FREQUENCY} < 300)'; |
240 |
262 |
|
263 #$PPI_editing = 1; # uncomment to enable PPI always |
241 #$PPI_extend_upper_limit = 1.03; # see comments above |
264 #$PPI_extend_upper_limit = 1.03; # see comments above |
242 |
265 |
243 |
266 |
244 # The following variables control the "non-obvious" sidelobe editing for |
267 # The following variables control the "non-obvious" sidelobe editing for |
245 # contamination from the seabed for the UL and from the sea surface for the |
268 # contamination from the seabed for the UL and from the sea surface for the |
309 # After applying the method of Deines (1999), an empirical correction |
332 # After applying the method of Deines (1999), an empirical correction |
310 # for Sv is applied to the data. The following variable determines which |
333 # for Sv is applied to the data. The following variable determines which |
311 # bin is chosen to construct a reference profile for Sv. The bin number |
334 # bin is chosen to construct a reference profile for Sv. The bin number |
312 # is automatically increased if the selected bin does not contain valid |
335 # is automatically increased if the selected bin does not contain valid |
313 # data, i.e. the default value of 1 ensures that the closest valid bin |
336 # data, i.e. the default value of 1 ensures that the closest valid bin |
314 # is used to construct the reference profile. |
337 # is used to construct the reference profile. The empirical correction |
|
338 # causes artifacts every 100m. To disable the empirical |
|
339 # correction, undefine the following variable. |
315 |
340 |
316 $Sv_ref_bin = 1; |
341 $Sv_ref_bin = 1; |
317 |
342 |
318 |
343 |
319 # Set to folloing variable to 1 to use ADCP BT data to detect seabed |
344 # Set to folloing variable to 1 to use ADCP BT data to detect seabed |