OCTAVE traplt.m - Display selected time domain signal, frequency domain amplitude and phase
traplt prompts for:
BSEGY file name
(*.seg) (shell terminal input)
Tmax, maximum time to display (GUI entry box, default max
available)
Trace number to select in file (GUI entry box, default max
available)
Time zero for phase reference (mouse click on plot)
Maximum frequency for plots (GUI entry box, default
Nyquist)
Basic Seismic Utilities (BSU) program run in Octave or Matlab. Within an octave session, type traplt and then on prompt, enter the bsegy format file name (example: 1001.seg). Traplt then reads the file and presents a GUI with entry boxes for maximum time and trace number to select from the file. Traplt only works with one trace out of a possible more than one in a file. The GUI shows the maximum values as defaults, and these can be changed. Click OK and then a prompt message alerts the user that the mouse will be required to click on the upcoming plot for a time which serves as a reference point for the phase. The next next GUI entry box is for the maximum frquency to plot. The default is the Nyquist frequency. A good choice might be a bit lower, like 200 Hz for most engineering seismograph sources. The second figure will show the amplitude spectrum and an unwrapped phase spectrum. This is the OCTAVE/MATLAB version of the Fortran program.
Figure 1 time
domain plot of selected signal
Figure 2 frequency domain plot, amplitude and unwrapped
phase (radians)
segyinfo.m
bsegin.m
traplt(1) OCTAVE: segyinfo.m(7) bsegin.m(7)
No known bugs.
Copyright © 2017 by Paul Michaels
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
P. Michaels, PE. <pm@cgiss.boisestate.edu>