.TH PSMECA 1gmt "15 Jul 2011" "GMT 4.5.7" "Generic Mapping Tools" .SH NAME psmeca \- Plot focal mechanisms on maps .SH SYNOPSIS .br psmeca \fIfiles\fP \fB\-J\fP\fIparameters\fP \fB\-R\fP\fIwest\fP/\fIeast\fP/\fIsouth\fP/\fInorth\fP[\fBr\fP] [ \fB\-B\fP[\fBp\fP|\fBs\fP]\fIparameters\fP ] [ \fB\-C\fP[\fIpen\fP][\fBP\fP\fIpointsize\fP] ] [ \fB\-D\fP\fIdepmin\fP/\fIdepmax\fP ] [ \fB\-E\fP\fIfill\fP] [ \fB\-G\fP\fIfill\fP] [ \fB\-H\fP[\fBi\fP][\fInrec\fP] ] [ \fB\-K\fP ] [ \fB\-L\fP[\fIpen\fP] ] [ \fB\-M\fP ] [ \fB\-N\fP ] [ \fB\-O\fP ] [ \fB\-P\fP ] [ \fB\-S\fP\fI\fP[/\fBd\fP]] [ \fB\-T\fP\fInum_of_plane\fP[\fIpen\fP] ] [ \fB\-U\fP[\fIjust\fP/\fIdx\fP/\fIdy\fP/][\fBc\fP|\fIlabel\fP] ] [ \fB\-V\fP ] [ \fB\-W\fP\fIpen\fP ] [ \fB\-X\fP[\fBa\fP|\fBc\fP|\fBr\fP][\fIx-shift\fP[\fBu\fP]] ] [ \fB\-Y\fP[\fBa\fP|\fBc\fP|\fBr\fP][\fIy-shift\fP[\fBu\fP]] ] [ \fB\-Z\fP\fIcptfile\fP] [ \fB\-z\fP ] [ \fB\-a\fP[\fIsize\fP[\fIP_symbol\fP[\fIT_symbol\fP]]] ] [ \fB\-g\fP\fIfill\fP ] [ \fB\-e\fP\fIfill\fP ] [ \fB\-o\fP ] [ \fB\-p\fP\fIpen\fP ] [ \fB\-t\fP\fIpen\fP ] [ \fB\-:\fP[\fBi\fP|\fBo\fP] ] [ \fB\-c\fP\fIcopies\fP ] .SH DESCRIPTION \fBpsmeca\fP reads data values from \fIfiles\fP [or standard input] and generates \fIPostScript\fP code that will plot focal mechanisms on a map. Most options are the same as for \fBpsxy\fP. The \fIPostScript\fP code is written to standard output. .SH ARGUMENTS \fIfiles\fP List one or more file-names. If no files are given, \fBpsmeca\fP will read standard input. .TP \fB\-J\fP Selects the map projection. Scale is UNIT/degree, 1:xxxxx, or width in UNIT (upper case modifier). UNIT is cm, inch, or m, depending on the \fBMEASURE_UNIT\fP setting in \.gmtdefaults4, but this can be overridden on the command line by appending \fBc\fP, \fBi\fP, or \fBm\fP to the scale/width value. When central meridian is optional, default is center of longitude range on \fB\-R\fP option. Default standard parallel is the equator. For map height, max dimension, or min dimension, append \fBh\fP, \fB+\fP, or \fB-\fP to the width, respectively. .br More details can be found in the \fBpsbasemap\fP man pages. .br .sp \fBCYLINDRICAL PROJECTIONS:\fP .br .sp \fB\-Jc\fP\fIlon0/lat0/scale\fP (Cassini) .br \fB\-Jcyl_stere\fP/[\fIlon0/\fP[\fIlat0/\fP]]\fIscale\fP (Cylindrical Stereographic) .br \fB\-Jj\fP[\fIlon0/\fP]\fIscale\fP (Miller) .br \fB\-Jm\fP[\fIlon0\fP/[\fIlat0/\fP]]\fIscale\fP (Mercator) .br \fB\-Jm\fP\fIlon0/lat0/scale\fP (Mercator - Give meridian and standard parallel) .br \fB\-Jo\fP[\fBa\fP]\fIlon0/lat0/azimuth/scale\fP (Oblique Mercator - point and azimuth) .br \fB\-Jo\fP[\fBb\fP]\fIlon0/lat0/lon1/lat1/scale\fP (Oblique Mercator - two points) .br \fB\-Joc\fP\fIlon0/lat0/lonp/latp/scale\fP (Oblique Mercator - point and pole) .br \fB\-Jq\fP[\fIlon0/\fP[\fIlat0/\fP]]\fIscale\fP (Cylindrical Equidistant) .br \fB\-Jt\fP\fIlon0/\fP[\fIlat0/\fP]\fIscale\fP (TM - Transverse Mercator) .br \fB\-Ju\fP\fIzone/scale\fP (UTM - Universal Transverse Mercator) .br \fB\-Jy\fP[\fIlon0/\fP[\fIlat0/\fP]]\fIscale\fP (Cylindrical Equal-Area) .br .sp \fBCONIC PROJECTIONS:\fP .br .sp \fB\-Jb\fP\fIlon0/lat0/lat1/lat2/scale\fP (Albers) .br \fB\-Jd\fP\fIlon0/lat0/lat1/lat2/scale\fP (Conic Equidistant) .br \fB\-Jl\fP\fIlon0/lat0/lat1/lat2/scale\fP (Lambert Conic Conformal) .br \fB\-Jpoly\fP/[\fIlon0/\fP[\fIlat0/\fP]]\fIscale\fP ((American) Polyconic) .br .sp \fBAZIMUTHAL PROJECTIONS:\fP .br .sp \fB\-Ja\fP\fIlon0/lat0\fP[\fI/horizon\fP]\fI/scale\fP (Lambert Azimuthal Equal-Area) .br \fB\-Je\fP\fIlon0/lat0\fP[\fI/horizon\fP]\fI/scale\fP (Azimuthal Equidistant) .br \fB\-Jf\fP\fIlon0/lat0\fP[\fI/horizon\fP]\fI/scale\fP (Gnomonic) .br \fB\-Jg\fP\fIlon0/lat0\fP[\fI/horizon\fP]\fI/scale\fP (Orthographic) .br \fB\-Jg\fP\fIlon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale\fP (General Perspective). .br \fB\-Js\fP\fIlon0/lat0\fP[\fI/horizon\fP]\fI/scale\fP (General Stereographic) .br .sp \fBMISCELLANEOUS PROJECTIONS:\fP .br .sp \fB\-Jh\fP[\fIlon0/\fP]\fIscale\fP (Hammer) .br \fB\-Ji\fP[\fIlon0/\fP]\fIscale\fP (Sinusoidal) .br \fB\-Jkf\fP[\fIlon0/\fP]\fIscale\fP (Eckert IV) .br \fB\-Jk\fP[\fBs\fP][\fIlon0/\fP]\fIscale\fP (Eckert VI) .br \fB\-Jn\fP[\fIlon0/\fP]\fIscale\fP (Robinson) .br \fB\-Jr\fP[\fIlon0/\fP]\fIscale\fP (Winkel Tripel) .br \fB\-Jv\fP[\fIlon0/\fP]\fIscale\fP (Van der Grinten) .br \fB\-Jw\fP[\fIlon0/\fP]\fIscale\fP (Mollweide) .br .sp \fBNON-GEOGRAPHICAL PROJECTIONS:\fP .br .sp \fB\-Jp\fP[\fBa\fP]\fIscale\fP[\fI/origin\fP][\fBr\fP|\fBz\fP] (Polar coordinates (theta,r)) .br \fB\-Jx\fP\fIx-scale\fP[\fBd\fP|\fBl\fP|\fBp\fP\fIpow\fP|\fBt\fP|\fBT\fP][\fI/y-scale\fP[\fBd\fP|\fBl\fP|\fBp\fP\fIpow\fP|\fBt\fP|\fBT\fP]] (Linear, log, and power scaling) .br .TP \fB\-R\fP \fIwest, east, south,\fP and \fInorth\fP specify the Region of interest, and you may specify them in decimal degrees or in [+-]dd:mm[:ss.xxx][W|E|S|N] format. Append \fBr\fP if lower left and upper right map coordinates are given instead of w/e/s/n. The two shorthands \fB\-Rg\fP and \fB\-Rd\fP stand for global domain (0/360 and -180/+180 in longitude respectively, with -90/+90 in latitude). Alternatively, specify the name of an existing grid file and the \fB\-R\fP settings (and grid spacing, if applicable) are copied from the grid. .TP \fB\-S\fP Selects the meaning of the columns in the data file . In order to use the same file to plot cross-sections, depth is in third column. Nevertheless, it is possible to use "old style" \fBpsvelomeca\fP input files without depth in third column using the \fB\-o\fP option. .TP \fB\-Sa\fP\fIscale[/fontsize[/offset\fP[\fBu\fP]]] Focal mechanisms in Aki and Richards convention. \fIscale\fP adjusts the scaling of the radius of the "beach ball", which will be proportional to the magnitude. Scale is the size for magnitude = 5 in inch (unless \fBc\fP, \fBi\fP, \fBm\fP, or \fBp\fP is appended). Use the \fB\-T\fP option to render the beach ball transparent by drawing only the nodal planes and the circumference. The color or shade of the compressive quadrants can be specified with the \fB\-G\fP option. The color or shade of the extensive quadrants can be specified with the \fB\-E\fP option. Parameters are expected to be in the following columns: .RS .TP \fB1,2\fP: longitude, latitude of event (\fB\-:\fP option interchanges order) .TP \fB3\fP: depth of event in kilometers .TP \fB4,5,6\fP: strike, dip and rake in degrees .TP \fB7\fP: magnitude .TP \fB8,9\fP: longitude, latitude at which to place beach ball. Entries in these columns are necessary with the \fB\-C\fP option. Using 0,0 in columns 8 and 9 will plot the beach ball at the longitude, latitude given in columns 1 and 2. The \fB\-:\fP option will interchange the order of columns (1,2) and (8,9). .TP \fB10\fP: Text string to appear above the beach ball (optional). .RE .TP \fB\-Sc\fP\fIscale[/fontsize[/offset\fP[\fBu\fP]]] Focal mechanisms in Harvard CMT convention. \fIscale\fP adjusts the scaling of the radius of the "beach ball", which will be proportional to the magnitude. Scale is the size for magnitude = 5 (that is M0 = 4.0E23 dynes-cm) in inch (unless \fBc\fP, \fBi\fP, \fBm\fP, or \fBp\fP is appended). Use the \fB\-T\fP option to render the beach ball transparent by drawing only the nodal planes and the circumference. The color or shade of the compressive quadrants can be specified with the \fB\-G\fP option. The color or shade of the extensive quadrants can be specified with the \fB\-E\fP option. Parameters are expected to be in the following columns: .RS .TP \fB1,2\fP: longitude, latitude of event (\fB\-:\fP option interchanges order) .TP \fB3\fP: depth of event in kilometers .TP \fB4,5,6\fP: strike, dip, and rake of plane 1 .TP \fB7,8,9\fP: strike, dip, and rake of plane 2 .TP \fB10,11\fP: mantissa and exponent of moment in dyne-cm .TP \fB12,13\fP: longitude, latitude at which to place beach ball. Entries in these columns are necessary with the \fB\-C\fP option. Using (0,0) in columns 12 and 13 will plot the beach ball at the longitude, latitude given in columns 1 and 2. The \fB\-:\fP option will interchange the order of columns (1,2) and (12,13). .TP \fB14\fP: Text string to appear above the beach ball (optional). .RE .TP \fB\-Sm|d|z\fP\fIscale[/fontsize[/offset\fP[\fBu\fP]]] Seismic moment tensor (Harvard CMT, with zero trace). \fIscale\fP adjusts the scaling of the radius of the "beach ball", which will be proportional to the magnitude. Scale is the size for magnitude = 5 (that is scalar seismic moment = 4.0E23 dynes-cm) in inch (unless \fBc\fP, \fBi\fP, \fBm\fP, or \fBp\fP is appended). (\fB\-T\fP\fI0\fP option overlays best double couple transparently.) Use \fB\-Sm\fP to plot the Harvard CMT seismic moment tensor with zero trace. Use \fB\-Sd\fP to plot only the double couple part of moment tensor. Use \fB\-Sz\fP to plot the anisotropic part of moment tensor (zero trace). The color or shade of the compressive quadrants can be specified with the \fB\-G\fP option. The color or shade of the extensive quadrants can be specified with the \fB\-E\fP option. Parameters are expected to be in the following columns: .RS .TP \fB1,2\fP: longitude, latitude of event (\fB\-:\fP option interchanges order) .TP \fB3\fP: depth of event in kilometers .TP \fB4,5,6,7,8,9\fP: mrr, mtt, mff, mrt, mrf, mtf in 10*exponent dynes-cm .TP \fB10\fP: exponent .TP \fB11,12\fP: longitude, latitude at which to place beach ball. Entries in these columns are necessary with the \fB\-C\fP option. Using (0,0) in columns 11 and 12 will plot the beach ball at the longitude, latitude given in columns 1 and 2. The \fB\-:\fP option will interchange the order of columns (1,2) and (11,12). .TP \fB13\fP: Text string to appear above the beach ball (optional). .RE .TP \fB\-Sp\fP\fIscale[/fontsize[/offset\fP[\fBu\fP]]] Focal mechanisms given with partial data on both planes. \fIscale\fP adjusts the scaling of the radius of the "beach ball", which will be proportional to the magnitude. Scale is the size for magnitude = 5 in inch (unless \fBc\fP, \fBi\fP, \fBm\fP, or \fBp\fP is appended). The color or shade of the compressive quadrants can be specified with the \fB\-G\fP option. The color or shade of the extensive quadrants can be specified with the \fB\-E\fP option. Parameters are expected to be in the following columns: .RS .TP \fB1,2\fP: longitude, latitude of event (\fB\-:\fP option interchanges order) .TP \fB3\fP: depth of event in kilometers .TP \fB4,5\fP: strike, dip of plane 1 .TP \fB6\fP: strike of plane 2 .TP \fB7\fP: must be -1/+1 for a normal/inverse fault .TP \fB8\fP: magnitude .TP \fB9,10\fP: longitude, latitude at which to place beach ball. Entries in these columns are necessary with the \fB\-C\fP option. Using (0,0) in columns 9 and 10 will plot the beach ball at the longitude, latitude given in columns 1 and 2. The \fB\-:\fP option will interchange the order of columns (1,2) and (9,10). .TP \fB11\fP: Text string to appear above the beach ball (optional). .RE .TP \fB\-Sx|y|t\fP\fIscale[/fontsize[/offset\fP[\fBu\fP]]] Principal axis. \fIscale\fP adjusts the scaling of the radius of the "beach ball", which will be proportional to the magnitude. Scale is the size for magnitude = 5 (that is seismic scalar moment = 4*10e+23 dynes-cm) in inch (unless \fBc\fP, \fBi\fP, \fBm\fP, or \fBp\fP is appended). (\fB\-T\fP\fI0\fP option overlays best double couple transparently.) Use \fB\-Sx\fP to plot standard Harvard CMT. Use \fB\-Sy\fP to plot only the double couple part of moment tensor. Use \fB\-St\fP to plot zero trace moment tensor. The color or shade of the compressive quadrants can be specified with the \fB\-G\fP option. The color or shade of the extensive quadrants can be specified with the \fB\-E\fP option. Parameters are expected to be in the following columns: .RS .TP \fB1,2\fP: longitude, latitude of event (\fB\-:\fP option interchanges order) .TP \fB3\fP: depth of event in kilometers .TP \fB4,5,6,7,8,9,10,11,12\fP: value (in 10*exponent dynes-cm), azimuth, plunge of T, N, P axis. .TP \fB13\fP: exponent .TP \fB14,15\fP: longitude, latitude at which to place beach ball. Entries in these columns are necessary with the \fB\-C\fP option. Using (0,0) in columns 14 and 15 will plot the beach ball at the longitude, latitude given in columns 1 and 2. The \fB\-:\fP option will interchange the order of columns (1,2) and (14,15). .TP \fB16\fP: Text string to appear above the beach ball (optional). .RE .LP .SH OPTIONS No space between the option flag and the associated arguments. .TP \fB\-B\fP Sets map boundary annotation and tickmark intervals; see the \fBpsbasemap\fP man page for all the details. .TP \fB\-C\fP[\fIpen\fP][\fBP\fP\fIpointsize\fP] Offsets focal mechanisms to the longitude, latitude specified in the last two columns of the input file before the (optional) text string. A small circle is plotted at the initial location and a line connects the beachball to the circle. Specify \fIpen\fP and/or \fIpointsize\fP to change the line style and/or size of the circle. [Defaults: \fIpen\fP width = 1, color = 0/0/0, texture = solid; \fIpointsize\fP 0]. .TP \fB\-D\fP\fIdepmin/depmax\fP Plots events between depmin and depmax. .TP \fB\-E\fP\fIfill\fP Selects filling of extensive quadrants. Usually white. Set the shade (0\-255) or color (r/g/b) [Default is 255/255/255]. .br .TP \fB\-G\fP\fIfill\fP Selects filling of focal mechanisms. By convention, the compressional quadrants of the focal mechanism beach balls are shaded. Set the shade (0\-255) or color (r/g/b) [Default is 0/0/0]. .TP \fB\-H\fP Input file(s) has header record(s). If used, the default number of header records is \fBN_HEADER_RECS\fP. Use \fB\-Hi\fP if only input data should have header records [Default will write out header records if the input data have them]. Blank lines and lines starting with # are always skipped. .TP \fB\-K\fP More \fIPostScript\fP code will be appended later [Default terminates the plot system]. .TP \fB\-L\fP[\fIpen\fP] Draws the "beach ball" outline with \fIpen\fP attributes. [Defaults width = 1, color = 0/0/0, texture = solid]. .TP \fB\-M\fP Use the same size for any magnitude. Size is given with \fB\-S\fP. .br .TP \fB\-N\fP \fRDoes \fBNOT \fRskip symbols that fall outside frame boundary specified by \fB\-R\fP [Default plots symbols inside frame only]. .TP \fB\-O\fP Selects Overlay plot mode [Default initializes a new plot system]. .TP \fB\-P\fP Selects Portrait plotting mode [Default is Landscape, see \fBgmtdefaults\fP to change this]. .TP \fB\-T\fP[\fInum_of_planes\fP] \fRPlots the nodal planes and outlines the bubble which is transparent. If \fInum_of_planes\fP is .br \fI0\fP: both nodal planes are plotted; \fI1\fP: only the first nodal plane is plotted; \fI2\fP: only the second nodal plane is plotted. .TP \fB\-U\fP Draw Unix System time stamp on plot. By adding \fIjust/dx/dy/\fP, the user may specify the justification of the stamp and where the stamp should fall on the page relative to lower left corner of the plot. For example, BL/0/0 will align the lower left corner of the time stamp with the lower left corner of the plot. Optionally, append a \fIlabel\fP, or \fBc\fP (which will plot the command string.). The \fBGMT\fP parameters \fBUNIX_TIME\fP, \fBUNIX_TIME_POS\fP, and \fBUNIX_TIME_FORMAT\fP can affect the appearance; see the \fBgmtdefaults\fP man page for details. The time string will be in the locale set by the environment variable \fBTZ\fP (generally local time). .TP \fB\-V\fP Selects verbose mode, which will send progress reports to stderr [Default runs "silently"]. .TP \fB\-W\fP .SS SPECIFYING PENS .TP \fIpen\fP The attributes of lines and symbol outlines as defined by \fIpen\fP is a comma delimetered list of \fIwidth\fP, \fIcolor\fP and \fItexture\fP, each of which is optional. \fIwidth\fP can be indicated as a measure (points, centimeters, inches) or as \fBfaint\fP, \fBthin\fP[\fBner\fP|\fBnest\fP], \fBthick\fP[\fBer\fP|\fBest\fP], \fBfat\fP[\fBter\fP|\fBtest\fP], or \fBobese\fP. \fIcolor\fP specifies a gray shade or color (see SPECIFYING COLOR below). \fItexture\fP is a combination of dashes `-' and dots `.'. .TP \fB\-X\fP \fB\-Y\fP Shift plot origin relative to the current origin by (\fIx-shift,y-shift\fP) and optionally append the length unit (\fBc\fP, \fBi\fP, \fBm\fP, \fBp\fP). You can prepend \fBa\fP to shift the origin back to the original position after plotting, or prepend \fBr\fP [Default] to reset the current origin to the new location. If \fB\-O\fP is used then the default (\fIx-shift,y-shift\fP) is (0,0), otherwise it is (r1i, r1i) or (r2.5c, r2.5c). Alternatively, give \fBc\fP to align the center coordinate (x or y) of the plot with the center of the page based on current page size. .TP \fB\-Z\fP\fIcptfile\fP Give a color palette file and let compressive part color be determined by the z-value in the third column. .br .TP \fB\-z\fP \fROverlay zero trace moment tensor. .br .TP \fB\-a\fP[\fIsize\fP/[\fIP_axis_symbol\fP[\fIT_axis_symbol\fP]]] Computes and plots P and T axes with symbols. Optionally specify \fIsize\fP and (separate) P and T axis symbols from the following: (\fBc\fP) circle, (\fBd\fP) diamond, (\fBh\fP) hexagon, (\fBi\fP) inverse triangle, (\fBp\fP) point, (\fBs\fP) square, (\fBt\fP) triangle, (\fBx\fP) cross. [Defaults: 0.2\fBc\fP/\fBcc\fP or 0.08\fBi\fP/\fBcc\fP.] .br .TP \fB\-e\fP\fIfill\fP \fRSelects filling of T axis symbol. Set the shade (0\-255) or color (r/g/b). Default is white. .br .TP \fB\-g\fP\fIfill\fP Selects filling of P axis symbol. Set the shade (0\-255) or color (r/g/b). Default black. .br .TP \fB-o\fP Use the \fBpsvelomeca\fP input format without depth in the third column. .br .TP \fB\-p\fP[\fIpen\fP] Draws the P axis outline using default pen (see \fB\-W\fP), or sets pen attributes. .br .TP \fB\-t\fP[\fIpen\fP] Draws the T axis outline using default pen (see \fB\-W\fP), or sets pen attributes. .TP \fB\-:\fP Toggles between (longitude,latitude) and (latitude,longitude) input and/or output. [Default is (longitude,latitude)]. Append \fBi\fP to select input only or \fBo\fP to select output only. [Default affects both]. .TP \fB\-c\fP Specifies the number of plot copies. [Default is 1]. .SH EXAMPLES .sp The following file should give a normal-faulting CMT mechanism: .br \fBpsmeca\fP \fB\-R\fP239/240/34/35.2 \fB\-Jm\fP4 \fB\-Sc\fP0.4 \fB\-H\fP1 <! test.ps .br lon lat depth str dip slip st dip slip mant exp plon plat .br 239.384 34.556 12. 180 18 -88 0 72 -90 5.5 0 0 0 .br END .br .sp .SH "SEE ALSO" .IR GMT (1), .IR psbasemap (1), .IR psxy (1) .SH REFERENCES .br \fRBomford, G., Geodesy, 4th ed., Oxford University Press, 1980. .br Aki, K. and P. Richards, Quantitative Seismology, Freeman, 1980. .br F. A. Dahlen and Jeroen Tromp, Theoretical Seismology, Princeton, 1998, p.167. .br Cliff Frohlich, Cliff's Nodes Concerning Plotting Nodal Lines for P, Sh and Sv\"' .br Seismological Research Letters, Volume 67, Number 1, January-February, 1996 .br Thorne Lay, Terry C. Wallace, Modern Global Seismology, Academic Press, 1995, p.384. .br W.H. Press, S.A. Teukolsky, W.T. Vetterling, B.P. Flannery, Numerical Recipes in C, Cambridge University press (routine jacobi) .SH AUTHORS \fRGenevieve Patau .br CNRS UMR 7580 .br Seismology Dept. .br Institut de Physique du Globe de Paris .br (patau@.ipgp.jussieu.fr)