defaults.pl
author A.M. Thurnherr <athurnherr@yahoo.com>
Sun, 26 Jul 2015 20:04:48 +0000
changeset 29 c1ff35103176
parent 28 b07b23485336
child 30 7fb67e771d85
permissions -rw-r--r--
a few days pre WHOI
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
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
     4
#                    dlm: Sun Jul 26 17:12:51 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
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
     6
#                    uE-Info: 379 12 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
25
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
    45
#   Apr 16, 2015: - turned output specifies into lists (re-design of
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
    46
#                   plotting sub-system)
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
    47
#				  - croak -> error
28
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    48
#				  - added $SS_use_BT, $SS_min_signal, $SS_min_samp
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    49
#	Apr 20, 2015: - reduced value of $SS_min_allowed_range
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    50
#				  - added $Sv_ref_bin
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    51
#	Apr 21: 2015: - BUG: typo in $Sv_ref_bin
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    52
#				  - decreased default verbosity
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    53
#   May 15, 2015: - added $min_valid_vels
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    54
#	May 20, 2015: - STN -> PROF
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    55
#	Jul 23, 2015: - began adaptation to libGMT.pl
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    56
#				  - changed .prof output .wprof
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    57
#				  - -v docu was wrong
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    58
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    59
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    60
# Data Input 
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
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    63
# CTD depth adjustment
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    64
#	- 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
    65
#	- 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
    66
#	- 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
    67
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    68
&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
    69
23
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
    70
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 18
diff changeset
    71
# 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
    72
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
    73
#$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
    74
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    75
6
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    76
# correct attiude sensors
24
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 23
diff changeset
    77
# NB: heading is not used for vertical-velocity processing!
6
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    78
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    79
$pitch_bias = $roll_bias = $heading_bias = 0;
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    80
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 5
diff changeset
    81
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    82
# minimum valid velocities to require in a LADCP file
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    83
# 	throws an error if not enough valid vels in a file
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    84
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    85
$min_valid_vels = 50;
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    86
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    87
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    88
# 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
    89
#	- 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
    90
#	- 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
    91
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    92
$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
    93
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    94
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    95
# 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
    96
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    97
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    98
#	- there are 4 verbosity levels, selected by -v
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
    99
#		0 :	errors
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   100
#		1*:	UNIX-like (warnings and info messages that are not produced for every cast; *DEFAULT)
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   101
#		2 :	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
   102
#		>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
   103
#	- 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
   104
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   105
&antsCardOpt(\$opt_v,1);
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   106
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   107
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   108
# 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
   109
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   110
&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
   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 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
   114
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   115
&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
   116
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   117
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   118
# output base name
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   119
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   120
$out_basename = sprintf('%03d',$PROF);
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   121
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   122
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   123
# output subdirectories
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   124
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   125
error("$RUN: no such directory\n") unless (-d $RUN);
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   126
$data_subdir = $plot_subdir = $log_subdir = $RUN;
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   127
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   128
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   129
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   130
# Data Editing
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   131
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   132
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   133
# min correlation
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   134
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   135
&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
   136
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   137
17
fc83e436a800 just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 16
diff changeset
   138
# 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
   139
# 
fc83e436a800 just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 16
diff changeset
   140
# 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
   141
# 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
   142
# 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
   143
# 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
   144
# 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
   145
# 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
   146
# 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
   147
# 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
   148
# 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
   149
# 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
   150
# data sets.
fc83e436a800 just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 16
diff changeset
   151
#
fc83e436a800 just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 16
diff changeset
   152
# 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
   153
#	  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
   154
17
fc83e436a800 just before removing code to calculated dc/uc average w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 16
diff changeset
   155
&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
   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 err vel
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
&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
   161
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   162
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   163
# 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
   164
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   165
$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
   166
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   167
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   168
# 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
   169
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   170
$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
   171
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   172
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   173
# 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
   174
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   175
&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
   176
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   177
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   178
# 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
   179
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   180
$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
   181
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   182
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   183
# in each ensemble, vertical velocities differing more than this
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   184
# parameter times mean absolute deviation from median, are considered 
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   185
# 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
   186
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   187
$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
   188
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   189
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   190
# data from bins with less valid velocities than the following parameter
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   191
# 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
   192
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   193
$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
   194
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   195
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   196
# 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
   197
# $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
   198
# 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
   199
# 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
   200
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   201
$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
   202
16
29e867b3e070 whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 13
diff changeset
   203
29e867b3e070 whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 13
diff changeset
   204
# 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
   205
#	- enabled by default for WH150 data
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   206
#	- variable sets an expression, to be evaluated once the data 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   207
#	  have been loaded
16
29e867b3e070 whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 13
diff changeset
   208
#	- 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
   209
#	  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
   210
#	  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
   211
#	  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
   212
#	  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
   213
#	  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
   214
#	  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
   215
#	  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
   216
#	  seabed.
29e867b3e070 whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 13
diff changeset
   217
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   218
$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
   219
29e867b3e070 whoosher version at beginning of FZ1
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 13
diff changeset
   220
#$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
   221
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   222
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   223
# Time Lagging
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   224
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   225
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   226
# externally supplied lag initial guess
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   227
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   228
# $opt_i = 567;
5
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   229
509cc9966b68 ======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
   230
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   231
# 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
   232
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   233
($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
   234
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   235
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   236
# 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
   237
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   238
$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
   239
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   240
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   241
# 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
   242
#	- 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
   243
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   244
$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
   245
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
# 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
   248
# (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
   249
# 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
   250
#	- $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
   251
#	  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
   252
# 	- 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
   253
# 	- 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
   254
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   255
$TL_max_allowed_three_lag_spread = 3;
13
2788bf1bf1de after DIMES US5
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 11
diff changeset
   256
&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
   257
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   258
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   259
#======================================================================
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   260
# Acoustic Backscatter and Seabed Search
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
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   263
# After applying the method of Deines (1999), an empirical correction
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   264
# for Sv is applied to the data. The following variable determines which
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   265
# bin is chosen to construct a reference profile for Sv. The bin number
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   266
# is automatically increased if the selected bin does not contain valid
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   267
# data, i.e. the default value of 1 ensures that the closest valid bin
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   268
# is used to construct the reference profile.
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   269
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   270
$Sv_ref_bin = 1; 
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   271
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   272
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   273
# Set to folloing variable to 1 to use ADCP BT data to detect seabed 
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   274
# instead of default code based on Sv (echo amplitude). I do not know
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   275
# which code is better.
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   276
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   277
$SS_use_BT = 0;
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   278
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   279
28
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   280
# The following variable defines the minimum Sv signal in a bin (max - min)
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   281
# required for reliable seabed detection. A limiting value of 40dB is
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   282
# indicated based on GoM#13, where the seabed is only visible in the last 
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   283
# bin (#25). 30dB is chosen as the default to allow for variability. 
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   284
# This value may need to be changed for data not collected with WH300
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   285
# instruments with 8m bins, and perhaps also for different types of
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   286
# seafloor (soft sediments). To do this, set $SS_min_signal to a small value
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   287
# (e.g. 10) and inspect the \@SV_rng values reported in the log files.
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   288
# This parameter is only used when $SS_use_BT == 0.
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   289
28
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   290
$SS_min_signal = 30;
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   291
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   292
28
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   293
# Require at minimum nubmer of valid samples for seabed detection. Each
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   294
# sample is a bin with a clear seabed maximum. With a proper setting
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   295
# of $SS_min_signal, the algorithm is stable even with only a single
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   296
# sample (GoM#13). However, a default of 3 required samples is chosen
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   297
# to make seabed detection less sensitive to $SS_min_signal. 
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   298
# This parameter is only used when $SS_use_BT == 0.
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   299
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   300
$SS_min_samp = 3;
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   301
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   302
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   303
# The following numbers define the valid range of height-above bottom
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   304
# for seabed detection. For data collected with WH300 instruments and
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   305
# 8m bins, the maximum range needs to be greater than 250m (based on 
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   306
# GoM#13).
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   307
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   308
$SS_min_allowed_range = 0;
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   309
$SS_max_allowed_range = 350;
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   310
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   311
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   312
# Number of ensembles around bottom to search. Only used with $SS_use_BT == 1.
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   313
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   314
$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
   315
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   316
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   317
# Maximum allowed distance of seabed from mode of distribution. 
28
b07b23485336 after folding in EGU flight mods (empirical Sv correction)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
   318
# Only used with $SS_use_BT == 1.
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   319
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   320
$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
   321
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   322
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   323
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   324
# Bottom Tracking
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   325
#	- at present, the ADCP BT data are ignored, i.e. "post-processed"
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   326
#	  BT data are used.
4
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   327
#======================================================================
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   328
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   329
# 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
   330
# 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
   331
# 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
   332
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   333
$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
   334
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   335
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   336
# 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
   337
# 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
   338
# 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
   339
# 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
   340
# 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
   341
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   342
$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
   343
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   344
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   345
# 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
   346
# 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
   347
# 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
   348
# 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
   349
# 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
   350
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   351
$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
   352
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   353
#======================================================================
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   354
# ProcessingParams file selection
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   355
#======================================================================
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   356
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   357
if (-r "ProcessingParams.$RUN") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   358
	$processing_param_file = "ProcessingParams.$RUN";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   359
} elsif (-r "ProcessingParams.default") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   360
	$processing_param_file = "ProcessingParams.default";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   361
} elsif (-r "ProcessingParams") {
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   362
	$processing_param_file = "ProcessingParams";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   363
} else {
27
2053d8de8d6b updated plots & seabed code; GoM data process correctly
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 25
diff changeset
   364
	error("$0: cannot find either <ProcessingParams.$RUN> or <ProcessingParams[.default]>\n");
18
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
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   368
# Processing log (diagnostic messages) output
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   369
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   370
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   371
$out_log = "$log_subdir/$out_basename.log";
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   372
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   373
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   374
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   375
# Vertical-velocity profile output and plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   376
# Data:
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   377
#	*.wprof				vertical velocity profiles
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   378
# Standard Plots:
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   379
# 	*_wprof.ps			vertical velocity profiles (main output plot)
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   380
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   381
29
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   382
@out_profile = ("plot_wprof($plot_subdir/${out_basename}_wprof.ps)",
c1ff35103176 a few days pre WHOI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   383
			    "$data_subdir/$out_basename.wprof");
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   384
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   385
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   386
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   387
# Vertical-velocity sample data output and plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   388
# Data:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   389
#	*.samp				w sample data
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   390
# Standard Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   391
#	*_w.eps				vertical velocity time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   392
#	*_residuals.eps		residual vertical velocity time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   393
#	*_Sv.eps			volume scattering coefficient time-depth plot
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   394
# Optional Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   395
#	*_corr.eps			correlation time-depth plot [REMOVED FROM DEFAULTS 2013/05/16]
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   396
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   397
25
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   398
@out_w = ("| LWplot_residuals $plot_subdir/${out_basename}_residuals.eps",
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   399
		  "| LWplot_Sv $plot_subdir/${out_basename}_Sv.eps",
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   400
#		  "| LWplot_corr $plot_subdir/${out_basename}_corr.eps",
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   401
		  "| LWplot_w $plot_subdir/${out_basename}_w.eps",
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   402
		  "$data_subdir/$out_basename.samp");
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   403
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   404
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   405
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   406
# Time-series output
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   407
# Data:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   408
#	*.tis			combined CTD/LADCP time-series data, including 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   409
#					package- and LADCP reference layer w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   410
# Optional Plots:
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   411
#	*_CAE.eps		plot of CTD acceleration effects on reference-layer w
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   412
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   413
25
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   414
@out_timeseries = ( 
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   415
#				   "| LWplot_CAE $plot_subdir/${out_basename}_CAE.eps",
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   416
				   "$data_subdir/$out_basename.tis");
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   417
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   418
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   419
# Per-bin vertical-velocity residuals (plot only)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   420
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   421
25
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   422
@out_BR	= ("| LWplot_BR $plot_subdir/${out_basename}_BR.eps");
18
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   423
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   424
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   425
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   426
# Time-lagging correlation statistics (plot only)
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   427
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 17
diff changeset
   428
25
bd38f8bfb8e6 first step at re-designing plotting system
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 24
diff changeset
   429
@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
   430
e681262d0fd7 yay! first version I am really happy with. With plots 'n all.
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   431
1;	# return true