dbpick, .dbpickrc - waveform review, pick arrivals, and edit a CSS relational database
dbpick [-sc sta:chan] [-ts tstart] [-te tend] [-tw twin]
[-noexist] [-nostarttalk] [-nostdin] [-winfile winfile]
[-appname tksend_appname]
[-gaps {segment|zero|interp|none}]
[-comout comfile] [-geom WxH+X+Y]
[-switchbuttons] [-showfm] [-showdetections] [-showassocs]
[-iconic] [-bg trace_background] [-fg trace_foreground]
[-bga arrival_background] [-fga arrival_foreground]
[-bgsa sel_arrival_background] [-fgsa sel_arrival_foreground]
[-fgdt detection_foreground] [-fgtm timemark_foreground]
dbname
dbpick is an X-windows based interactive graphical program for
displaying seismic waveforms, analyst picked phase arrivals and
temporary predicted arrivals. dbpick also provides functionality for
creating and/or editing phase arrivals. The data must be represented
in a CSS (Center for Seismic Studies) relational database implemented as a set of
ASCII flat files, each file corresponding to one of the CSS relations. Currently
the program will work only with version 3.0 of the database schema.
Editing causes immediate changes to the database flat files without
copying to new files.
-
dbname
The name of the subject database. The database name is defined as the
name of one of the flat relation files without the .relname suffix. For
example, if the .wfdisc relation file name is ./foo.wfdisc then ./foo is
the database name. This argument is required and must be the last argument
in the command line.
-
-sc sta:chan
A station-channel sift key. This argument specifies the subset of
station-channel data streams that will be available for analysis. This
argument is optional and if it is not specified, then all station-channel
values will be used. The asterisk (*) character can be used in place of
either sta or chan which matches anything. Thus -sc AAK:*
would mean all channels for station AAK or -sc *:HHZ would mean all stations
for channel HHZ. In addition, normal UNIX regular expression matching is
used to match strings (ala ed or ex, so that -sc A..:..Z, for example,
would match all 3-character channel codes ending in Z and all 3-character
station codes beginning with A). The user should take care to deal
properly with the shell interpreter when using the various metacharacters,
as they can be substituted before program execution. If using the C-shell,
a safe way to handle this is to place sta:chan between single quotes
as follows: -sc 'sta:chan'
-
-ts tstart
A data sift start time. This argument specifies the subset of
arrivals and waveform segments that will be available for analysis. Only
arrivals and waveform segments with time later than tstart will be
used. This argument is optional and if it is not specified, then waveform
segment and arrival times will not be subject to start time sifting. The
start time, tstart, can be specified in several different ways:
-
1.
An epoch time in seconds since 00:00:00 1 Jan 1970 GMT.
-
2.
A character string in `year:month:day:hour:minute:second' form.
-
3.
A character string in `julianday:hour:minute:second' form.
-
-te tend
A data sift end time. This argument specifies the subset of
arrivals and waveform segments that will be available for analysis. Only
arrivals and waveform segments with time earlier than tend will be
used. This argument is optional and if it is not specified, then waveform
segment and arrival times will not be subject to start time sifting. The
end time, tend, can be specified in several different ways:
-
1. An epoch time in seconds since 00:00:00 1 Jan 1970 GMT.
-
2. A character string in `year:month:day:hour:minute:second' form.
-
3. A character string in `julianday:hour:minute:second' form.
-
-tw twin
An initial time window in seconds for displaying the data. This argument
is optional and, if not specified, a default time window is used.
-
-noexist
A waveform existence flag. If this flag is given in the command line, then
all station-channel streams will be displayed even those for which there
are no existing waveform .w files.
-
-nostarttalk
Disable startup dialog flag. If this flag is given in the command line, then
the default startup dialog is omitted and the program goes immediately into
interactive display mode. The startup dialog consists of a summary printout of
the station-channels to be displayed, a prompt to determine if the user wants
to look at the listed traces and a help printout explaining the interactive
keyboard and mouse usage.
-
-nostdin
Disable all processing of standard input. If this flag is given in the command line, then dbpick
will expect to get all of the normal typed commands, that would normally come
from standard input, from the X-server based inter-process communication mechanism.
This would normally be specified when another script or program is being used to "drive" dbpick
through the X-windows tksend mechanism. Specifying this flag will also disable the startup
dialog.
-
-winfile winfile
A file into which will be written the main dbpick X-window id.
This is used as a crude mechanism for broadcasting the dbpick
X-window id for use in X-server based inter-process communication.
This argument is optional and, if not specified, then the window id
file is not created.
-
-appname tksend_appname
A tcl/tk application name for the main dbpick X-window. This name must
contain at least one alphabetic character with no embedded blanks.
This is an alternate mechanism for X-server based inter-process communication.
Messages can be sent either through the tksend(1) program or by the
tcl/tk send command.
This argument is optional and, if not specified, then the tcl/tk application
name is not registered.
-
-gaps {segment|zero|interp|none}
Data gaps internal to waveform segments (typical for radio telemetered data)
can be flagged for 2-byte integer
and 4-byte integer data. The flagging is done by setting 2-byte data
samples to the value 32767 and 4-byte data samples to the value 2147483647 which are
the maximum integer values for the two formats. The way in which dbpick
displays data gaps is determined by this argument. If this is specified as
segment, then waveform data is re-segmented to eliminate internally
flagged gaps (the gaps will appear as gaps on the display). If this is specified as
zero, then internally flagged gap values are set to zero before being
displayed. If this is specified as interp, then internally flagged gap values are
interpolated. If this is specified as none, then dbpick will not
look for internally flagged gaps and the display will show the waveform segments
in their original form.
This argument is optional and, if not specified, then the default gap
processing is segment.
-
-comout comfile
This specifies an output file into which will be written
strings each time an arrival is added. deleted, or edited.
This is used by dbloc2(1) to communicate changes
made to arrivals through a named pipe.
This argument is optional and, if not specified, then there
will be no notifications due to arrival editing.
-
-geom WxH+X+Y
This is a standard X-window geometry specification for the
main trace display window.
-
-switchbuttons
If this flag is specified, then the middle and right mouse button
functions will be interchanged (i.e. the phase menu will popup
with a right button click, instead of a middle button click, etc.)
-
-showfm
If this flag is specified, then the first motions associated with
each arrival will be shown as an up-arrow or down-arrow glyph after
the phase idenitifier.
-
-showdetections
If this flag is specified, then detection onset times from the detection
database table are shown as red-orange glyphs labeled with the state
attribute.
-
-showassocs
If this flag is specified, then the arrival glyph colors are coded according
to currently selected event association status.
-
-iconic
If this flag is specified, then the trace window will start up as an icon.
attribute.
-
-fg trace_foreground
This is the foreground color of the trace lines in the trace window. This overrides the
dbpick.foreground specification in the .dbpickrc file, if any.
This can
be specified either in the normal X-window fashion (e.g. `red', `#ff348a'),
or as a hue-lightness-saturation floating point triad (e.g. `240.0 0.5 1.0' for
pure blue).
-
-bg trace_background
This is the background color of the trace window. This overrides the
dbpick.background specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-fga arrival_foreground
This is the foreground color of the normal arrival flags. This overrides the
dbpick.arrival.foreground
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-bga arrival_background
This is the background color of the normal arrival flags. This overrides the
dbpick.arrival.background
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-fgsa sel_arrival_foreground
This is the foreground color of the selected arrival flags. This overrides the
dbpick.selArrival.foreground
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-bgsa sel_arrival_background
This is the background color of the selected arrival flags. This overrides the
dbpick.selArrival.background
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-fgdt detection_foreground
This is the foreground color of the detection flags. This overrides the
dbpick.detection.foreground
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
-
-fgtm timemark_foreground
This is the foreground color of the user defined time mark lines. This overrides the
dbpick.timeMark.foreground
specification in the .dbpickrc file, if any.
This is specified in the same manner as with the -fg argument.
This program makes use of the X11 resource database software and a number
of program parameters can be set by the user through the use of X11
resource files. The user can specify these resource parameters either
through the normal X-window resource path (in .Xresource or .Xdefaults
file or any other file that is loaded with xrdb), or in special
resource files with name .dbpickrc that are always loaded by
dbpick at run time. The program first looks for .dbpickrc in
the user's home directory and then in the current working directory.
If .dbpickrc files reside in both directories, then the contents of
both files are read with the file in the current working directory
overwriting parameters from the file in the user's home directory. A
typical .dbpickrc file would be as follows:
dbpick.traceWindow.twin: 300.0
dbpick.filter1.label: 0.1 HP
dbpick.filter1.tpad: 100.0
dbpick.filter1.lcoFreq: 0.1
dbpick.filter1.lcoOrder: 3
dbpick.filter1.ucoFreq: 0.0
dbpick.filter1.ucoOrder: 0
The resource names and values are defined as follows.
-
Resource Name
Value
-
dbpick.foreground
The trace display foreground color (on color terminals only). This can
be specified either in the normal X-window fashion (e.g. `red', `#ff348a'),
or as a hue-lightness-saturation floating point triad (e.g. `240.0 0.5 1.0' for
pure blue).
-
dbpick.background
The trace display background color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.arrival.foreground
The normal arrival flag foreground color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.arrival.background
The normal arrival flag background color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.selArrival.foreground
The `selected' arrival flag foreground color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.selArrival.background
The `selected' arrival flag background color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.definingArrival.foreground
The arrival flag foreground color (on color terminals only) to indicate defining arrivals for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.definingArrival.background
The arrival flag background color (on color terminals only) to indicate defining arrivals for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.associatedArrival.foreground
The arrival flag foreground color (on color terminals only) to indicate associated arrivals for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.associatedArrival.background
The arrival flag background color (on color terminals only) to indicate associated arrivals for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.magnitudeArrival.foreground
The arrival flag foreground color (on color terminals only) to indicate arrivals that are used for magnitude measurements for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.magnitudeArrival.background
The arrival flag background color (on color terminals only) to indicate arrivals that are used for magnitude measurements for the currently selected event.
This is specified as with the trace display foreground color.
-
dbpick.detection.foreground
The detection flag foreground color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.timeMark.foreground
The user defined time mark line foreground color (on color terminals only).
This is specified as with the trace display foreground color.
-
dbpick.traceWindow.twin
The initial trace display time window in seconds.
-
dbpick.filter#.label
The pull-down menu label for the #th filter. The `#' character is an integer
in the range of 1 to 11 and represents the filter number.
-
dbpick.filter#.tpad
The filter transient time in seconds for the #th filter. This is used to
lead the requested time window so that the filter transient has had a
chance to decay.
-
dbpick.filter#.lcoFreq
The filter lower cutoff frequency in Hertz for the #th filter. If this is
0.0, then the filter is low-pass.
-
dbpick.filter#.lcoOrder
The filter lower cutoff order for the #th filter. This is the number of
poles used in the low-band stage of the Butterworth filter.
-
dbpick.filter#.ucoFreq
The filter upper cutoff frequency in Hertz for the #th filter. If this is
0.0, then the filter is high-pass.
-
dbpick.filter#.ucoOrder
The filter upper cutoff order for the #th filter. This is the number of
poles used in the high-band stage of the Butterworth filter.
-
dbpick.filter#.type
An optional filter type specification for Wood-Anderson response filtering. By default, all filters are generalized bandpass Butterworth
filters, as described above. However, dbpick.filter#.type can be specified as WAA, WAV,
or WAD, for, respectively, Wood-Anderson response for an acceleration sensor output (meaning a sensor that is flat in acceleration),
Wood-Anderson response for a velocity sensor output (meaning a sensor that is flat in velocity) and Wood-Anderson response for a displacement
sensor output (meaning a sensor that is flat in displacement). Only these three types are recognized using the dbpick.filter#.type resource name.
If dbpick.filter#.type is specified, then the lcoFreq, lcoOrder, ucoFreq and ucoOrder specifications
are all ignored.
-
dbpick.filter#.string
An optional filter type specification string as defined by the wffil(3) generalized filtering subroutines.
By default, all filters are generalized bandpass Butterworth
filters, as described above. However, dbpick.filter#.string can be specified according to the
rules documented in wffil(3) to produce complex and staged filters.
If dbpick.filter#.string is specified, then the lcoFreq, lcoOrder, ucoFreq, ucoOrder and type specifications
are all ignored.
-
dbpick.phase#.name
The pull-down menu label for the #th phase code. This pull-down menu
appears whenever the middle mouse button is pressed on a phase flag and
is used to name the phase. The `#' character is an integer
in the range of 1 to 8 and represents the phase code number.
Upon initial startup the station-channel values after sifting are
displayed, along with the total number of existing waveform data samples,
and the user is queried about continuing. If the user answers `n', then
the program exits and the user can try different sifting keys. (This
startup dialog is suppressed if the -nostarttalk flag is
specified in the command line.) If the user
answers `y', then a summary help listing is printed,
the data is displayed in a graphical window and the
program goes into command input mode. Command input mode is indicated by
the prompt dbpick> displayed in the original text window and
whenever this prompt is displayed the user may either enter text commands
at the prompt or interact directly with the various graphical display
windows through the mouse and keyboard. The currently implemented text
commands are as follows:
-
fw
Time scroll the display to the first existing waveform.
-
nw
Time scroll the display to the next existing waveform.
-
pw
Time scroll the display to the previous existing waveform.
-
fa
Time scroll the display to the first phase arrival
with an existing waveform.
-
na
Time scroll the display to the next phase arrival
with an existing waveform.
-
pa
Time scroll the display to the previous phase arrival
with an existing waveform.
-
np phase
Time scroll the display to the next phase arrival with phase code phase.
-
pp phase
Time scroll the display to the previous phase arrival with phase code phase.
-
fe
Select the first event in the origin table and time scroll the display to the origin time
of that event.
-
ne
Select the next event in the origin table and time scroll the display to the origin time
of that event.
-
pe
Select the previous event in the origin table and time scroll the display to the origin time
of that event.
-
le
Select the last event in the origin table and time scroll the display to the origin time
of that event.
-
dw
delete channels with no waveforms in the display.
-
swd
Show only waveforms with detections.
-
swa
Show only waveforms with arrivals.
-
swda
Show only waveforms with either detections or arrivals.
-
sas
Display arrival glyphs with event association color coding.
-
tfit
Toggle the time window fit mode. When time window fit mode is enabled, the
trace display time window is automatically adjusted so that it exactly
fits the waveform segments being currently displayed.
-
sfit
Fit the trace display in the vertical station-channel direction. This
causes all station-channels to be displayed.
-
sc sta:chan
Display only those traces that match sta:chan. This is the keyboard
equivalent of the -sc command option, except that all
station-channel data streams remain available.
-
rec
Arrange stations by increasing distance from the currently selected origin.
-
cw start number
Show number traces starting at index start.
-
cm number
This defines a maximum number of traces that will ever show in the display,
regardless of any other attempts to display more traces. This is an important
specification that can be used to prevent dbpick from attempting to
display a very large number of traces in a single window, which usually results
in an unintelligible display that takes a long time to render.
-
ts time
Display the station-channel data streams starting at time. Time
must be in one of the formats specified for the -ts command option.
-
tw time
Change the primary display time window to time seconds.
-
ph phase
Change the default phase code for newly created arrivals to phase.
-
gp {segment|zero|interp|none}
Change the gap processing. See the description of the -gaps command line
argument.
-
oa dbname
Open a secondary arrival database with name dbname. This can
be used to display alternative phase arrivals from another database
along with the arrivals in the primary database. The alternative arrivals
are displayed as overlay arrivals in the same manner as predicted arrivals.
These secondary arrivals are not available for editing.
-
oe dbname
Open another database with name dbname that will provide the current
event list from the origin table. By default the event list is taken
from the origin table in the primary database, but the event list
can be changed with this command. An example of this would be to open
a PDE database to search for small events that might not have been picked
and associated in the primary database.
-
od dbname
Open another database with name dbname that will provide the current
detection list from the detection table.
By default the detection list is taken
from the detection table in the primary database, but the detection list
database can be changed with this command.
-
se orid
Select an event from the current event database by specifying the orid
field in the origin table. If the event is found, then it becomes the
current event and an event summary printout is listed.
-
sp phase_list
Select a list of phases for the current event and display the predicted
phase arrival times as overlay arrivals in the waveform displays.
The phase_list is a comma separated list of phase codes, such as
P,S or the key word basic can be used to select a large set
of phases that covers just about everything. See tt(3) for more
information. The software used to compute theoretical travel times is
taken from the program ttimes as distributed by the IRIS DMC and
the phase code specifications given here are identical to those that
would be specified for ttimes.
-
tc time_corr
A time correction in seconds that will be applied to overlay arrivals
(either predicted travel times or from the secondary arrival
database) before they are displayed. This can be used to time shift
all overlay arrivals to get a better match with the data.
-
tse
Time scroll the display window to the current event origin time.
-
Fe
Find an event in the current event database that already has
associations with arrivals in the primary display window, defined in the assoc table.
-
ae
Find an event in the current event database that associates with
the arrivals in the primary display window. This will attempt to find
the event which produces the minimum time residuals with the displayed
arrivals. This is particularly useful for finding PDE events that
associate with arrival picks.
-
sa on/off
Show/hide arrival pick flags. If on, then the arrival flags are
displayed and if off, then the arrival flags are not displayed.
-
soa on/off
Show/hide overlay arrival flags. If on, then the overlay arrivals are
displayed and if off, then the overlay arrivals are not displayed.
-
sw on/off
Show/hide waveforms. If on, then the waveforms are
displayed as normal wiggle plots and if off, then the waveforms are displayed as horizontal
bars. This is useful for temporarily disabling the wiggle plot display of
waveforms so that the display can be manipulated quickly. A typical use of
this is to time fit the display over the entire database time range (which
can be as long as a year) to produce a coverage chart.
-
sf on/off
Show/hide first motion glyphs. If on, then the first motions associated
with each arrival are displayed as up-arrow or down-arrow glyphs after the
phase codes.
-
sd on/off
Show/hide detection glyphs. If on, then detection onset times from the detection
database table are displayed as red-orange glyphs with the detection state
attribute used as a label.
-
cts on/off
Display amplitude units in counts or physical units. If on, then the
amplitude units are displayed in counts (or the raw units of the actual
waveform sample values). If off, then the amplitude units are displayed
in physical units of nanometers, nanometers/sec or nanometers/sec/sec.
-
mg on/off
Display amplitude units for acceleration in milli-Gs or standard units (nm/s**2). If on, then the
acceleration amplitude units are displayed in milli-Gs.
If off, then the acceleration amplitude units are displayed
in nanometers/sec/sec.
-
filter index
This has the same effect as setting the filter from the pulldown filter menu and can be used to
set the filter remotely.
-
tmadd time
This has the same effect as adding a new time mark from the pulldown "add time marks" menu and can be used to
add time marks remotely.
-
tmdel {index|"all"}
When index is specified, this has the same effect as interactively deleting a
time mark. When all is specified, this deletes all time marks.
-
echo args ...
This causes whatever is given in args ... to be echoed to standard out and to
appear in the return from a tcl/tk send command. This is generally used in conjunction with
the variable substitution syntax used by dbpick (see section below) to either list dbpick state
and configuration information or to pass this information to some other process which is normally
a tcl/tk script.
-
exec program args ...
This causes remote execution of a program or script specified by program with
arguments specified by args .... The argument list goes through the same variable subtitution
as with the echo command before the program is executed.
-
ps plotfile
This will cause the main window to be dumped into a Postscript plot file with name plotfile.
-
help
Display a list of available text commands.
-
quit
Exit the program.
In addition to entering text commands at the command prompt, the user can
also enter certain commands directly by typing single keys while the mouse
pointer is in the graphical display window. These keys can be thought of
as accelerators and for the most part they simply replace typing at the
command prompt. The accelerator keys are as follows.
(Note that some window managers may not allow this behavior by default.
When using SUN's OpenLook window manager, olw or olwm, for instance,
the line
OpenWindows.FocusLenience: True
must appear in the user's .Xdefaults file in order for the accelerator
keys to work.)
-
F
Time scroll the display to the first existing waveform. Same as `fw'
prompt command.
-
N
Time scroll the display to the next existing waveform. Same as `nw'
prompt command.
-
P
Time scroll the display to the previous existing waveform. Same as `pw'
prompt command.
-
f
Time scroll the display to the first phase arrival
with an existing waveform. Same as `fa' prompt command.
-
n
Time scroll the display to the next phase arrival
with an existing waveform. Same as `na' prompt command.
-
p
Time scroll the display to the previous phase arrival
with an existing waveform. Same as `pa' prompt command.
-
e
Select the next event in the origin table and time scroll the display to the origin time
of that event. Same as the `ne' prompt command.
-
t
Toggle the time window fit mode. Same as the `tfit' prompt command.
-
s
Fit the trace display in the vertical station-channel direction.
Same as the `sfit' prompt command.
-
a
Redraw the arrival flags.
-
r
Repaint window.
-
R
Redraw and repaint window.
All other commands and interaction take place directly within the graphical
display windows. The main display window initially shows all of the selected
station-channel data streams with phase arrival flags. Control buttons appear
at the top of the window. The effects of mouse pointer and button events in
the display windows depend on where the mouse is currently located.
The Main Window control buttons are as follows.
-
Traces
Causes the trace display pull-down menu to appear. Items selected from
this menu control how the traces are displayed on the window. See
Station Region for information on selecting traces.
-
Select
Changes the display to contain the selected traces. If no traces
were selected then the display will not change.
-
Delete
Changes the display to contain the unselected traces. If no traces
were selected then the display will not change.
-
Original
Causes all traces to be displayed.
-
SelectAll
Selects every trace in the display.
-
DeleteAll
Unselects every trace in the display.
-
Zoom
Changes the display to show only the range of selected traces. The other
traces are still part of the display, and may be reached with the scroll
bar.
-
NewWin
Creates a new display window containing the selected traces.
If new display windows have been previously created, then they will
appear as button items in this menu:
-
Window#
Puts the selected traces in the existing Window#.
-
Amp
Causes the amplitude scale mode pull-down menu to appear. Items selected
from this menu control how trace amplitudes are scaled within the
current display.
-
Fixed
Fixes the trace amplitude scale to the current display. These
scale factors remain unchanged as the display is modified.
-
Auto
Automatically scales each trace individually.
-
Auto0
Automatically scales each trace individually while constraining
zero amplitude to be in the middle of each trace display.
-
Auto1
Automatically scales the first trace and uses that same scale
factor for the other traces in the display.
-
AutoA
Searches for the largest peak to peak amplitude for all
of the displayed traces,
automatically scales that trace and uses that same scale
factor for the other traces in the display.
-
AGC
Applies time varying automatic gain control to the displayed traces.
-
Clip Off/On
Toggles clipping mode. If clipping is on, then the display will clip
outside of the trace display sub-window. (Note that this does not
necessarily imply actual clipping of the data.) If clipping is off,
then the waveform wiggles can overlap adjacent trace display sub-windows.
-
Invert
Reverses the polarity of all of the traces.
-
Gain=1
Displays the traces at normal amplitude
-
Gain x N
Increases the current gain of the traces by N. Note that this is
cumulative.
-
Gain / N
Decreases the current gain of the traces by N. Note that this is
cumulative.
-
Filter
Causes the filter pull-down menu to be displayed. Items selected
from this menu control which, if any, filter is applied to the data
before it is displayed. The filter parameters can be defined through the
X11 resource files described previously.
-
None
Displays the traces without any filtering.
-
Freq LP
Applies a low-pass filter with the corner frequency at Freq.
-
Range BP
Applies a band-pass filter with the corner frequencies at Range.
-
Add Arrivals
Causes the mouse to be placed in add-arrival mode. While in this mode the
mouse buttons have the following effect:
-
Left Mouse
One arrival is added, at the position of the mouse, and the mouse reverts
to the normal state.
-
Middle Mouse
The middle button causes the mouse to revert to the normal state, without
adding an arrival.
-
Right Mouse
The right button adds an arrival, at the position of the mouse, with the
mouse remaining in add-arrival mode.
-
Add Time Marks
Causes the mouse to be placed in add-timemark mode. Time marks are vertical
lines across the entire trace display that can be used to define time-based
values and delimiters. These marks are ephemeral, i.e. they are not stored
in a database or state file and only last for the duration of a particular
execution of dbpick. While in this mode the
mouse buttons have the following effect:
-
Left Mouse
One time mark is added, at the position of the mouse, and the mouse reverts
to the normal state. Each time mark is identified by an index that is shown
at the bottom and to the right of the time mark.
-
Middle Mouse
The middle button causes the mouse to revert to the normal state, without
adding any more time marks.
-
Right Mouse
The right button adds a time mark, at the position of the mouse, with the
mouse remaining in add-timemark mode.
-
Done
Closes the window containing the button.
The Trace Region is the area, excluding the arrival flags, where the
traces are displayed. Within this region the mouse acts as follows:
-
Left-Click
The left mouse button causes the traces to be time
scrolled to the left so that the mouse position is shifted to the left
edge of the screen.
-
Middle-Drag
Dragging the middle mouse button causes the traces to follow the movement
of the mouse in time.
-
Right-Click
The right mouse button causes the traces to be time
scrolled to the right so that the mouse position is shifted to the right
edge of the screen.
-
Shift-Left-Click
Holding the SHIFT key while clicking the left mouse button causes a sequence
to be initiated that controls expansion (or zoom-in) of the time scale.
After the initial mouse Shift-Left-Click, a reverse video box will track the
mouse cursor until one of the three mouse buttons is clicked again. If the
left or right button is clicked, then the time scale expands so that the delineated
reverse video box fills the new display window. If the middle mouse button is clicked, then the zoom-in
action is aborted.
-
Shift-Right-Click
Holding the SHIFT key while clicking the right mouse button causes a sequence
to be initiated that controls contraction (or zoom-out) of the time scale.
After the initial mouse Shift-Right-Click, a reverse video box will track the
mouse cursor until one of the three mouse buttons is clicked again. If the
left or right button is clicked, then the time scale contracts so that the
current display time window maps to the delineated
reverse video box in the new window. If the middle mouse button is clicked, then the zoom-out
action is aborted.
The Station Region is the area to the left of the traces where the
Station/Channel information is displayed. Within this region the
mouse acts as follows:
-
Left-Click or Left-Drag
Pressing and/or dragging the left mouse button in this region causes the specified traces
to be selected/unselected.
The Arrival Region is the area within an arrival flag. Within this
region the mouse acts as follows:
-
Left-Drag
Pressing and ``dragging'' the left mouse button in this region causes the
arrival time to be changed until the button is released.
-
Shift-Left-Drag
Pressing and ``dragging'' the left mouse button in this region while simultaneously
holding down the SHIFT key causes the
arrival time uncertainty to be changed until the button is released.
-
Control-Shift-Left-Drag
Pressing and ``dragging'' the left mouse button in this region while simultaneously
holding down the SHIFT and CONTROL keys causes the
arrival amplitude and period to be changed until the button is released.
The amplitude and period measurements are made automatically on the trace as
displayed (i.e. with filtering if so specified) by picking the closest
trough-peak to the mouse cursor. The amplitude and period measurement is
written to the database after the application of an instrument response
correction when the mouse button is released. Note that these measurements
will not be written to the database if the instrument response cannot be
found for that trace (and an error message is printed).
-
Middle-Click
Pressing the middle button causes a phase pop-up menu to appear and the
selection of a menu item will cause the arrival phase to be changed.
-
Shift-Middle-Click
Pressing the middle button while pressing the shift key causes a first motion pop-up menu to appear and the
selection of a menu item will cause the arrival first motion to be changed. Generally first motion
is chosen automatically based on the filtered trace whenever the arrival time is changed. This
provides a means to override those automatic determinations.
-
Right-Click
Pressing the right mouse button causes an arrival editing pop-up menu to
appear with the following options:
-
Window
Create a new window with the same time scale
-
Magnify
Create a new time magnified window
-
Delete
Delete the arrival.
The magnification window allows the user to make more sensitive
interactive measurements than would be possible in the original window.
All changes in the arrival flags and time marks are synchronized among the windows. The
secondary windows behave in all aspects like the original window.
The Time Mark Region is the area within a time mark label (the time mark label
is drawn at the very bottom and to the right of the time mark). Within this
region the mouse acts as follows:
-
Left-Drag
Pressing and ``dragging'' the left mouse button in this region causes the
time mark time to be changed until the button is released.
-
Shift-Left-Click
Pressing and ``clicking'' the left mouse button in this region while pressing the shift key causes the
time mark to be deleted.
The Scroll Region is the area around the scroll bars. Within this
region the mouse has the following effects:
-
Right Mouse
Pressing the right mouse button within this region causes the scroll
pull-down menu to appear. The items and their effects are defined as
follows:
-
Time Fit
Rescales the time axis to fit the entire time range of the database.
-
Time ZoomIn
Time zoomin. Increases the magnification along the time axis.
-
Time ZoomOut
Time zoomout. Decreases the magnification along the time axis.
-
Trace Fit
Rescales the trace axis so that all traces are visible within the window.
-
Trace ZoomIn
Trace zoomin. Increases the magnification along the trace axis.
-
Trace ZoomOut
Trace zoomout. Decreases the magnification along the trace axis.
A simple variable substitution syntax is implemented in dbpick. This
substitution, only done within the arguments in the echo and exec
typein commands, provides a generalized mechanism for passing program state
and configuration information to other processes. At present, all of the variables
relating to the state of the display apply only to the main trace display window
and not to any of the various sub-windows. Variables are substituted using a %name
syntax. A listing of the currently supported variable names is given here:
-
%db
This is substituted with the name of the primary database as specified in the dbpick
command line.
-
%ts
This is substituted with visible trace display start time as an Antelope epoch time.
-
%te
This is substituted with visible trace display end time as an Antelope epoch time.
-
%tw
This is substituted with visible trace display time window in seconds.
-
%orid
This is substituted with the value of the currently selected origin id, orid, from the event
database. This is -1 if no origin is currently selected.
-
%arid
This is substituted with the value of the first arrival id, arid, from the arrival
database table that is within the currently visible trace display window. This
is -1 if no arrival is currently displayed.
-
%arids
This is substituted with a white space separated list of all
arrival ids, arids, from the arrival
database table that are within the currently visible trace display window. This
is -1 if no arrivals are currently displayed.
-
%sta
This is substituted with the first station code in the trace display. Note that this is
the first station in the entire scrolled region, not necessarily the first visible
station.
-
%stas
This is a white space separated list of all unique station codes in the entire scrolled region. This list is
not in display order, but instead is alphabetized.
-
%chan
This is substituted with first channel code in the trace display. Note that this is
the first channel in the entire scrolled region, not necessarily the first visible
channel.
-
%stachans
This is substituted with a white space separated list of all station-channel codes, specified
in a sta:chan format, in display order for the entire scrolled region,
not necessarily the first visible station-channel.
-
%tms
This is substituted with a list of all currently defined time marks. This will be put into
a proper tcl list form, meaning a list of white space separated values with { and }
used as list delimiters. The values in the list are the time mark epoch times and the order is in
the same order as the time mark indices. Note that if a time mark is deleted, then its position in
the list is indicated by the - NULL character.
-
%ntraces
This is substituted with the total number of traces that were originally read and processed
when dbpick was started. Note that this number is not affected by trace selections or the
traces currently visible in the main display window.
-
%trlabels
This is substituted with a list of all trace labels which are normally station channel codes. This will be put into
a proper tcl list form, meaning a list of white space separated values with { and }
used as list delimiters. There will be %ntraces entries in this list and this provides the mapping
between traces indices and tracel labels.
-
%trdisplayorders
This is substituted with a list of all trace display orders. This will be put into
a proper tcl list form, meaning a list of white space separated values with { and }
used as list delimiters. There will be %ntraces entries in this list and the %trlabels
list can be used to identify the individual traces in this list. The values in this list are the
actual display indices in the current entire scrolled region of the main trace display. Values of -1
indicate that the associated trace is not in the scroll region or in the display. Note that this
does not specify if the associated traces are actually visible, but that they are somewhere in the entire
scrolled region.
-
%trselectorders
This is substituted with a list of all of the orders of currently selected traces. This will be put into
a proper tcl list form, meaning a list of white space separated values with { and }
used as list delimiters. There will be %ntraces entries in this list and the %trlabels
list can be used to identify the individual traces in this list. The values in this list are the
order of selection indices in the current entire scrolled region of the main trace display. Values of -1
indicate that the associated trace is not currently selected. Note that this
does not specify if the associated traces are actually visible.
The environment variables ANTELOPE, SCHEMA_DIR, TAUP_PATH,
and TAUP_TABLE are used by this program. See antelopeenv(5) for
descriptions of these environment variables.
In many cases where changes are made to a display by typing in a command
or through interactive mouse input, the other displays may not be
updated as one might expect. This occurs, for example, when arrival
flags are hidden through the soa off typein command, which will
cause the arrivals in the primary display window to be hidden but not
in the other windows. The other windows can be brought up to date
by repainting the windows (with the R key command in each window).
When there is a break in the waveform data and a new wfdisc record
is generated (i.e. end of day), dbpick will show what looks to be
a gap in data at the boundary. This is not a problem: it is how
dbpick is intended to work. The waveforms are not 'healed' (i.e. no
connection is drawn between the two separate segments) as dbpick
is intended to display the data in its most raw form. Programs such
as dbwfmeas(1) heal the data assuming that the last sample
from the previous record is close to the start time of the first
sample of the new wfdisc record (how close is 'ok' is configurable
in trdefaults.pf(5)).
dbpick can not read from standard in or use "-" as the database name.
dbintro(3), dbschema(5), antelopeenv(5),tt(3), trdisp(1)
Danny Harvey
Boulder Real Time Technologies, Inc.
Table of Contents
Antelope Release 4.11 Linux 2.6.22.5-31-bigsmp 2009-09-07
Boulder Real Time Technologies, Inc
For more information, contact support@brtt.com