mbareaclean
Section: MB-System 5.0 (1)
Updated: 29 September 2013
Index
NAME
mbareaclean - Tool to automatically flag bad beams in swath sonar bathymetry data within a specified area.VERSION
Version 5.0SYNOPSIS
mbareaclean -Rwest/east/south/north -Sbinsize [-Dthreshold -Fformat -Iinfile -B -G -H -Mthreshold[/nmin[/nmax]] -N[-]min_beam[/maxbeam] -Ttype -V]DESCRIPTION
mbareaclean identifies and flags artifacts in swath sonar bathymetry data within a specified area of interest. The input data are one swath file or a datalist referencing multiple swath files. The user may specify the work area in longitude and latitude bounds, along with a bin size in meters. If these are not specified, the program will attempt to set useful values. The area is divided into a grid with square cells of the specified bin size. As the data are read, each of the soundings that fall within one of the bins is stored. Once all of data are read, one or more statistical tests are performed on the soundings within each bin, providing there are a sufficient number of soundings.The user may specify one or both of the following actions:
1) Previously unflagged soundings that fail a test are flagged as bad
2) Previously flagged soundings that pass all tests are unflagged (the -G option)..The edit events are output to edit save files which can be applied to the data by the program mbprocess. These are the same edit save files created and/or modified by mbclean and mbedit. If a sounding's flag status is changed, that flagging action is output to the edit save file of the swath file containing that sounding. This program will create edit save files if necessary, or append to those that already exist.
At present only two algorithms for identifying good and bad beams is implemented. The first is a simple median filter controlled by the -Mthreshold/nmin[/nmax] option. Soundings that differ from the median depth by a value greater than threshold times the sonar altitude will be considered "bad". So, if threshold = 0.05, then any sounding that is 5% greater or less than the median depth will be considered bad. The nmin parameter sets the minimum number of soundings required to use the median filter. The nmax parameter sets the maximum number of soundings allowed within a cell. If the number of initially good beams in a cell exceeds nmax, then only the nmax soundings nearest the median value remain unflagged, and the rest are flagged even if they meet the threshold test. The default values are threshold = 0.25, nmin = 10, and nmax = infinite.
The second algorithm is a simple standard deviation filter controlled by the -Dthreshold/nmin option. Soundings that differ from the mean depth by a value greater than threshold times the standard deviation of the bin will be considered "bad". So, if threshold = 2, then any sounding that is more than 2 standard deviations greater or less than the mean depth will be considered bad. The nmin parameter sets the minimum number of soundings required to use the filter, The default values are threshold = 2.0 and nmin = 10.
Two options allow limiting the soundings that may be flagged. -N[-]min_beam/maxbeam limits flagging to only those beams in (or out) of the given range. -Ttype limits flagging to soundings using the specified bottom detection algorithm. Many sounders use amplitude detection algorithms for the central beams and phase detection algorithms for the outer beams, falling back to amplitude detection when phase detection fails. Amplitude detections in the outer beams are second rate soundings and frequently have a higher range of errors than other soundings. Using -N and -T together allows stricter cleaning algorithms to be applied to these lower quality data. For example to flag bad all amplitude detections in the outer thirty beams which are more than one standard deviation from the mean: -N-30 -T1 -D1.
AUTHORSHIP
David W. Caress (caress@mbari.org)
Monterey Bay Aquarium Research Institute
Dale N. Chayes (dale@ldeo.columbia.edu)
Lamont-Doherty Earth Observatory
OPTIONS
Program MBAREACLEAN
Version $Id: mbareaclean.1 2155 2013-10-13 20:55:57Z caress $
MB-system Version 5.0.beta29
Area of interest:
Minimum Longitude: -122.425560 Maximum Longitude: -122.419740
Minimum Latitude: 47.671110 Maximum Latitude: 47.675290
Bin Size: 2.500000
Dimensions: 175 186
Cleaning algorithms:
Median filter: ON
Plane fit: OFF
Output:
Flag unflagged soundings identified as bad: ON
Unflag flagged soundings identified as good: OFF
Processing 001_1730.fbt
Sorting 41580 old edits...
10000 of 41580 old edits sorted...
20000 of 41580 old edits sorted...
30000 of 41580 old edits sorted...
40000 of 41580 old edits sorted...
pings:1169 beams: 20233 good 41686 flagged 56150 null
Processing 003_1733.fbt
pings: 991 beams: 52439 good 159 flagged 47493 null
Processing 005_1736.fbt
pings:1011 beams: 53080 good 588 flagged 48443 null
Processing 007_1739.fbt
pings: 922 beams: 48854 good 212 flagged 44056 null
Processing 009_1741.fbt
pings:1017 beams: 53416 good 586 flagged 48715 null
MBareaclean Processing Totals:
-------------------------
5 total swath data files processed
5110 total pings processed
271253 total soundings processed
-------------------------
0 soundings: 61919 flagged: 0 unflagged: 0 file:001_1730
1 soundings: 52598 flagged: 0 unflagged: 0 file:003_1733
2 soundings: 53668 flagged: 0 unflagged: 0 file:005_1736
3 soundings: 49066 flagged: 0 unflagged: 0 file:007_1739
4 soundings: 54002 flagged: 0 unflagged: 0 file:009_1741
Last Updated: 29 September 2013