author | A.M. Thurnherr <ant@ldeo.columbia.edu> |
Thu, 16 Apr 2015 06:11:39 -0400 | |
changeset 23 | 4a77cee3ab6a |
parent 18 | 8818acdcd587 |
child 24 | 55acbdfa6ba2 |
permissions | -rw-r--r-- |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
1 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
2 |
# D E F A U L T S . P L |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
3 |
# doc: Tue Oct 11 17:11:21 2011 |
23 | 4 |
# dlm: Tue Apr 7 19:27:36 2015 |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
5 |
# (c) 2011 A.M. Thurnherr |
23 | 6 |
# uE-Info: 58 21 NIL 0 0 72 0 2 4 NIL ofnI |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
7 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
8 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
9 |
# HISTORY: |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
10 |
# Oct 11, 2011: - created |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
11 |
# Oct 12, 2011: - added $processing_param_file |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
12 |
# Oct 13, 2011: - added $out_basename, $TL_out, $TL_hist_out |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
13 |
# Oct 14, 2011: - added $w_out, $profile_out |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
14 |
# - renamed _out to out_; out_basename to out_basename |
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
15 |
# Oct 17, 2011: - added {data,plot,log}_subdir |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
16 |
# - added $out_BR |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
17 |
# - adapted to new filter-plot scripts |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
18 |
# - changed -v default to 2 |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
19 |
# Oct 19, 2011: - added SS_max_allowed_range & renamed _min_ |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
20 |
# Oct 20, 2011: - added $out_timeseries default |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
21 |
# - added $per_bin_valid_frac_lim |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
22 |
# Oct 26, 2011: - added $first_guess_timelag |
6 | 23 |
# Oct 27, 2011: - modified ProcessingParam file loading |
24 |
# - added ${pitch,roll,heading}_bias |
|
10
7e76fdef8953
version prior to carrying out separate dc-/uc- time lagging
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
6
diff
changeset
|
25 |
# Oct 11, 2012: - added .TL output to defaults |
11 | 26 |
# Oct 15, 2012: - removed support for TLhist |
13 | 27 |
# Apr 22, 2013: - removed option variable aliases |
28 |
# May 14, 2013: - opt_m => w_max_lim |
|
29 |
# - BUG: default processing params file was still .default |
|
30 |
# May 15, 2013: - changed default profile plot to show 2-beam solutions |
|
31 |
# - BUG: out_TLhist entry was still there |
|
32 |
# May 16, 2013: - -a => -d |
|
33 |
# Jun 5, 2013: - renamed $discard_data_from_beam to $bad_beam |
|
34 |
# Jun 5, 2013: - made ProcessingParams (without .profiles) default file |
|
35 |
# Sep 5, 2013: - also allow ProcessingParams.default |
|
36 |
# - added LWplot_spec to default output |
|
16
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
37 |
# May 20, 2014: - added support for $PPI_editing |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
38 |
# May 21, 2014: - added $PPI_extend_upper_limit |
17
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
39 |
# Oct 15, 2014: - investigated, modified and documented -t default |
18 | 40 |
# Oct 27, 2014: - removed CTD-acceleration-effects and w spectral plots |
41 |
# - removed time-lagging stats output file by default |
|
42 |
# Oct 31, 2014: - re-arranged order of things |
|
43 |
# - .w => .samp output |
|
44 |
# Nov 4, 2014: - BUG: PPI_editing did not work as advertised |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
45 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
46 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
47 |
# Data Input |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
48 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
49 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
50 |
# CTD depth adjustment |
13 | 51 |
# - set with -d (-a up to 2013/05/16) |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
52 |
# - value is added to CTD pressure |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
53 |
# - use when CTD has -ve pressures |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
54 |
|
13 | 55 |
&antsFloatOpt(\$opt_d,0); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
56 |
|
23 | 57 |
|
58 |
# set $opt_4 to 1 to suppress 3-beam LADCP solutions |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
59 |
|
13 | 60 |
#$opt_4 = 1; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
61 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
62 |
|
6 | 63 |
# correct attiude sensors |
64 |
||
65 |
$pitch_bias = $roll_bias = $heading_bias = 0; |
|
66 |
||
67 |
||
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
68 |
# bins to use in w calculations |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
69 |
# - set with -b |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
70 |
# - defaults to 2-last |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
71 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
72 |
$opt_b = '2,*' unless defined($opt_b); |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
73 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
74 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
75 |
# Logging and Output |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
76 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
77 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
78 |
# - there are 4 verbosity levels, selected by -v |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
79 |
# 0: only print errors |
13 | 80 |
# 1: UNIX-like (warnings and info messages that are not produced for every cast) |
81 |
# 2: (default) progress messages and useful information |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
82 |
# >2: debug messges |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
83 |
# - the most useful ones of these are 1 & 2 |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
84 |
|
13 | 85 |
&antsCardOpt(\$opt_v,2); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
86 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
87 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
88 |
# output bin size in meters |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
89 |
|
13 | 90 |
&antsFloatOpt(\$opt_o,10); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
91 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
92 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
93 |
# min w samples required for each vertical-velocity bin |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
94 |
|
13 | 95 |
&antsCardOpt(\$opt_k,20); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
96 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
97 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
98 |
# output base name |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
99 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
100 |
$out_basename = sprintf('%03d',$STN); |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
101 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
102 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
103 |
# output subdirectories |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
104 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
105 |
croak("$RUN: no such directory\n") unless (-d $RUN); |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
106 |
$data_subdir = $plot_subdir = $log_subdir = $RUN; |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
107 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
108 |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
109 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
110 |
# Data Editing |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
111 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
112 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
113 |
# min correlation |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
114 |
|
13 | 115 |
&antsFloatOpt(\$opt_c,70); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
116 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
117 |
|
17
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
118 |
# max tilt (pitch/roll) |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
119 |
# |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
120 |
# The default value was established with IWISE profiles 004, 005, 045 |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
121 |
# and 049, which all show considerabe tilt-related discrepancies between |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
122 |
# the corresponding 2-beam solutions. The first and second pair of |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
123 |
# profiles were collected with 8 and 6m bins, respectively, without |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
124 |
# bin re-mapping. The original default of 15 degrees led to large |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
125 |
# beam-pair differences. Based on diagnostic plots it appears that |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
126 |
# only tilt angles smaller than 9 degrees or so are satisfactory. |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
127 |
# In case of the IWISE data set, such a tight constraint causes |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
128 |
# too many data gaps. The compromise of 12 degrees seems to work |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
129 |
# quite well, based on the p0 vs epsilon correlation across 5 |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
130 |
# data sets. |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
131 |
# |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
132 |
# NB: if this default is changed, the usage message in [LADCP_w] |
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
133 |
# needs to be updated as well. |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
134 |
|
17
fc83e436a800
just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
16
diff
changeset
|
135 |
&antsFloatOpt(\$opt_t,12); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
136 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
137 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
138 |
# max err vel |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
139 |
|
13 | 140 |
&antsFloatOpt(\$opt_e,0.1); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
141 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
142 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
143 |
# truncate farthest valid velocities |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
144 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
145 |
$truncate_farthest_valid_bins = 0; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
146 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
147 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
148 |
# discard velocities from chosen beam (1-4) |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
149 |
|
13 | 150 |
$bad_beam = 0; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
151 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
152 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
153 |
# max LADCP gap length in seconds |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
154 |
|
13 | 155 |
&antsFloatOpt(\$opt_g,60); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
156 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
157 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
158 |
# max allowed vertical velocity in m/s |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
159 |
|
13 | 160 |
$w_max_lim = 1; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
161 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
162 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
163 |
# in each ensemble, vertical velocities differing more than this |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
164 |
# parameter times mean absolute deviation from median, are considered |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
165 |
# outliers and removed |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
166 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
167 |
$per_ens_outliers_mad_limit = 2; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
168 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
169 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
170 |
# data from bins with less valid velocities than the following parameter |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
171 |
# are considered bad and removed |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
172 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
173 |
$per_bin_valid_frac_lim = 0.15; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
174 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
175 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
176 |
# ensembles when instrument is shallower than |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
177 |
# $surface_layer_depth in meters are removed. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
178 |
# possible contamination: ship's hull, thrusters, bubble clouds |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
179 |
# Inspired by 2011_IWISE station 8 |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
180 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
181 |
$surface_layer_depth = 25; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
182 |
|
16
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
183 |
|
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
184 |
# PPI editing as described in [edit_data.pl] |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
185 |
# - enabled by default for WH150 data |
18 | 186 |
# - variable sets an expression, to be evaluated once the data |
187 |
# have been loaded |
|
16
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
188 |
# - 2014 CLIVAR P16 #47 has a slight discontinuity at 4000m; this |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
189 |
# discontinuity is there without PPI filtering but gets slightly |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
190 |
# worse with PPI filtering. Setting $PPI_extend_upper_limit to |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
191 |
# 1.03-1.05 partially removes the discontinuity but the profile |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
192 |
# never gets better than the profile wihtout PPI editing. Note |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
193 |
# the only reason why the upper PPI should be extended is if the |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
194 |
# recorded ping intervals are inaccurate as the upper limit is |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
195 |
# set by the shortest acoustic path between the ADCP and the |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
196 |
# seabed. |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
197 |
|
18 | 198 |
$PPI_editing_required = '($LADCP{BEAM_FREQUENCY} < 300)'; |
16
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
199 |
|
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
200 |
#$PPI_extend_upper_limit = 1.03; # arbitrarily increase calculated max dist from seabed by 3% |
29e867b3e070
whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
13
diff
changeset
|
201 |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
202 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
203 |
# Time Lagging |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
204 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
205 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
206 |
# externally supplied lag |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
207 |
|
13 | 208 |
# $opt_i = 567; |
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
209 |
|
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
210 |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
211 |
# reference layer bins for w for time matching |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
212 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
213 |
($refLr_firstBin,$refLr_lastBin) = (2,6); |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
214 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
215 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
216 |
# number of time lags during each of 2 lagging steps |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
217 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
218 |
$opt_n = '10,100' unless defined($opt_n); |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
219 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
220 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
221 |
# time lag search window widths for each of 2 lagging steps |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
222 |
# - full width in seconds |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
223 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
224 |
$opt_w = '240,20' unless defined($opt_w); |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
225 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
226 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
227 |
# if top 3 lags have spread greater than $TL_max_allowed_three_lag_spread |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
228 |
# (in CTD scans) they must account for at least $TL_required_timelag_top_three_fraction |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
229 |
# or there is an error |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
230 |
# - $TL_max_allowed_three_lag_spread default was initially set to 2 but found to be |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
231 |
# violated quite often during 2011_IWISE |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
232 |
# - large spread may indicate dropped CTD scans |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
233 |
# - the optimum value of $TL_max_allowed_three_lag_spread may be cast-duration dependent |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
234 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
235 |
$TL_max_allowed_three_lag_spread = 3; |
13 | 236 |
&antsFloatOpt(\$opt_3,0.6); |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
237 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
238 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
239 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
240 |
# Seabed Search |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
241 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
242 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
243 |
# # of ensembles around bottom to search |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
244 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
245 |
$SS_search_window_halfwidth = 200; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
246 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
247 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
248 |
# max allowed distance of seabed from mode of distribution |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
249 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
250 |
$SS_max_allowed_depth_range = 10; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
251 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
252 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
253 |
# The following numbers define the valid range of height-above bottom |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
254 |
# for seabed detection. If the the mean BT_RANGE of a given ens |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
255 |
# falls outside this range, the ensemble is ignored during seabed detection. |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
256 |
# Also, bins falling outside this range are not considered during |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
257 |
# construction of accoustic backscatter profiles. |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
258 |
|
5
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
259 |
$SS_min_allowed_range = 20; |
509cc9966b68
======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
260 |
$SS_max_allowed_range = 150; |
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
261 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
262 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
263 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
264 |
# Bottom Tracking |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
265 |
#====================================================================== |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
266 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
267 |
# Don't look for BT-referenced velocities if package is more than $BT_max_range |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
268 |
# above seabed. This parameter is frequency dependent and the current value is |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
269 |
# appropriate (if rather high) for 300kHz Workhorse intruments. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
270 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
271 |
$BT_max_range = 300; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
272 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
273 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
274 |
# The code only tries to bin BT-referenced velocities if a consistent bottom |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
275 |
# is available in all 4 beams. Ensembles where the range of bin numbers where |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
276 |
# the maximum echo is found is greater than $max_BIT_bin_range_diff are rejected. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
277 |
# In addition to flukes this also rejects ensembles collected with large |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
278 |
# instrument tilts. The value of 3 is a first guess that has not been explored. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
279 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
280 |
$BT_max_bin_range_diff = 3; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
281 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
282 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
283 |
# If the difference between measured vertical velocity of the seabed (i.e. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
284 |
# the package vertical velocity referenced by the seabed) and the vertical |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
285 |
# velocity of the CTD (from dp/dt) si greater than $BT_max_w_error the current |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
286 |
# ensemble is ignored and $nBTwFlag is increased. The value of |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
287 |
# 3cm/s is taken from listBT developed on A0304 cruise. |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
288 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
289 |
$BT_max_w_error = 0.03; |
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
290 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
291 |
#====================================================================== |
18 | 292 |
# ProcessingParams file selection |
293 |
#====================================================================== |
|
294 |
||
295 |
if (-r "ProcessingParams.$RUN") { |
|
296 |
$processing_param_file = "ProcessingParams.$RUN"; |
|
297 |
} elsif (-r "ProcessingParams.default") { |
|
298 |
$processing_param_file = "ProcessingParams.default"; |
|
299 |
} elsif (-r "ProcessingParams") { |
|
300 |
$processing_param_file = "ProcessingParams"; |
|
301 |
} else { |
|
302 |
croak("$0: cannot find either <ProcessingParams.$RUN> or <ProcessingParams[.default]>\n"); |
|
303 |
} |
|
304 |
||
305 |
#---------------------------------------------------------------------- |
|
306 |
# Processing log (diagnostic messages) output |
|
307 |
#---------------------------------------------------------------------- |
|
308 |
||
309 |
$out_log = "$log_subdir/$out_basename.log"; |
|
310 |
||
311 |
||
312 |
#---------------------------------------------------------------------- |
|
313 |
# Vertical-velocity profile output and plots: |
|
314 |
# Data: |
|
315 |
# *.prof vertical velocity profiles |
|
316 |
# Standard Plots: |
|
317 |
# *_prof.eps vertical velocity profiles (main output plot) |
|
318 |
# Optional Plots: |
|
319 |
# *_wspec.eps vertical-velocity wavenumber spectra |
|
320 |
#---------------------------------------------------------------------- |
|
321 |
||
322 |
$out_profile = "| LWplot_prof_2beam $plot_subdir/${out_basename}_prof.eps" . |
|
323 |
# "| LWplot_spec $plot_subdir/${out_basename}_spec.eps" . |
|
324 |
"> $data_subdir/$out_basename.prof"; |
|
325 |
||
326 |
||
327 |
#---------------------------------------------------------------------- |
|
328 |
# Vertical-velocity sample data output and plots: |
|
329 |
# Data: |
|
330 |
# *.samp w sample data |
|
331 |
# Standard Plots: |
|
332 |
# *_w.eps vertical velocity time-depth plot |
|
333 |
# *_residuals.eps residual vertical velocity time-depth plot |
|
334 |
# *_Sv.eps volume scattering coefficient time-depth plot |
|
335 |
# Optional Plots: |
|
336 |
# *_corr.eps correlation time-depth plot [REMOVED FROM DEFAULTS 2013/05/16] |
|
337 |
#---------------------------------------------------------------------- |
|
338 |
||
339 |
$out_w = "| LWplot_residuals $plot_subdir/${out_basename}_residuals.eps" . |
|
340 |
"| LWplot_Sv $plot_subdir/${out_basename}_Sv.eps" . |
|
341 |
# "| LWplot_corr $plot_subdir/${out_basename}_corr.eps" . |
|
342 |
"| LWplot_w $plot_subdir/${out_basename}_w.eps" . |
|
343 |
"> $data_subdir/$out_basename.samp"; |
|
344 |
||
345 |
||
346 |
#---------------------------------------------------------------------- |
|
347 |
# Time-series output |
|
348 |
# Data: |
|
349 |
# *.tis combined CTD/LADCP time-series data, including |
|
350 |
# package- and LADCP reference layer w |
|
351 |
# Optional Plots: |
|
352 |
# *_CAE.eps plot of CTD acceleration effects on reference-layer w |
|
353 |
#---------------------------------------------------------------------- |
|
354 |
||
355 |
$out_timeseries = |
|
356 |
# "| LWplot_CAE $plot_subdir/${out_basename}_CAE.eps" . |
|
357 |
"> $data_subdir/$out_basename.tis"; |
|
358 |
||
359 |
#---------------------------------------------------------------------- |
|
360 |
# Per-bin vertical-velocity residuals (plot only) |
|
361 |
#---------------------------------------------------------------------- |
|
362 |
||
363 |
$out_BR = "| LWplot_BR $plot_subdir/${out_basename}_BR.eps"; |
|
364 |
||
365 |
||
366 |
#---------------------------------------------------------------------- |
|
367 |
# Time-lagging correlation statistics (plot only) |
|
368 |
#---------------------------------------------------------------------- |
|
369 |
||
370 |
$out_TL = "| LWplot_TL $plot_subdir/${out_basename}_TL.eps"; |
|
4
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
371 |
|
e681262d0fd7
yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff
changeset
|
372 |
1; # return true |