Skip to content

Commit 1a2815a

Browse files
authored
Add files via upload
1 parent 4816333 commit 1a2815a

4 files changed

Lines changed: 414 additions & 0 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#! /bin/bash
2+
#-------------------------------------------------------------------------------
3+
#
4+
# MB-System processing of R/V Merian multibeam data
5+
# - Kongsberg EM712 multibeam echosounders
6+
#
7+
# David W. Caress, Jenny Paduan
8+
# Monterey Bay Aquarium Research Institute
9+
# 5 March 2023
10+
#
11+
# Christian d. S. Ferreira
12+
# MARUM
13+
# 9 January 2025
14+
#
15+
#-------------------------------------------------------------------------------
16+
#
17+
# These notes pertain to Kongsberg multibeam data logged in files with suffixes
18+
# of ".all". These data are supported by MB-System format:
19+
# MBF_EM710RAW 58 => *.all files, current Kongsberg format for EM122, EM302, EM710/EM712, EM2040
20+
#
21+
#-------------------------------------------------------------------------------
22+
# Preprocess Stage: Format 58 files with *.all suffix
23+
#-------------------------------------------------------------------------------
24+
#
25+
# MB-System now recognizes files with the *.all suffix as format 58.
26+
# Preprocessing is required, and there is a format conversion - the raw files
27+
# are translated in format 59. Therefore, there is a need to extract and specify a
28+
# platform model.
29+
#
30+
# Get datalist of the logged swath files using
31+
chmod -x *all
32+
mbm_makedatalist -S.all -Odatalistl.mb-1 -P
33+
#
34+
# create platform file
35+
mbmakeplatform --swath=datalistl.mb-1 --verbose --platform-type-surface-vessel \
36+
--output=Merian_EM712.plf
37+
#
38+
# On R/V Falkor (too) the rsync obtaining the kmall files always resets the timestamp of
39+
# pre-existing kmall files. To avoid remaking the pre-existing ancillary files, reset
40+
# those timestamps using touch before making ancillary files with mbdatalist
41+
touch *.all.*
42+
mbdatalist -I datalistl.mb-1 -O -V
43+
#
44+
# Preprocess the data - merge asynchronous data (position, depth, heading, attitude)
45+
# from navigation post processing
46+
mbpreprocess \
47+
--input=datalistl.mb-1 \
48+
--verbose --platform-file=Merian_EM712.plf \
49+
--ignore-water-column \
50+
--skip-existing
51+
#
52+
# Get datalist of raw *.mb59 files
53+
mbm_makedatalist -S.mb59 -P -V
54+
mbdatalist -Z
55+
56+
#-------------------------------------------------------------------------------
57+
# Processing: tide correction only, no bathymetry editing, backscatter correction
58+
#-------------------------------------------------------------------------------
59+
60+
# Get tide models and set for use by mbprocess
61+
mbotps -I datalist.mb-1 -M -D60.0 -V
62+
63+
# Process the data
64+
mbprocess
65+
66+
#-------------------------------------------------------------------------------
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#! /bin/bash
2+
#-------------------------------------------------------------------------------
3+
#
4+
# MB-System processing of R/V Falkor (too) multibeam data
5+
# - Kongsberg EM124 and EM712 multibeam echosounders
6+
#
7+
# David W. Caress and Jenny Paduan
8+
# Monterey Bay Aquarium Research Institute
9+
# 5 March 2023
10+
#
11+
# Christian d. Santos Ferreira
12+
# MARUM
13+
# 9 January 2025
14+
#
15+
#-------------------------------------------------------------------------------
16+
#
17+
# These notes pertain to Kongsberg multibeam data logged in files with suffixes
18+
# of ".kmall". These data are supported by MB-System format:
19+
# MBF_KEMKMALL 261 => *.kmall files, current Kongsberg format for EM124, EM304, EM712, EM2040
20+
#
21+
#-------------------------------------------------------------------------------
22+
# Preprocess Stage: Format 261 files with *.kmall suffix
23+
#-------------------------------------------------------------------------------
24+
#
25+
# MB-System now recognizes files with the *.kmall suffix as format 261.
26+
# Preprocessing is required, but there is no format conversion - the raw files
27+
# are still in format 261. Also, there is no need to extract or specify a
28+
# platform model.
29+
#
30+
# Get datalist of the logged swath files using
31+
chmod -x *kmall
32+
mbm_makedatalist -S.kmall -Odatalistl.mb-1 -P
33+
#
34+
# On R/V Falkor (too) the rsync obtaining the kmall files always resets the timestamp of
35+
# pre-existing kmall files. To avoid remaking the pre-existing ancillary files, reset
36+
# those timestamps using touch before making ancillary files with mbdatalist
37+
touch *.kmall.*
38+
mbdatalist -I datalistl.mb-1 -O -V
39+
#
40+
# Preprocess the data - merge asynchronous data (position, depth, heading, attitude)
41+
# from navigation post processing
42+
mbpreprocess \
43+
--input=datalistl.mb-1 \
44+
--verbose
45+
#
46+
# Get datalist of raw *.mb261 files
47+
mbm_makedatalist -S.mb261 -P -V
48+
mbdatalist -Z
49+
50+
#-------------------------------------------------------------------------------
51+
# Processing: tide correction only, no bathymetry editing, backscatter correction
52+
#-------------------------------------------------------------------------------
53+
54+
# Get tide models and set for use by mbprocess
55+
mbotps -I datalist.mb-1 -M -D60.0 -V
56+
57+
# Process the data and apply tide correction
58+
mbprocess
59+
60+
#-------------------------------------------------------------------------------
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/bash
2+
#-------------------------------------------------------------------------------
3+
#
4+
# MB-System processing of R/V Falkor (too) multibeam data
5+
# - Kongsberg EM124 and EM712 multibeam echosounders
6+
#
7+
# David W. Caress and Jenny Paduan
8+
# Monterey Bay Aquarium Research Institute
9+
# 5 March 2023
10+
#
11+
# Christian d. Santos Ferreira
12+
# MARUM
13+
# 9 January 2025
14+
#
15+
#-------------------------------------------------------------------------------
16+
#
17+
# 2D bathymetry editor
18+
# mbedit
19+
20+
# 3D bathymetry editor
21+
mbeditviz -I datalist.mb-1
22+
23+
rm *.lck
24+
25+
#
26+
# If mbeditviz did not finish sucessfully (crashed), then say "no" and run the script again
27+
#
28+
echo
29+
echo -n "If the 3D editor crashed say no and please run the script again"
30+
echo
31+
32+
read -p "Do you want to proceed? (yes/no) " yn
33+
34+
case $yn in
35+
yes ) echo ok, we will proceed;;
36+
no ) echo exiting...;
37+
exit;;
38+
* ) echo invalid response;
39+
exit 1;;
40+
esac
41+
42+
# Apply soundings edits also to sidescan data
43+
mbset -PSSRECALCMODE:1
44+
45+
# Process the data
46+
mbprocess -C4
47+
48+
# Create grid for backscatter slope correction
49+
mbgrid -I datalistp.mb-1 \
50+
-A2 -F5 -N -C20/2 \
51+
-O ZTopoInt -V
52+
#mbgrdviz -I ZTopoInt.grd &
53+
54+
# process amplitude and sidescan
55+
mbbackangle -I datalist.mb-1 \
56+
-A1 -A2 -Q -V \
57+
-N87/86.0 -R50 -G2/85/1500.0/85/100 \
58+
-T ZTopoInt.grd
59+
mbset -PAMPCORRFILE:datalist.mb-1_tot.aga
60+
mbset -PSSCORRFILE:datalist.mb-1_tot.sga
61+
mbset -PAMPSSCORRTOPOFILE:ZTopoInt.grd
62+
63+
# Process the data
64+
mbprocess -C4
65+
66+
# Filter the sidescan
67+
mbfilter -Idatalistp.mb-1 -S2/5/3 -V
68+

0 commit comments

Comments
 (0)