mbextractsegy
Section: MB-System 5.0 (1)
Updated: 3 June 2013
Index
NAME
mbextractsegy - extracts subbottom profiler, center beam reflection, or seismic reflection data from swath data supported by MB-System and rewrites it as a SEGY file.VERSION
Version 5.0SYNOPSIS
mbextractsegy [-Byr/mo/da/hr/mn/sc -Eyr/mo/da/hr/mn/sc -Fformat -Ifile -Jxscale/yscale/maxwidth -Lstartline/lineroot -M -Osegyfile -Qroutetimefile -Rroutefile -Ssampleformat -Ttimeshift -Urangethreshold -Zplotmax -V -H]DESCRIPTION
MBextractsegy is a utility for reading a swath sonar data file or files, extracting subbottom profiler, center beam reflection, or seismic reflection data, and outputting that selected data as a SEGY file. Parameters such as sonar depth, seafloor depth, and position are embedded into the SEGY data. The SEGY files are output in a form used by the seismic reflection processing package SIOSEIS. A "sinf" file containing statistics about the content of the SEGY file is created automatically by MBextractsegy; this file is named by adding a ".sinf" suffix to the SEGY filename.At present, the only swath data formats from which subbottom data can be extracted are format 88 (Reson 7k format), format 132 (Edgetech Jstar format), and format 133 (Edgetech Jstar format).
The extracted segy data file(s) can be organized three ways. If the -O option is used to specify a single segy output file, then all of the segy data will be output to that single file. If either the -Q or -R options are used to specify a survey route file that includes the waypoints covered while collecting the data file(s) referenced by -Ifile, then the output segy data will be broken up by the sequential lines defined by the waypoints. The -Q option specifies a route file that includes the time at which each waypoint is reached in the data, and the -R option specifies a route file of the form exported by MBgrdviz. In the waypoint-driven case each output segy file will be named using the line root name specified by -Lstartline/lineroot with a sequential line number starting from startline. If neither the -O or -L options are used, each input swath file will have a corresponding segy output file with the ".segy" suffix added to the original filename.
MBextractsegy also generates a "first cut plot" script that will generate grayscale section plots in Postscript of each segy file using the programs MBsegygrid and mbm_grdplot. The -Z sets the trace value corresponding to the maximum grayscale (black) in the section plots.
AUTHORSHIP
David W. Caress (caress@mbari.org)
Monterey Bay Aquarium Research Institute
Dale N. Chayes (dale@ldeo.columbia.edu)
Lamont-Doherty Earth ObservatoryOPTIONS
In order to extract the subbottom data into segy files, one can use
mbextractsegy on each file in turn, for example:
mbextractsegy -I 20040722_152111.s7k
which yields the following output:
2527 records output to segy file 20040722_154429.s7k.segy
In this command the 7k file format id of 88 is inferred from the
".7k" filename suffix.
One may also input a datalist file referencing all of the 7k files. The
contents of a datalist file (typically named datalist.mb-1) would look like:
20040722_152111.s7k 88
20040722_154429.s7k 88
20040722_160809.s7k 88
where the second column is the data format id (see the mbsystem man page
for a discussion of datalist files). To operate on all the files in
a single command, use:
mbextractsegy -I datalist.mb-1
which yields the following output:
2527 records output to segy file 20040722_154429.s7k.segy
2568 records output to segy file 20040722_160809.s7k.segy
2569 records output to segy file 20040722_163148.s7k.segy
In this command the datalist format id of -1 is inferred from the
".mb-1" filename suffix.
Use of the -V option causes mbextractsegy to output information
about every tenth record written to a segy file. So:
mbextractsegy -I 20040722_152111.s7k -V
which yields the following output:
2527 records output to segy file 20040722_154429.s7k.segy
Outputting subbottom data to segy file 20040722_152111.s7k.segy
file:20040722_152111.s7k record:10 shot:65 2004/204 15:20:42.083 samples:8330 interval:64 usec minmax: 0.000000 17487.244141
file:20040722_152111.s7k record:20 shot:75 2004/204 15:20:47.698 samples:8330 interval:64 usec minmax: 0.000000 16525.875000
......... lines omitted ..........
file:20040722_152111.s7k record:2510 shot:2565 2004/204 15:44:05.893 samples:8330 interval:64 usec minmax: 0.000000 17616.189453
file:20040722_152111.s7k record:2520 shot:2575 2004/204 15:44:11.507 samples:8330 interval:64 usec minmax: 0.000000 31888.093750
2527 records output to segy file 20040722_152111.s7k.segy
MBextractsegy also generates a "sinf" file containing statistics about the data in the segy
file 20040722_152111.s7k.segy. The contents of the sinf file 20040722_152111.s7k.segy.sinf are:
SEGY Data File: 20040722_152111.s7k.segy
File Header Info:
Channels: 1
Auxiliary Channels: 0
Sample Interval (usec): 64
Number of Samples in Trace: 8330
Trace length (sec): 0.533120
Data Format: IEEE 32 bit integer
CDP Fold: 0
Data Totals:
Number of Traces: 2527
Min Max Delta:
Shot number: 56 2582 2527
Shot trace: 1 1 1
RP number: 56 2582 2527
RP trace: 1 1 1
Delay (sec): 0.000000 0.000000 0.000000
Range (m): 0.000000 0.000000 0.000000
Receiver Elevation (m): -224.030000 -2.860000 -221.170000
Source Elevation (m): -224.030000 -2.860000 -221.170000
Source Depth (m): 2.860000 224.030000 -221.170000
Receiver Water Depth (m): 51.510000 487.670000 -436.160000
Source Water Depth (m): 51.510000 487.670000 -436.160000
Navigation Totals:
Start of Data:
Time: 07 22 2004 15:20:37.029000 JD204
Lon: -121.8573 Lat: 36.7755
End of Data:
Time: 07 22 2004 15:44:15.438000 JD204
Lon: -121.8572 Lat: 36.7952
Limits:
Minimum Longitude: -121.8574 Maximum Longitude: -121.8572
Minimum Latitude: 36.7755 Maximum Latitude: 36.7952
Last Updated: 3 June 2013