LADCPproc.defaults
author A.M. Thurnherr <athurnherr@yahoo.com>
Wed, 13 May 2015 21:30:27 +0000
changeset 35 3d769eee8c4f
parent 29 f72cd642972c
permissions -rw-r--r--
V1.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     1
#======================================================================
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     2
#                    L A D C P P R O C . D E F A U L T S 
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     3
#                    doc: Fri Sep 17 09:44:21 2010
29
f72cd642972c whoosher
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
     4
#                    dlm: Wed May 28 23:23:41 2014
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     5
#                    (c) 2010 A.M. Thurnherr
29
f72cd642972c whoosher
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
     6
#                    uE-Info: 260 0 NIL 0 0 72 0 2 4 NIL ofnI
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     7
#======================================================================
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     8
9
48b2d27aaebf after fixing bad magdec bug
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
     9
# default parameters for [LADCPproc]
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    10
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    11
# NOTES:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    12
#	- defaults are taken:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    13
#		1) from my current UH processing merge control files
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    14
#		2) from the defaults set in Eric's [merge.c]
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    15
#	- the default version in the ANTS bin dir is always loaded
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    16
#	- if there is a version in the current processing directory it is loaded 
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    17
#	  afterwards
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
    18
#	- per-station parameters can be chosed based on $LADCP_file and $CTD_file
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
    19
# 	- for additional notes, see [LADCPproc]
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    20
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    21
# HISTORY:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    22
#	Sep 17, 2010: - created
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    23
#	Dec  9, 2010: - added doc for ASCII CTD file support
2
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
    24
#	Jun 15, 2011: - added Svbin_start, Svbin_end
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
    25
#	Jul  7, 2011: - added BT processing parameters
4
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 3
diff changeset
    26
#	Jul 12, 2011: - added $PPI_editing_enabled
9
48b2d27aaebf after fixing bad magdec bug
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 4
diff changeset
    27
#	Apr 11, 2012: - cosmetics
12
65582c172355 V1.0beta3
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 9
diff changeset
    28
#	May 16, 2012: - BUG: comment var name typo
19
12aaf0962ee6 before EGU 2013
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 12
diff changeset
    29
#	Jan  8, 2013: - added CTD_ASCII_header_lines
20
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    30
#	Apr 22, 2013: - BUG: BT_begin_search_above value of 300m did not make sense
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    31
#	Jun  5, 2013: - added $bad_beam
21
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 20
diff changeset
    32
#	Sep  6, 2013: - BUG: BT_begin_search_above value of 300m was correct; 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 20
diff changeset
    33
#						 the original bug was in the documentation
22
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
    34
#	Sep 19, 2013: - added support for $BT_range_method
27
ec8873454890 1) merge with laptop version; 2) add comments about PPI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 26
diff changeset
    35
#	Feb 22, 2014: - added $LADCP_max_gap
28
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    36
#	Mar 21, 2014: - added $ignore_tilt
20
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    37
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    38
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    39
# Data editing
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    40
#----------------------------------------------------------------------
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    41
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    42
# Sometimes, an ADCP beam degrades to the point where its data contaminate 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    43
# the 4-beam solutions. Set the following variable to the number of the
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    44
# bad beam to discard its data. This variable can also be used for crude
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    45
# wake editing in cases where only a single beam is affected, which can
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    46
# happen in particular with CTD platforms that tend to "weather vane".
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    47
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 19
diff changeset
    48
# $bad_beam = 1;
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    49
26
d778b73f2a43 before beginning to use instrument tilt in distance calculations
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 22
diff changeset
    50
28
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    51
# Calculation of the LADCP time series of depth is re-started
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    52
# after a gap exceeding $LADCP_max_gap seconds. This is useful
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    53
# for dealing with double dips, data from instruments that
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    54
# return occasional velocities while on deck, etc. By default,
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    55
# all gaps are ignored. To turn on this heuristic,
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    56
# reduce the value of the following varible (time in seconds) to the 
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    57
# longest real gap (large tilt, bottom stop, etc.) in the data. 
27
ec8873454890 1) merge with laptop version; 2) add comments about PPI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 26
diff changeset
    58
ec8873454890 1) merge with laptop version; 2) add comments about PPI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 26
diff changeset
    59
$LADCP_max_gap = 9999;
ec8873454890 1) merge with laptop version; 2) add comments about PPI
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 26
diff changeset
    60
28
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    61
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    62
# For DVL data collected on 2014 Webb gliders, the pitch information 
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    63
# is offset by 11 degrees. Setting $ignore_tilt = 1 causes
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    64
# tilt information not be used:
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    65
#	- to set TILT_BIT DELTA_TILT_BIT PPI_BIT
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    66
#	- to calculate the depth of a particular bin
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    67
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    68
undef($ignore_tilt);
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    69
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    70
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    71
# The values in the following variables are added to the corresponding
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    72
# tilt measurements.
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    73
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    74
$pitch_offset = 0;
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    75
$roll_offset = 0;
79bf60e97208 after merge with laptop version
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 27
diff changeset
    76
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    77
#----------------------------------------------------------------------
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    78
# ASCII CTD file support
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    79
#----------------------------------------------------------------------
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    80
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    81
# By default, [LADCPproc] reads a standard seabird .cnv file. Alternatively,
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    82
# the CTD data can be supplied in a plain ASCII file. To do so, the following
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    83
# variables must be defined in the setup file (-s). Each variable defines 
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    84
# the field (column) number of the corresponding data field. Fields are
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    85
# numbered beginning with 1.
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    86
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    87
# $CTD_ASCII_sampfreq		= 1;  ## in Hz
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    88
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    89
# $CTD_ASCII_press_field 	= 1;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    90
# $CTD_ASCII_temp_field 	= 2;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    91
# $CTD_ASCII_salin_field	= 3;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    92
# $CTD_ASCII_lat_field 		= 4;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    93
# $CTD_ASCII_lon_field 		= 5;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    94
19
12aaf0962ee6 before EGU 2013
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 12
diff changeset
    95
# The following variables are optional:
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    96
19
12aaf0962ee6 before EGU 2013
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 12
diff changeset
    97
# $CTD_ASCII_header_lines	= 4;			# if this variable is defined, #-comments are disallowed
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    98
# $CTD_ASCII_badval 		= 999;
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
    99
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
   100
#----------------------------------------------------------------------
26
d778b73f2a43 before beginning to use instrument tilt in distance calculations
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 22
diff changeset
   101
# Time Lagging
d778b73f2a43 before beginning to use instrument tilt in distance calculations
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 22
diff changeset
   102
#----------------------------------------------------------------------
d778b73f2a43 before beginning to use instrument tilt in distance calculations
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 22
diff changeset
   103
d778b73f2a43 before beginning to use instrument tilt in distance calculations
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 22
diff changeset
   104
#----------------------------------------------------------------------
2
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   105
# Backscatter Profile Parameters
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   106
#----------------------------------------------------------------------
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   107
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   108
# The output profile of volume-scattering coefficient is calculated 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   109
# from a subset of the bins only. This is based on the observation,
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   110
# from on a single P403 profile, that the volume-scattering coefficient 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   111
# correction of Deines (IEEE 1999) yield similar results only for
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   112
# bins 3-9. 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   113
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   114
# The seabed-finding routine, on the other hand, uses acoustic 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   115
# backscatter from all bins, as it is possible that the seabed is only
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   116
# seen in the farthest bins. 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   117
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   118
$Svbin_start = 3;
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   119
$Svbin_end	 = 9; 
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   120
16726a31a399 pre IWISE
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 1
diff changeset
   121
#----------------------------------------------------------------------
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   122
# Bottom Track Parameters
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   123
#----------------------------------------------------------------------
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   124
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   125
# First bin to consider when looking for seabed to calculated post-
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   126
# processed BT. NB: For consistency with EF's code, bin 1 is the 
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   127
# first bin.
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   128
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   129
$BT_bin_start = 1;
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   130
21
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 20
diff changeset
   131
# Apparently valid BT data collected at distances greater than 300m 
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 20
diff changeset
   132
# from the seabed are discarded.
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   133
21
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 20
diff changeset
   134
$BT_begin_search_above = 300;
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   135
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   136
# Maximum allowed spread of bin number where max echo is found. Large values
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   137
# imply sloping seabed and/or large instrument tilt. The default value of
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   138
# 3 is probably too tight. The range spread calculation should be modified
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   139
# to take instrument tilt into consideration.
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   140
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   141
$BT_max_bin_spread = 3;
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   142
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   143
# For tricky BT cases, the acoustic backscatter from the seabed can be plotted
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   144
# and the bottom range set manually. This has been found to be very powerful
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   145
# in case of 2011_IWISE yoyo profile 160, where the bottom was around 150m 
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   146
# from the lower turning points and where the method of Deines [1999] clearly
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   147
# does not work.
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   148
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   149
#$BT_min_depth = xxx;
12
65582c172355 V1.0beta3
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 9
diff changeset
   150
#$BT_max_depth = xxx;
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   151
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   152
# Maximum difference between water depth and average distance of echo max.,
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   153
# if $BT_min_depth and $BT_max_depth are not set. The stddev of the detected
22
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   154
# water depth is added to this number.
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   155
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   156
$BT_max_depth_error = 20;
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   157
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   158
# Maximum allowed difference between reference-layer w and BT w. Note 
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   159
# that this must be relaxed in regions of significant near-bottom
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   160
# vertical velocity, e.g. due to cross-slope currents.
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   161
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   162
$BT_max_w_difference = 0.03;
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   163
22
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   164
# When the BT velocity is taken from the wrong bin, the measurement is not
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   165
# taken from the main acoustic beam but, rather, from a side lobe. As a
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   166
# result, the BT measurement is biased, causing biased near-bottom LADCP
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   167
# velocities when the instrument is moving horizontally.
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   168
# Methods:
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   169
#	0: Take BT velocity from bin with max(Sv). Not recommended.
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   170
#	1: Chose either bin at max(Sv) or one of its neighbors, 
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   171
#	   depending which shows the smallest discrepancy between w_BT and w_reflr. 
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   172
#	   Causes underestimation of instrument speed in P403 tow-yos.
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   173
#	2: Visbeck (2002): use median from 3 bins. Requires $BT_range_Visbeck_center
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   174
#	   to define where the 3 bins should be centered wrt. the max(Sv) bin.
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   175
#	   Visbeck suggests +1. Based on P403 tow-yo 030 it looks more like -2.
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   176
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   177
$BT_range_method = 1;		
f6635c0384b7 beginning of DIMES US5 cruise
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 21
diff changeset
   178
3
711dd29cb6dd post 2011_IWISE
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 2
diff changeset
   179
#----------------------------------------------------------------------
1
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
   180
# Shear Processing Parameters
54222c82435f after DIMES UK2
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 0
diff changeset
   181
#----------------------------------------------------------------------
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   182
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   183
##   u_bin0, u_bin1, w_bin0, w_bin1: These set the first and
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   184
##      last bin indices used when integrating horizontal and
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   185
##      vertical velocity, respectively.  The indices start
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   186
##      from 1 and are inclusive.  These parameters do not  
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   187
##      affect the calculation of shear.  They should specify
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   188
##      a good reference layer (for the calculation of the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   189
##      barotropic component) such as bins 1 to 4.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   190
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   191
$wbin_start	= 1;	## These parameters start from 1, not zero
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   192
$wbin_end 	= 5;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   193
$ubin_start	= 1;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   194
$ubin_end	= 5;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   195
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   196
##   sh_bin0, sh_bin1: These are like the above except that  
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   197
##      they affect the shear calculation only.  They can
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   198
##      normally be left at the default range of 1 to 128  
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   199
##      (disabled).
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   200
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   201
$shbin_start	= 1;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   202
$shbin_end		= $LADCP{N_BINS};
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   203
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   204
##   w_ref_bin, w_dif: These control one of the editing  
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   205
##      criteria recommended by Fischer and Visbeck, or rather
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   206
##      a modification of it.  All velocity data are rejected
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   207
##      below the point at which the vertical velocity
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   208
##      estimate is w_dif larger or smaller than the estimate
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   209
##      in w_ref_bin.  I have not found this criterion
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   210
##      helpful.  94/12/22: changed, so that only those points
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   211
##      where w actually deviates from the mean from 0 to w_ref_bin
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   212
##      are flagged.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   213
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   214
$w_ref_bin = 10;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   215
$w_dif	   = 0.05;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   216
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   217
##   wake_hd_dif, wake_ang_min, min_wake_w, n_wake_bins:  These control
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   218
##      editing based upon the direction and inclination of the package wake,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   219
##      calculated from reference layer U,V, and W.  wake_hd_dif
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   220
##      sets how close to the heading of the wake must be to
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   221
##      the heading of any beam for interference (in degrees).
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   222
##      wake_ang_min sets the minimum wake angle from the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   223
##      vertical for interference (in degrees).  min_wake_w sets
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   224
##      the minimum package speed required for wake interference
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   225
##      (although upward speed is measured negative, this parameter
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   226
##      is input as a positive value).  All three criteria
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   227
##      must be satisfied for the wake flag to be set.  n_wake_bins
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   228
##      determines how many bins from the top are removed from a
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   229
##      flagged profile, the default is 1 (top bin only).
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   230
##      Additionally, if the previous ensemble met all
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   231
##      interference criteria, the present ensemble
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   232
##      will be flagged even if the criteria are not met.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   233
##      Default values are wake_hd_dif=0.0, wake_ang_min=90.0,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   234
##      and min_wake_w=0.1, which results in no wake editing.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   235
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   236
$wake_hd_dif  = 0.0;   ## set wake editing defaults so that no wake editing
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   237
$wake_ang_min = 90.0;  ## occurs
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   238
$min_wake_w	  = 0.1;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   239
$n_wake_bins  = 1;     ## wake editing default - top bin only
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   240
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   241
##   e_max is the maximum error velocity.  An error velocity
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   242
##         greater than e_max will flag the other velocity
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   243
##         components.  For the BB with 2-ping ensembles, 0.01
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   244
##         m/s looks about right for this parameter.  It
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   245
##         knocks out the incorrect ambiguity glitches as well
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   246
##         as some smaller but still significant glitches.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   247
##         Note that for the BB, the PG criteria operate on
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   248
##         percent 4-beam solutions, so PG combined with the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   249
##         e_max provides a reliable filter against big
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   250
##         glitches.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   251
##         For the NB with 18-ping ensembles, it is not yet
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   252
##         clear whether there is any benefit in using e_max
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   253
##         at all.  To be effective, the value will have to be
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   254
##         small, something like 0.015 or 0.02.  Note also
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   255
##         that for the NB, the pg array holds pg counting
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   256
##         both 4-beam and 3-beam solutions, so 3-beam
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   257
##         glitches will slip through the e_max net.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   258
##         Default is e_max= 10.0, which effectively disables
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   259
##         it.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   260
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   261
$e_max = 0.1;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   262
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   263
##   min_correlation (BB only) is the minimum correlation, in
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   264
##      counts, for each beam in a given bin.
29
f72cd642972c whoosher
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   265
#	mk_prof() in [RDI_Utils.pl] removes all velocities with
f72cd642972c whoosher
A.M. Thurnherr <athurnherr@yahoo.com>
parents: 28
diff changeset
   266
#	correlations < 70 before this criterion is applied.
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   267
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   268
$min_cor = 70;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   269
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   270
##   Shear editing:  This requires 2 passes through the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   271
##      database, one using the option
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   272
##            binned_shear_time_range:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   273
##      to set the time range for a pass during which the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   274
##      shear statistics will be calculated on a relatively
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   275
##      coarsely grid by binning rather than interpolation,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   276
##      then using the usual option
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   277
##            time_range:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   278
##      for the normal pass in which the results of the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   279
##      previous pass can be used to flag bad velocity values
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   280
##      based on anomalous shears.  The first pass can include
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   281
##      both up and down casts if desired, in which case it
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   282
##      would be followed by a second pass for the up and
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   283
##      downcasts separately.  The binned shear statistics are
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   284
##      saved until they are explicitly recalculated with the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   285
##      "binned_shear_time_range:" option.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   286
##      The shear editing is controlled by these parameters:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   287
##         shear_dev_max= x.x, where x.x is a floating point
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   288
##            number giving a threshold in standard
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   289
##            deviations.  Any shear component deviating from
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   290
##            the binned mean by more than this times the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   291
##            local standard deviation will raise a flag.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   292
##            Suitable values for this parameter are probably
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   293
##            in the range 3-5.  Less than 3 is likely to
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   294
##            start trimming too many valid samples, more than
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   295
##            4 or 5 is likely to do nothing at all.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   296
##         shear_sum_dev_max= x.x gives a threshold used in
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   297
##            detecting isolated bad velocity points.  If the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   298
##            sum of two successive bad shears (based on
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   299
##            shear_dev_max), divided by the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   300
##            standard deviation, is LESS THAN this amount,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   301
##            then the common velocity point is considered to
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   302
##            be an isolated glitch, and it alone is flagged.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   303
##            Otherwise, both velocity samples contributing to
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   304
##            a flagged shear will be flagged.  A reasonable
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   305
##            value for this parameter is probably around 1-2,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   306
##            but I don't yet have enough experience to be
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   307
##            sure.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   308
##         Warning: don't forget to reset the first_x=,
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   309
##         first_y=, and first_z= parameters after pass 1
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   310
##         (with binned_shear_time_range:).  If you don't, and
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   311
##         the depths are not in the database, then the depths
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   312
##         will be completely wrong in pass 2 (with
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   313
##         time_range:).  You may also want to use a different
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   314
##         output file name for pass 1, so that the binned
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   315
##         shear statistics file will not be overwritten
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   316
##         during pass 2.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   317
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   318
$max_shdev     = 3.5;	## to disable, set to nan
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   319
$max_shdev_sum = 1.5;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   320
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   321
##   previous ping bottom bounce interference editing is controlled by:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   322
##   clip_margin 0.0 turns off this editing; otherwise, it is the margin in
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   323
##      meters (on each side) by which the calculated range of the
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   324
##      interference is expanded before clipping.  A reasonable value would
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   325
##      be something like 32 (2 depth bins).
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   326
4
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 3
diff changeset
   327
undef($PPI_editing_enabled);	# set to 1 to enable PPI editing
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents: 3
diff changeset
   328
0
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   329
# NOTES:
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   330
# 	- default value (90m) taken from comment in merge control files
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   331
#	- clipping is disabled if water_depth cannot be determined
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   332
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   333
$clip_margin	= 90;  			## default: no previous ping bottom bounce editing
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   334
$first_clip_bin	= 1; 			## default: apply previous ping clipping to all bins */
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   335
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   336
# tilt editing as in Visbeck's code
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   337
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   338
$max_tilt 		= 22;			# max allowed angle from vertical
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   339
$max_delta_tilt = 4;			# max allowed ping-to-ping tilt difference
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   340
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   341
# On DIMES US2 stations in Drake Passage it was found that the ambiguity velocity had been
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   342
# set too low. It appears, however, that aliased velocities are easy to detect because aliasing
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   343
# causes a large positive velocity to appear as a large negative one, and vice versa.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   344
# The following defines the maximum allowed discrepancy between the vertical velocity from CTD
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   345
# pressure and the LADCP reference-layer w. This parameter should probably be set to something
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   346
# similar as the ambiguity velocity.
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   347
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   348
$w_max_err = 2.5;
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   349
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   350
de00d0f32431 initial version to process P403 yoyo
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
   351
1;