defaults.pl
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--
.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
     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
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
     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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    23
#	Oct 27, 2011: - modified ProcessingParam file loading
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 10
diff changeset
    26
#	Oct 15, 2012: - removed support for TLhist
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    27
#	Apr 22, 2013: - removed option variable aliases
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    28
#	May 14, 2013: - opt_m => w_max_lim
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    29
#				  - BUG: default processing params file was still .default
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    30
#	May 15, 2013: - changed default profile plot to show 2-beam solutions
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    31
#				  - BUG: out_TLhist entry was still there
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    32
#	May 16, 2013: - -a => -d
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    33
#	Jun  5, 2013: - renamed $discard_data_from_beam to $bad_beam
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    34
#	Jun  5, 2013: - made ProcessingParams (without .profiles) default file
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    35
#	Sep  5, 2013: - also allow ProcessingParams.default
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
    40
#	Oct 27, 2014: - removed CTD-acceleration-effects and w spectral plots
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
    41
#				  - removed time-lagging stats output file by default
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
    42
#	Oct 31, 2014: - re-arranged order of things
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
    43
#				  - .w => .samp output
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
    57
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    63
# correct attiude sensors
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    64
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    65
$pitch_bias = $roll_bias = $heading_bias = 0;
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    66
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    80
#		1:	UNIX-like (warnings and info messages that are not produced for every cast)
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   186
#	- variable sets an expression, to be evaluated once the data 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   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
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   292
# ProcessingParams file selection
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   293
#======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   294
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   295
if (-r "ProcessingParams.$RUN") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   296
	$processing_param_file = "ProcessingParams.$RUN";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   297
} elsif (-r "ProcessingParams.default") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   298
	$processing_param_file = "ProcessingParams.default";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   299
} elsif (-r "ProcessingParams") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   300
	$processing_param_file = "ProcessingParams";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   301
} else {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   302
	croak("$0: cannot find either <ProcessingParams.$RUN> or <ProcessingParams[.default]>\n");
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   303
}
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   304
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   305
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   306
# Processing log (diagnostic messages) output
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   307
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   308
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   309
$out_log = "$log_subdir/$out_basename.log";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   310
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   311
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   312
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   313
# Vertical-velocity profile output and plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   314
# Data:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   315
#	*.prof				vertical velocity profiles
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   316
# Standard Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   317
# 	*_prof.eps			vertical velocity profiles (main output plot)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   318
# Optional Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   319
#	*_wspec.eps			vertical-velocity wavenumber spectra
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   320
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   321
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   322
$out_profile = "| LWplot_prof_2beam $plot_subdir/${out_basename}_prof.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   323
#			   "| LWplot_spec $plot_subdir/${out_basename}_spec.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   324
			   "> $data_subdir/$out_basename.prof";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   325
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   326
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   327
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   328
# Vertical-velocity sample data output and plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   329
# Data:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   330
#	*.samp				w sample data
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   331
# Standard Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   332
#	*_w.eps				vertical velocity time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   333
#	*_residuals.eps		residual vertical velocity time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   334
#	*_Sv.eps			volume scattering coefficient time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   335
# Optional Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   336
#	*_corr.eps			correlation time-depth plot [REMOVED FROM DEFAULTS 2013/05/16]
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   337
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   338
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   339
$out_w = "| LWplot_residuals $plot_subdir/${out_basename}_residuals.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   340
		 "| LWplot_Sv $plot_subdir/${out_basename}_Sv.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   341
#		 "| LWplot_corr $plot_subdir/${out_basename}_corr.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   342
		 "| LWplot_w $plot_subdir/${out_basename}_w.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   343
		 "> $data_subdir/$out_basename.samp";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   344
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   345
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   346
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   347
# Time-series output
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   348
# Data:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   349
#	*.tis			combined CTD/LADCP time-series data, including 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   350
#					package- and LADCP reference layer w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   351
# Optional Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   352
#	*_CAE.eps		plot of CTD acceleration effects on reference-layer w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   353
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   354
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   355
$out_timeseries = 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   356
#				  "| LWplot_CAE $plot_subdir/${out_basename}_CAE.eps" .
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   357
				  "> $data_subdir/$out_basename.tis";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   358
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   359
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   360
# Per-bin vertical-velocity residuals (plot only)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   361
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   362
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   363
$out_BR		= "| LWplot_BR $plot_subdir/${out_basename}_BR.eps";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   364
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   365
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   366
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   367
# Time-lagging correlation statistics (plot only)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   368
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   369
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   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