PSCLIP(1gmt) | GMT | PSCLIP(1gmt) |
psclip - Initialize or terminate polygonal clip paths
psclip [ table ] -Jparameters
-C[n]
-Rwest/east/south/north[/zmin/zmax][+r]
[ -A[m|p|x|y] ] [
-B[p|s]parameters ]
-Jz|Zparameters ] [ -K ] [ -N ] [
-O ] [ -P ] [ -T ] [ -U[stamp] ] [
-V[level] ] [ -Xx_offset ] [
-Yy_offset ] [ -bibinary ] [ -dinodata ] [
-eregexp ] [ -fflags ] [ -ggaps ] [ -hheaders ]
[ -iflags ] [ -pflags ] [ -ttransp ] [
-:[i|o] ]
Note: No space is allowed between the option flag and the associated arguments.
psclip reads (x,y) file(s) [or standard input] and draws polygons that are activated as clipping paths. Several files may be read to create complex paths consisting of several non-connecting segments. Only marks that are subsequently drawn inside the clipping path will be shown. To determine what is inside or outside the clipping path, psclip uses the even-odd rule. When a ray drawn from any point, regardless of direction, crosses the clipping path segments an odd number of times, the point is inside the clipping path. If the number is even, the point is outside. The -N option, reverses the sense of what is the inside and outside of the paths by plotting a clipping path along the map boundary. After subsequent plotting, which will be clipped against these paths, the clipping may be deactivated by running psclip a second time with the -C option only.
For perspective view p, optionally append /zmin/zmax. (more ...)
-X[a|c|f|r][x-shift[u]]
To make an clipping PostScript file that will set up a complex clip area to which subsequent plotting will be confined, run:
gmt psclip my_region.xy -R0/40/0/40 -Jm0.3i -K > clip_mask_on.ps
To deactivate the clipping in an existing plotfile, run:
gmt psclip -C -O >> complex_plot.ps
gmt, grdmask, psbasemap, psmask
2019, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
May 21, 2019 | 5.4.5 |