pssegyz − Create imagemasked postscript from SEGY file


pssegyz SEGYfile −Jparameters −Jz|Zparameters −Rwest/east/south/north[/zmin/zmax][r] −Ddeviation −F[rgb|gray]|−W [ −Bbias ] [ −Cclip ] [ −Eazim/elev[+wlon/lat[/z]][+vx0/y0] ] [ −I ] [ −K ] [ −Lnsamp ] [ −Mntrace ] [ −N ] [ −O ] [ −P ] [ −Sheader_x/header_y ] [ −Uredvel ] [ −V ] [ −Xscale ] [ −Ysample_int ] [ −Z ]


pssegyz reads a native (IEEE) format SEGY file and produces a PostScript image of the seismic data. The imagemask operator is used so that the seismic data are plotted as a 1-bit deep bitmap in a single (user-specified) color or gray shade, with a transparent background. The bitmap resolution is taken from the current GMT defaults. The seismic traces may be plotted at their true locations using information in the trace headers (in which case order of the traces in the file is not significant). Standard GMT geometry routines are used so that in principle any map projection may be used, however it is likely that the geographic projections will lead to unexpected results. Beware also that some parameters have non-standard meanings, and a couple of the options for pssegy are not available in pssegyz. Note that the order of operations before the seismic data are plotted is deviation*[clip]([bias]+[normalize](sample value)). Deviation determines how far in the plot coordinates a [normalized][biased][clipped] sample value of 1 plots from the trace location. The SEGY file should be a disk image of the tape format (ie 3200 byte text header, which is ignored, 400 byte binary reel header, and 240 byte header for each trace) with samples as native real*4 (IEEE real on all the platforms to which I have access)

Seismic data set to be imaged


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 MEASURE_UNIT setting in .gmtdefaults4, but this can be overridden on the command line by appending c, i, or m to the scale/width value. When central meridian is optional, default is center of longitude range on −R option. Default standard parallel is the equator. For map height, max dimension, or min dimension, append h, +, or - to the width, respectively.

More details can be found in the psbasemap man pages.


−Jclon0/lat0/scale (Cassini)
/[lon0/[lat0/]]scale (Cylindrical Stereographic)
[lon0/]scale (Miller)
[lon0/[lat0/]]scale (Mercator)
lon0/lat0/scale (Mercator - Give meridian and standard parallel)
[a]lon0/lat0/azimuth/scale (Oblique Mercator - point and azimuth)
[b]lon0/lat0/lon1/lat1/scale (Oblique Mercator - two points)
lon0/lat0/lonp/latp/scale (Oblique Mercator - point and pole)
[lon0/[lat0/]]scale (Cylindrical Equidistant)
lon0/[lat0/]scale (TM - Transverse Mercator)
zone/scale (UTM - Universal Transverse Mercator)
[lon0/[lat0/]]scale (Cylindrical Equal-Area)


−Jblon0/lat0/lat1/lat2/scale (Albers)
lon0/lat0/lat1/lat2/scale (Conic Equidistant)
lon0/lat0/lat1/lat2/scale (Lambert Conic Conformal)
/[lon0/[lat0/]]scale ((American) Polyconic)


−Jalon0/lat0[/horizon]/scale (Lambert Azimuthal Equal-Area)
lon0/lat0[/horizon]/scale (Azimuthal Equidistant)
lon0/lat0[/horizon]/scale (Gnomonic)
lon0/lat0[/horizon]/scale (Orthographic)
lon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale (General Perspective).
lon0/lat0[/horizon]/scale (General Stereographic)


−Jh[lon0/]scale (Hammer)
[lon0/]scale (Sinusoidal)
[lon0/]scale (Eckert IV)
[s][lon0/]scale (Eckert VI)
[lon0/]scale (Robinson)
[lon0/]scale (Winkel Tripel)
[lon0/]scale (Van der Grinten)
[lon0/]scale (Mollweide)


−Jp[a]scale[/origin][r|z] (Polar coordinates (theta,r))
x-scale[d|l|ppow|t|T][/y-scale[d|l|ppow|t|T]] (Linear, log, and power scaling)


west, east, south, and north specify the Region of interest, and you may specify them in decimal degrees or in [+-]dd:mm[][W|E|S|N] format. Append r if lower left and upper right map coordinates are given instead of w/e/s/n. The two shorthands −Rg and −Rd 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 −R settings (and grid spacing, if applicable) are copied from the grid.


gives the deviation in X units of the plot for 1.0 on the scaled trace, This may be a single number (applied equally in X and Y directions) or devX/devY


Sets the viewpoint’s azimuth and elevation (for perspective view) [180/90]. For frames used for animation, you may want to append + to fix the center of your data domain (or specify a particular world coordinate point with +wlon0/lat[/z]) which will project to the center of your page size (or specify the coordinates of the projected view point with +vx0/y0).


Fill trace (variable area, defaults to filling positive). rgb or gray gives the color with which the imagemask is filled.


Draw wiggle trace.

You must specify at least one of −W and −F.


No space between the option flag and the associated arguments.


Flip the default byte-swap state (default assumes data have a bigendian byte-order).


Bias to apply to data (added to sample values).


Sample value at which to clip data (clipping is applied to both positive and negative values).


Fill negative rather than positive excursions.


More PostScript code will be appended later [Default terminates the plot system].


Override number of samples per trace in reel header (program attempts to determine number of samples from each trace header if possible to allow for variable length traces).


Override number of traces specified in reel header. Program detects end of file (relatively) gracefully, but this parameter limits number of traces that the program attempts to read.


Normalize trace by dividing by rms amplitude over full trace length.


Selects Overlay plot mode [Default initializes a new plot system].


Selects Portrait plotting mode [Default is Landscape, see gmtdefaults to change this].


Read trace locations from trace headers: header is either c for CDP, o for offset, b<num> to read a long starting at byte <num> in the header (first byte corresponds to num=0), or a number to fix the location.

First parameter for x, second for y. Default has X and Y given by trace number.


Apply reduction velocity by shifting traces upwards by redvel/|offset|. Negative velocity removes existing reduction. Units should be consistent with offset in trace header and sample interval.


Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].


Multiply trace locations by scale before plotting.


Override sample interval in reel header.


Do not plot traces with zero rms amplitude.


To plot the SEGY file wa1.segy with normalized traces plotted at true offset locations, clipped at +-3 and with wiggle trace and positive variable area shading in black, use

pssegyz wa1.segy −JX 5/−5 −D 1 −Jz 0.05 −E 180/5 −R 0/100/0/10/0/10 −C 3 −N −S o −W −F black >


Variable area involves filling four-sided figures of distressing generality. I know that some of the more complex degenerate cases are not dealt with correctly or at all; the incidence of such cases increases as viewing angles become more oblique, and particularly as the viewing elevation increases. Wiggle-trace plotting is not affected.


GMT(1), pssegy(1)