.\" Man page generated from reStructuredText. . .TH "PSBASEMAP" "1gmt" "May 21, 2019" "5.4.5" "GMT" .SH NAME psbasemap \- Plot PostScript base maps . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fBpsbasemap\fP \fB\-J\fP\fIparameters\fP \fB\-R\fP\fIwest\fP/\fIeast\fP/\fIsouth\fP/\fInorth\fP[/\fIzmin\fP/\fIzmax\fP][\fB+r\fP] [ \fB\-B\fP[\fBp\fP|\fBs\fP]\fIparameters\fP ] [ \fB\-A\fP[\fIfile\fP] ] [ \fB\-D\fP\fIinsert box\fP ] [ \fB\-F\fP\fIbox\fP ] [ \fB\-K\fP ] [ \fB\-J\fP\fBz\fP|\fBZ\fP\fIparameters\fP ] [ \fB\-L\fP\fIscalebar\fP ] [ \fB\-O\fP ] [ \fB\-P\fP ] [ \fB\-U\fP[\fIstamp\fP] ] [ \fB\-T\fP\fIrose\fP ] [ \fB\-T\fP\fImag_rose\fP ] [ \fB\-V\fP[\fIlevel\fP] ] [ \fB\-X\fP\fIx_offset\fP ] [ \fB\-Y\fP\fIy_offset\fP ] [ \fB\-f\fPflags ] [ \fB\-p\fPflags ] [ \fB\-t\fPtransp ] .sp \fBNote:\fP No space is allowed between the option flag and the associated arguments. .SH DESCRIPTION .sp \fBpsbasemap\fP creates PostScript code that will produce a basemap. Several map projections are available, and the user may specify separate tick\-mark intervals for boundary annotation, ticking, and [optionally] gridlines. A simple map scale or directional rose may also be plotted. At least one of the options \fB\-B\fP, \fB\-L\fP, or \fB\-T\fP must be specified. .SH REQUIRED ARGUMENTS .INDENT 0.0 .TP \fB\-J\fP\fIparameters\fP (more ...) Select map projection. .UNINDENT .INDENT 0.0 .TP \fB\-R\fP\fIxmin\fP/\fIxmax\fP/\fIymin\fP/\fIymax\fP[\fB+r\fP][\fB+u\fP\fIunit\fP] (more ...) Specify the region of interest. .UNINDENT .sp For perspective view \fBp\fP, optionally append /\fIzmin\fP/\fIzmax\fP\&. (more ...) .SH OPTIONAL ARGUMENTS .INDENT 0.0 .TP \fB\-A\fP[\fIfile\fP] No plotting is performed. Instead, we determine the geographical coordinates of the polygon outline for the (possibly oblique) rectangular map domain. The plot domain must be given via \fB\-R\fP and \fB\-J\fP, with no other options allowed. The sampling interval is controlled via MAP_LINE_STEP parameter. The coordinates are written to \fIfile\fP or to standard output if no file is specified. .UNINDENT .INDENT 0.0 .TP \fB\-B\fP[\fBp\fP|\fBs\fP]\fIparameters\fP (more ...) Set map boundary frame and axes attributes. .UNINDENT .INDENT 0.0 .TP \fB\-D\fP[\fIunit\fP]\fIxmin/xmax/ymin/ymax\fP[\fBr\fP][\fB+s\fP\fIfile\fP][\fB+t\fP] | \fB\-D\fP[\fBg\fP|\fBj\fP|\fBJ\fP|\fBn\fP|\fBx\fP]\fIrefpoint\fP\fB+w\fP\fIwidth\fP[/\fIheight\fP][\fB+j\fP\fIjustify\fP][\fB+o\fP\fIdx\fP[/\fIdy\fP]][\fB+s\fP\fIfile\fP][\fB+t\fP] Draw a simple map insert box on the map. Requires \fB\-F\fP\&. Specify the box in one of three ways: (a) Give \fIwest/east/south/north\fP of geographic rectangle bounded by parallels and meridians; append \fBr\fP if the coordinates instead are the lower left and upper right corners of the desired rectangle. (b) Give \fBu\fP\fIxmin/xmax/ymin/ymax\fP of bounding rectangle in projected coordinates (here, \fBu\fP is the coordinate unit). (c) Give the reference point on the map for the insert using one of four coordinate systems: (1) Use \fB\-Dg\fP for map (user) coordinates, (2) use \fB\-Dj\fP or \fB\-DJ\fP for setting \fIrefpoint\fP via a 2\-char justification code that refers to the (invisible) map domain rectangle, (3) use \fB\-Dn\fP for normalized (0\-1) coordinates, or (4) use \fB\-Dx\fP for plot coordinates (inches, cm, etc.). Append \fB+w\fP\fIwidth\fP[/\fIheight\fP] of bounding rectangle or box in plot coordinates (inches, cm, etc.). By default, the anchor point on the scale is assumed to be the bottom left corner (BL), but this can be changed by appending \fB+j\fP followed by a 2\-char justification code \fIjustify\fP (see pstext). Note: If \fB\-Dj\fP is used then \fIjustify\fP defaults to the same as \fIrefpoint\fP, if \fB\-DJ\fP is used then \fIjustify\fP defaults to the mirror opposite of \fIrefpoint\fP\&. Add \fB+o\fP to offset the inset fig by \fIdx\fP/\fIdy\fP away from the \fIrefpoint\fP point in the direction implied by \fIjustify\fP (or the direction implied by \fB\-Dj\fP or \fB\-DJ\fP). If you need access to the placement of the lower left corner of the map insert and its dimensions in the current map unit, use \fB+s\fP\fIfile\fP to write this information to \fIfile\fP\&. Alternatively, you may append \fB+t\fP to translate the plot origin to the lower left corner of the map insert. Specify insert box attributes via the \fB\-F\fP option [outline only]. .UNINDENT .INDENT 0.0 .TP \fB\-F\fP[\fBd\fP|\fBl\fP|\fBt\fP][\fB+c\fP\fIclearances\fP][\fB+g\fP\fIfill\fP][\fB+i\fP[[\fIgap\fP/]\fIpen\fP]][\fB+p\fP[\fIpen\fP]][\fB+r\fP[\fIradius\fP]][\fB+s\fP[[\fIdx\fP/\fIdy\fP/][\fIshade\fP]]] Without further options, draws a rectangular border around any map insert (\fB\-D\fP), map scale (\fB\-L\fP) or map rose (\fB\-T\fP) using MAP_FRAME_PEN; specify a different pen with \fB+p\fP\fIpen\fP\&. Add \fB+g\fP\fIfill\fP to fill the logo box [no fill]. Append \fB+c\fP\fIclearance\fP where \fIclearance\fP is either \fIgap\fP, \fIxgap\fP/\fIygap\fP, or \fIlgap\fP/\fIrgap\fP/\fIbgap\fP/\fItgap\fP where these items are uniform, separate in x\- and y\-direction, or individual side spacings between logo and border. Append \fB+i\fP to draw a secondary, inner border as well. We use a uniform \fIgap\fP between borders of 2\fBp\fP and the MAP_DEFAULT_PEN unless other values are specified. Append \fB+r\fP to draw rounded rectangular borders instead, with a 6\fBp\fP corner radius. You can override this radius by appending another value. Finally, append \fB+s\fP to draw an offset background shaded region. Here, \fIdx\fP/\fIdy\fP indicates the shift relative to the foreground frame [4\fBp\fP/\-4\fBp\fP] and \fIshade\fP sets the fill style to use for shading [gray50]. Used in combination with \fB\-D\fP, \fB\-L\fP or \fB\-T\fP\&. To specify separate parameters for the various map features, append \fBd\fP|\fBl\fP|\fBt\fP to \fB\-F\fP to specify panel parameters for just that panel [Default uses the same panel parameters for all selected map features]. .UNINDENT .INDENT 0.0 .TP \fB\-Jz\fP|\fBZ\fP\fIparameters\fP (more ...) Set z\-axis scaling; same syntax as \fB\-Jx\fP\&. .UNINDENT .INDENT 0.0 .TP \fB\-K\fP (more ...) Do not finalize the PostScript plot. .UNINDENT .INDENT 0.0 .TP \fB\-L\fP[\fBg\fP|\fBj\fP|\fBJ\fP|\fBn\fP|\fBx\fP]\fIrefpoint\fP\fB+c\fP[\fIslon\fP/]\fIslat\fP\fB+w\fP\fIlength\fP[\fBe\fP|\fBf\fP|\fBk\fP|\fBM\fP|\fBn\fP|\fBu\fP][\fB+a\fP\fIalign\fP][\fB+f\fP][\fB+j\fP\fIjustify\fP][\fB+l\fP[\fIlabel\fP]][\fB+o\fP\fIdx\fP[/\fIdy\fP]][\fB+u\fP] Draws a simple map scale centered on the reference point specified using one of four coordinate systems: (1) Use \fB\-Lg\fP for map (user) coordinates, (2) use \fB\-Lj\fP or \fB\-LJ\fP for setting \fIrefpoint\fP via a 2\-char justification code that refers to the (invisible) map domain rectangle, (3) use \fB\-Ln\fP for normalized (0\-1) coordinates, or (4) use \fB\-Lx\fP for plot coordinates (inches, cm, etc.). Scale is calculated for latitude \fIslat\fP (optionally supply longitude \fIslon\fP for oblique projections [Default is central meridian]), \fIlength\fP is in km, or append unit from \fBe\fP|\fBf\fP|\fBk\fP|\fBM\fP|\fBn\fP|\fBu\fP\&. Change the label alignment with \fB+a\fP\fIalign\fP (choose among \fBl\fP(eft), \fBr\fP(ight), \fBt\fP(op), and \fBb\fP(ottom)). Append \fB+f\fP to get a "fancy" scale [Default is plain]. By default, the anchor point on the map scale is assumed to be the center of the scale (MC), but this can be changed by appending \fB+j\fP followed by a 2\-char justification code \fIjustify\fP (see pstext for list and explanation of codes). Append \fB+l\fP to select the default label, which equals the distance unit (meter, foot, km, mile, nautical mile, US survey foot) and is justified on top of the scale [t]. Change this by giving your own label (append \fB+l\fP\fIlabel\fP). Add \fB+o\fP to offset the map scale by \fIdx\fP/\fIdy\fP away from the \fIrefpoint\fP in the direction implied by \fIjustify\fP (or the direction implied by \fB\-Dj\fP or \fB\-DJ\fP). Select \fB+u\fP to append the unit to all distance annotations along the scale (for the plain scale, \fB+u\fP will instead select the unit to be appended to the distance length). Note: Use FONT_LABEL to change the label font and FONT_ANNOT_PRIMARY to change the annotation font. The height of the map scale is controlled by MAP_SCALE_HEIGHT, and the pen thickness is set by MAP_TICK_PEN_PRIMARY\&. See \fB\-F\fP on how to place a panel behind the scale. .UNINDENT .INDENT 0.0 .TP \fB\-O\fP (more ...) Append to existing PostScript plot. .UNINDENT .INDENT 0.0 .TP \fB\-P\fP (more ...) Select "Portrait" plot orientation. .UNINDENT .INDENT 0.0 .TP \fB\-Td\fP[\fBg\fP|\fBj\fP|\fBJ\fP|\fBn\fP|\fBx\fP]\fIrefpoint\fP\fB+w\fP\fIwidth\fP[\fB+f\fP[\fIlevel\fP]][\fB+j\fP\fIjustify\fP][\fB+l\fP\fIw,e,s,n\fP][\fB+o\fP\fIdx\fP[/\fIdy\fP]] \fB\-Td\fP draws a map directional rose on the map at the location defined by the reference and anchor points: Give the reference point on the map for the rose using one of four coordinate systems: (1) Use \fBg\fP for map (user) coordinates, (2) use \fBj\fP for setting \fIrefpoint\fP via a 2\-char justification code that refers to the (invisible) map domain rectangle, (3) use \fBn\fP for normalized (0\-1) coordinates, or (4) use \fBx\fP for plot coordinates (inches, cm, etc.) [Default]. You can offset the reference point by \fIdx\fP/\fIdy\fP in the direction implied by \fIjustify\fP\&. By default, the anchor point on the scale is assumed to be the center of the rose (MC), but this can be changed by appending \fB+j\fP followed by a 2\-char justification code \fIjustify\fP (see pstext for list and explanation of codes). Note: If \fB\-Dj\fP is used then \fIjustify\fP defaults to the same as \fIrefpoint\fP, if \fB\-DJ\fP is used then \fIjustify\fP defaults to the mirror opposite of \fIrefpoint\fP\&. Add \fB+o\fP to offset the color scale by \fIdx\fP/\fIdy\fP away from the \fIrefpoint\fP in the direction implied by \fIjustify\fP (or the direction implied by \fB\-Dj\fP or \fB\-DJ\fP). Append \fB+w\fP\fIwidth\fP to set the width of the rose in plot coordinates (in inches, cm, or points). Add \fB+f\fP to get a "fancy" rose, and specify in \fIlevel\fP what you want drawn. The default [1] draws the two principal E\-W, N\-S orientations, 2 adds the two intermediate NW\-SE and NE\-SW orientations, while 3 adds the eight minor orientations WNW\-ESE, NNW\-SSE, NNE\-SSW, and ENE\-WSW. Label the cardinal points W,E,S,N by adding \fB+l\fP and append your own four comma\-separated strings to override the default. Skip a specific label by leaving it blank. See Placing\-dir\-map\-roses and \fB\-F\fP on how to place a panel behind the scale. .UNINDENT .sp \fB\-Tm\fP[\fBg\fP|\fBj\fP|\fBJ\fP|\fBn\fP|\fBx\fP]\fIrefpoint\fP\fB+w\fP\fIwidth\fP[\fB+d\fP\fIdec\fP[/\fIdlabel\fP]]][\fB+i\fP\fIpen\fP][\fB+j\fP\fIjustify\fP][\fB+l\fP\fIw,e,s,n\fP][\fB+p\fP\fIpen\fP][\fB+t\fP\fIints\fP][\fB+o\fP\fIdx\fP[/\fIdy\fP]] .INDENT 0.0 .INDENT 3.5 \fB\-Tm\fP draws a map magnetic rose on the map at the location defined by the reference and anchor points: Give the reference point on the map for the rose using one of four coordinate systems: (1) Use \fBg\fP for map (user) coordinates, (2) use \fBj\fP for setting \fIrefpoint\fP via a 2\-char justification code that refers to the (invisible) map domain rectangle, (3) use \fBn\fP for normalized (0\-1) coordinates, or (4) use \fBx\fP for plot coordinates (inches, cm, etc.) [Default]. You can offset the reference point by \fIdx\fP/\fIdy\fP in the direction implied by \fIjustify\fP\&. By default, the anchor point on the scale is assumed to be the center of the rose (MC), but this can be changed by appending \fB+j\fP followed by a 2\-char justification code \fIjustify\fP (see pstext for list and explanation of codes). Note: If \fB\-Dj\fP is used then \fIjustify\fP defaults to the same as \fIrefpoint\fP, if \fB\-DJ\fP is used then \fIjustify\fP defaults to the mirror opposite of \fIrefpoint\fP\&. Add \fB+o\fP to offset the color scale by \fIdx\fP/\fIdy\fP away from the \fIrefpoint\fP in the direction implied by \fIjustify\fP (or the direction implied by \fB\-Dj\fP or \fB\-DJ\fP). Append \fB+w\fP\fIwidth\fP to set the width of the rose in plot coordinates (in inches, cm, or points). Use \fB+d\fP to assign the magnetic declination and set \fIdlabel\fP, which is a label for the magnetic compass needle (Leave empty to format a label from \fIdec\fP, or give \- to bypass labeling). With \fB+d\fP, both directions to geographic and magnetic north are plotted [Default is geographic only]. If the north label is \fB*\fP then a north star is plotted instead of the north label. Annotation and two levels of tick intervals for both geographic and magnetic directions default to 30/5/1 degrees; override these settings by appending \fB+t\fP\fIints\fP, and append six slash\-separated intervals to set both the geographic (first three) and magnetic (last three) intervals. Label the cardinal points W,E,S,N by adding \fB+l\fP and append your own four comma\-separated strings to override the default. Skip a specific label by leaving it blank. Number GMT default parameters control pens, fonts, and color. See Placing\-dir\-map\-roses and \fB\-F\fP on how to place a panel behind the scale. .UNINDENT .UNINDENT .INDENT 0.0 .TP \fB\-U\fP[[\fIjust\fP]/\fIdx\fP/\fIdy\fP/][\fBc\fP|\fIlabel\fP] (more ...) Draw GMT time stamp logo on plot. .UNINDENT .INDENT 0.0 .TP \fB\-V\fP[\fIlevel\fP] (more ...) Select verbosity level [c]. .UNINDENT .sp \fB\-X\fP[\fBa\fP|\fBc\fP|\fBf\fP|\fBr\fP][\fIx\-shift\fP[\fBu\fP]] .INDENT 0.0 .TP \fB\-Y\fP[\fBa\fP|\fBc\fP|\fBf\fP|\fBr\fP][\fIy\-shift\fP[\fBu\fP]] (more ...) Shift plot origin. .UNINDENT .INDENT 0.0 .TP \fB\-f\fP[\fBi\fP|\fBo\fP]\fIcolinfo\fP (more ...) Specify data types of input and/or output columns. This applies only to the coordinates specified in the \fB\-R\fP option. .UNINDENT .INDENT 0.0 .TP \fB\-p\fP[\fBx\fP|\fBy\fP|\fBz\fP]\fIazim\fP[/\fIelev\fP[/\fIzlevel\fP]][\fB+w\fP\fIlon0\fP/\fIlat0\fP[/\fIz0\fP]][\fB+v\fP\fIx0\fP/\fIy0\fP] (more ...) Select perspective view. .UNINDENT .INDENT 0.0 .TP \fB\-t\fP[\fItransp\fP] (more ...) Set PDF transparency level in percent. .UNINDENT .INDENT 0.0 .TP \fB\-^\fP or just \fB\-\fP Print a short message about the syntax of the command, then exits (NOTE: on Windows just use \fB\-\fP). .TP \fB\-+\fP or just \fB+\fP Print an extensive usage (help) message, including the explanation of any module\-specific option (but not the GMT common options), then exits. .TP \fB\-?\fP or no arguments Print a complete usage (help) message, including the explanation of all options, then exits. .UNINDENT .SH EXAMPLES .sp The following section illustrates the use of the options by giving some examples for the available map projections. Note how scales may be given in several different ways depending on the projection. Also note the use of upper case letters to specify map width instead of map scale. .SH NON-GEOGRAPHICAL PROJECTIONS .SS Linear x\-y plot .sp To make a linear x/y frame with all axes, but with only left and bottom axes annotated, using xscale = yscale = 1.0, ticking every 1 unit and annotating every 2, and using xlabel = "Distance" and ylabel = "No of samples", use .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/9/0/5 \-Jx1 \-Bf1a2 \-Bx+lDistance \-By+l"No of samples" \-BWeSn > linear.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Log\-log plot .sp To make a log\-log frame with only the left and bottom axes, where the x\-axis is 25 cm and annotated every 1\-2\-5 and the y\-axis is 15 cm and annotated every power of 10 but has tick\-marks every 0.1, run .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R1/10000/1e20/1e25 \-JX25cl/15cl \-Bx2+lWavelength \-Bya1pf3+lPower \-BWS > loglog.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Power axes .sp To design an axis system to be used for a depth\-sqrt(age) plot with depth positive down, ticked and annotated every 500m, and ages annotated at 1 my, 4 my, 9 my etc, use .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/100/0/5000 \-Jx1p0.5/\-0.001 \-Bx1p+l"Crustal age" \-By500+lDepth > power.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Polar (theta,r) plot .sp For a base map for use with polar coordinates, where the radius from 0 to 1000 should correspond to 3 inch and with gridlines and ticks intervals automatically determined, use .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/360/0/1000 \-JP6i \-Bafg > polar.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH CYLINDRICAL MAP PROJECTIONS .SS Cassini .sp A 10\-cm\-wide basemap using the Cassini projection may be obtained by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R20/50/20/35 \-JC35/28/10c \-P \-Bafg \-B+tCassini > cassini.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Mercator [conformal] .sp A Mercator map with scale 0.025 inch/degree along equator, and showing the length of 5000 km along the equator (centered on 1/1 inch), may be plotted as .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R90/180/\-50/50 \-Jm0.025i \-Bafg \-B+tMercator \-Lx1i/1i+c0+w5000k > mercator.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Miller .sp A global Miller cylindrical map with scale 1:200,000,000 may be plotted as .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-Jj180/1:200000000 \-Bafg \-B+tMiller > miller.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Oblique Mercator [conformal] .sp To create a page\-size global oblique Mercator basemap for a pole at (90,30) with gridlines every 30 degrees, run .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/360/\-70/70 \-Joc0/0/90/30/0.064cd \-B30g30 \-B+t"Oblique Mercator" > oblmerc.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Transverse Mercator [conformal] .sp A regular Transverse Mercator basemap for some region may look like .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R69:30/71:45/\-17/\-15:15 \-Jt70/1:1000000 \-Bafg \-B+t"Survey area" \-P > transmerc.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Equidistant Cylindrical Projection .sp This projection only needs the central meridian and scale. A 25 cm wide global basemap centered on the 130E meridian is made by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R\-50/310/\-90/90 \-JQ130/25c \-Bafg \-B+t"Equidistant Cylindrical" > cyl_eqdist.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Universal Transverse Mercator [conformal] .sp To use this projection you must know the UTM zone number, which defines the central meridian. A UTM basemap for Indo\-China can be plotted as .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R95/5/108/20r \-Ju46/1:10000000 \-Bafg \-B+tUTM > utm.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Cylindrical Equal\-Area .sp First select which of the cylindrical equal\-area projections you want by deciding on the standard parallel. Here we will use 45 degrees which gives the Gall projection. A 9 inch wide global basemap centered on the Pacific is made by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JY180/45/9i \-Bafg \-B+tGall > gall.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH CONIC MAP PROJECTIONS .SS Albers [equal\-area] .sp A basemap for middle Europe may be created by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/90/25/55 \-Jb45/20/32/45/0.25c \-Bafg \-B+t"Albers Equal\-area" > albers.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Lambert [conformal] .sp Another basemap for middle Europe may be created by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/90/25/55 \-Jl45/20/32/45/0.1i \-Bafg \-B+t"Lambert Conformal Conic" > lambertc.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Equidistant .sp Yet another basemap of width 6 inch for middle Europe may be created by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R0/90/25/55 \-JD45/20/32/45/6i \-Bafg \-B+t"Equidistant conic" > econic.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Polyconic .sp A basemap for north America may be created by .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R\-180/\-20/0/90 \-JPoly/4i \-Bafg \-B+tPolyconic > polyconic.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH AZIMUTHAL MAP PROJECTIONS .SS Lambert [equal\-area] .sp A 15\-cm\-wide global view of the world from the vantage point \-80/\-30 will give the following basemap: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JA\-80/\-30/15c \-Bafg \-B+t"Lambert Azimuthal" > lamberta.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .sp Follow the instructions for stereographic projection if you want to impose rectangular boundaries on the azimuthal equal\-area map but substitute \fB\-Ja\fP for \fB\-Js\fP\&. .SS Equidistant .sp A 15\-cm\-wide global map in which distances from the center (here 125/10) to any point is true can be obtained by: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JE125/10/15c \-Bafg \-B+tEquidistant > equi.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Gnomonic .sp A view of the world from the vantage point \-100/40 out to a horizon of 60 degrees from the center can be made using the Gnomonic projection: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JF\-100/40/60/6i \-Bafg \-B+tGnomonic > gnomonic.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Orthographic .sp A global perspective (from infinite distance) view of the world from the vantage point 125/10 will give the following 6\-inch\-wide basemap: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JG125/10/6i \-Bafg \-B+tOrthographic > ortho.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS General Perspective .sp The \fB\-JG\fP option can be used in a more generalized form, specifying altitude above the surface, width and height of the view point, and twist and tilt. A view from 160 km above \-74/41.5 with a tilt of 55 and azimuth of 210 degrees, and limiting the viewpoint to 30 degrees width and height will product a 6\-inch\-wide basemap: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JG\-74/41.5/160/210/55/30/30/6i \-Bafg \-B+t"General Perspective" > genper.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Stereographic [conformal] .sp To make a polar stereographic projection basemap with radius = 12 cm to \-60 degree latitude, with plot title "Salinity measurements", using 5 degrees annotation/tick interval and 1 degree gridlines, run .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R\-45/45/\-90/\-60 \-Js0/\-90/12c/\-60 \-B5g1 \-B+t"Salinity measurements" > stereo1.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .sp To make a 12\-cm\-wide stereographic basemap for Australia from an arbitrary view point (not the poles), and use a rectangular boundary, we must give the pole for the new projection and use the \fB\-R\fP option to indicate the lower left and upper right corners (in lon/lat) that will define our rectangle. We choose a pole at 130/\-30 and use 100/\-45 and 160/\-5 as our corners. The command becomes .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R100/\-45/160/\-5r \-JS130/\-30/12c \-Bafg \-B+t"General Stereographic View" > stereo2.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH MISCELLANEOUS MAP PROJECTIONS .SS Hammer [equal\-area] .sp The Hammer projection is mostly used for global maps and thus the spherical form is used. To get a world map centered on Greenwich at a scale of 1:200000000, use .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rd \-Jh0/1:200000000 \-Bafg \-B+tHammer > hammer.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Sinusoidal [equal\-area] .sp To make a sinusoidal world map centered on Greenwich, with a scale along the equator of 0.02 inch/degree, use .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rd \-Ji0/0.02i \-Bafg \-B+tSinusoidal > sinus1.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .sp To make an interrupted sinusoidal world map with breaks at 160W, 20W, and 60E, with a scale along the equator of 0.02 inch/degree, run the following sequence of commands: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R\-160/\-20/\-90/90 \-Ji\-90/0.02i \-Bx30g30 \-By15g15 \-BWesn \-K > sinus_i.ps gmt psbasemap \-R\-20/60/\-90/90 \-Ji20/0.02i \-Bx30g30 \-By15g15 \-Bwesn \-O \-K \-X2.8i >> sinus_i.ps gmt psbasemap \-R60/200/\-90/90 \-Ji130/0.02i \-Bx30g30 \-By15g15 \-BwEsn \-O \-X1.6i >> sinus_i.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Eckert IV [equal\-area] .sp Pseudo\-cylindrical projection typically used for global maps only. Set the central longitude and scale, e.g., .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-Jkf180/0.064c \-Bafg \-B+t"Eckert IV" > eckert4.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Eckert VI [equal\-area] .sp Another pseudo\-cylindrical projection typically used for global maps only. Set the central longitude and scale, e.g., .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-Jks180/0.064c \-Bafg \-B+t"Eckert VI" > eckert6.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Robinson .sp Projection designed to make global maps "look right". Set the central longitude and width, e.g., .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rd \-JN0/8i \-Bafg \-B+tRobinson > robinson.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Winkel Tripel .sp Yet another projection typically used for global maps only. You can set the central longitude, e.g., .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R90/450/\-90/90 \-JR270/25c \-Bafg \-B+t"Winkel Tripel" > winkel.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Mollweide [equal\-area] .sp The Mollweide projection is also mostly used for global maps and thus the spherical form is used. To get a 25\-cm\-wide world map centered on the Dateline: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C psbasemap \-Rg \-JW180/25c \-Bafg \-B+tMollweide > mollweide.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Van der Grinten .sp The Van der Grinten projection is also mostly used for global maps and thus the spherical form is used. To get a 18\-cm\-wide world map centered on the Dateline: .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-Rg \-JV180/18c \-Bafg \-B+t"Van der Grinten" > grinten.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SS Arbitrary rotation .sp If you need to plot a map but have it rotated about a vertical axis then use the \fB\-p\fP option. For instance, the rotate the basemap below 90 degrees about an axis centered on the map, try .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt psbasemap \-R10/40/10/40 \-JM10c \-P \-Bafg \-B+t"I am rotated" \-p90+w25/25 \-Xc > rotated.ps .ft P .fi .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH CUSTOM LABELS OR INTERVALS .sp The \fB\-B\fP option sets up a regular annotation interval and the annotations derive from the corresponding \fIx\fP, \fIy\fP, or \fIz\fP coordinates. However, some applications requires special control on which annotations to plot and even replace the annotation with other labels. This is achieved by using \fBc\fP\fIintfile\fP in the \fB\-B\fP option, where \fIintfile\fP contains all the information about annotations, ticks, and even gridlines. Each record is of the form \fIcoord\fP \fItype\fP [\fIlabel\fP], where \fIcoord\fP is the coordinate for this annotation (or tick or gridline), \fItype\fP is one or more letters from \fBa\fP (annotation), \fBi\fP interval annotation, \fBf\fP tickmark, and \fBg\fP gridline. Note that \fBa\fP and \fBi\fP are mutually exclusive and cannot both appear in the same \fIintfile\fP\&. Both \fBa\fP and \fBi\fP requires you to supply a \fIlabel\fP which is used as the plot annotation. If not given then a regular formatted annotation based on the coordinate will occur. .SH RESTRICTIONS .sp For some projections, a spherical earth is implicitly assumed. A warning will notify the user if \fB\-V\fP is set. .SH BUGS .sp The \fB\-B\fP option is somewhat complicated to explain and comprehend. However, it is fairly simple for most applications (see examples). .SH SEE ALSO .sp gmt, gmt.conf, gmtcolors .SH COPYRIGHT 2019, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe .\" Generated by docutils manpage writer. .