mtimg¶
Create beachball images from a focal mechanism or a moment tensor.
Description¶
mtimg generates custom images from moment-tensor solutions and focal
mechanisms in different image formats. If unspecified, the file format is
determined by the ending of the output file. mtimg is called, e.g., by the
default script for report generation
@DATADIR@/mtv/tools/mtv-plot-extended-log.py
configured in scmtv
by mtv.extendedLog.script
for report generation.
Example:
Generate a PNG image for focal mechanism with strike/dip/rake = 110/30/45 deg
mtimg 110 30 45 -d 200x200 -o mt.png
Write JPEG image with 95% quality for moment tensor with RR/TT/PP/RT/RP/TP = 1/2/3/-1/0/-1 to stdout and then into file.
mtimg --quality 95 -f jpg 1 2 3 -1 0 -1 > /tmp/mt.jpg
Module Configuration¶
etc/defaults/global.cfg
etc/defaults/mtimg.cfg
etc/global.cfg
etc/mtimg.cfg
~/.seiscomp/global.cfg
~/.seiscomp/mtimg.cfg
mtimg inherits global options.
Note
Modules/plugins may require a license file. The default path to license
files is @DATADIR@/licenses/
which can be overridden by global
configuration of the parameter gempa.licensePath
. Example:
gempa.licensePath = @CONFIGDIR@/licenses
Command-Line Options¶
mtimg [options] [source parameters]
Verbosity¶
Generic¶
Options¶
- -d, --dimension arg¶
Default:
100x100
Output image dimensions in pixel (width x height).
- -o, --output arg¶
Name of output image file. If unspecified or ‘-’, the image is written to stdout.
- -f, --format arg¶
Image format, if unset, the format is derived by the output file name extension. Please refer to the command-line help to get a list of formats supported by your platform.
- --quality arg¶
Default:
-1
The image quality factor which must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.
- --color-p arg¶
Color of pressure area.
- --color-t arg¶
Color of tension area.
- --color-b arg¶
Color of borders.
- --shading¶
Enable shading.
- --margin arg¶
Width of margin.