NAME
psbasemap - To plot PostScript basemapsSYNOPSIS
psbasemap -Btickinfo -Jparameters -Rwest/east/south/north[r] [ -Eazimuth/elevation ] [ -Gfill ] [ -K ] [ -L[f][x]lon0/lat0/slat/length[m|n|k] ] [ -O ] [ -P ] [ -U[/dx/dy/][label] ] [ -V ] [ -Xx-shift ] [ -Yy-shift ] [ -X y-level ] [ -Zzlevel ] [ -ccopies ]DESCRIPTION
psbasemap creates PostScript code that will produce a basemap. Several map projections are available, and the user may specify separate tickmark intervals for boundary annotation, ticking, and [optionally] gridlines. A simple map scale may also be plotted.No space between the option flag and the associated arguments. Use upper case for the option flags and lower case for modifiers.
- -B
- Sets map boundary tickmark intervals. See psbasemap for details.
- -J
- Selects the map projection. The following character
determines the projection. If the character is upper case then the
argument(s) supplied as scale(s) is interpreted to be the map width (or
axis lengths), else the scale argument(s) is the map scale (see its
definition for each projection). UNIT is cm, inch, or m, depending on the
MEASURE_UNIT setting in .gmtdefaults, but this can be overridden on the
command line by appending c, i, or m to the scale/width values. Choose one
of the following projections (The E or C after projection
names stands for Equal-Area and Conformal, respectively):
Give projection center and scale (1:xxxx or UNIT/degree).
Give the central meridian and scale (1:xxxx or UNIT/degree).
-Jmscale or -JMwidth
Give scale along equator (1:xxxx or UNIT/degree).
-Jmlon0/lat0/scale or -JMlon0/lat0/width
Give central meridian, standard latitude and scale along parallel (1:xxxx or UNIT/degree).
-Joalon0/lat0/azimuth/scale or -JOalon0/lat0/azimuth/width
Set projection center, azimuth of oblique equator, and scale.
-Joblon0/lat0/lon1/lat1/scale or -JOblon0/lat0/lon1/lat1/scale
Set projection center, another point on the oblique equator, and scale.
-Joclon0/lat0/lonp/latp/scale or -JOclon0/lat0/lonp/latp/scale
Set projection center, pole of oblique projection, and scale.
Give scale along oblique equator (1:xxxx or UNIT/degree).
Give the central meridian and scale (1:xxxx or UNIT/degree).
-Jtlon0/scale or -JTlon0/width
Give the central meridian and scale (1:xxxx or UNIT/degree).
-Jtlon0/lat0/scale or -JTlon0/lat0/width
Give projection center and scale (1:xxxx or UNIT/degree).
Give the zone number (1-60) and scale (1:xxxx or UNIT/degree).
zones: prepend - or + to enforce southern or northern hemisphere conventions [northern if south > 0].
Give the central meridian, standard parallel, and scale (1:xxxx or UNIT/degree).
The standard parallel is typically one of these (but can be any value):
45 - The Peters projection
37.4 - The Trystan Edwards projection
30 - The Behrman projection
0 - The Lambert projection
lon0/lat0 specifies the projection center.
Give scale as 1:xxxx or radius/lat, where radius is distance
in UNIT from origin to the oblique latitude lat.
lon0/lat0 specifies the projection center.
Give scale as 1:xxxx or radius/lat, where radius is distance
in UNIT from origin to the oblique latitude lat.
lon0/lat0 specifies the projection center.
horizon specifies the max distance from projection center (in degrees, < 90).
Give scale as 1:xxxx or radius/lat, where radius is distance
in UNIT from origin to the oblique latitude lat.
lon0/lat0 specifies the projection center.
Give scale as 1:xxxx or radius/lat, where radius is distance
in UNIT from origin to the oblique latitude lat.
lon0/lat0 specifies the projection center.
Give scale as 1:xxxx (true at pole) or slat/1:xxxx (true at standard parallel slat)
or radius/lat (radius in UNIT from origin to the oblique latitude lat).
Give projection center, two standard parallels, and scale (1:xxxx or UNIT/degree).
Give projection center, two standard parallels, and scale (1:xxxx or UNIT/degree).
Give origin, 2 standard parallels, and scale along these (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give the central meridian and scale along equator (1:xxxx or UNIT/degree).
Give scale in UNIT/r-unit.
-Jxscale - Regular linear scaling.
-Jxscalel - Take log10 of values before scaling.
-Jxscaleppower - Raise values to power before scaling.
The ellipsoid used in the map projections is user-definable by editing the .gmtdefaults file in your home directory. 13 commonly used ellipsoids and a spheroid are currently supported, and users may also specify their own ellipsoid parameters (see man gmtdefaults for more details). GMT default is WGS-84. Several GMT parameters can affect the projection: ELLIPSOID, INTERPOLANT, MAP_SCALE_FACTOR, and MEASURE_UNIT; see the gmtdefaults man page for details.
- -R
- west, east, south, and north specify the Region of interest. To specify boundaries in degrees and minutes [and seconds], use the dd:mm[:ss] format. Append r if lower left and upper right map coordinates are given instead of wesn.
OPTIONS
- -E
- Sets the viewpoint's azimuth and elevation (for perspective view) [180/90]'
- -G
- Paint inside of basemap. [Default is no fill]. Specify the shade (0-255) or color (r/g/b, each in 0-255).
- -Jz
- Sets the vertical scaling (for 3-D maps). Same syntax as -Jx.
- -K
- More PostScript code will be appended later [Default terminates the plot system].
- -L
- Draws a simple map scale centered on lon0/lat0. Use -Lx to specify x/y position iinstead. Scale is calculated at latitude slat, length is in km [miles if m is appended; nautical miles if n is appended]. Use -Lf to get a "fancy" scale [Default is plain].
- -bo
- Selects binary output. Append s for single precision [Default is double].
- -P
- Selects Portrait plotting mode [GMT Default is Landscape, see gmtdefaults to change this].
- -U
- Draw Unix System time stamp on plot. User may specify where the lower left corner of the stamp should fall on the page relative to lower left corner of plot. Optionally, append a label, or c (which will plot the command string.). The GMT parameters UNIX_TIME and UNIX_TIME_POS can affect the appearance; see the gmtdefaults man page for details.
- -V
- Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].
- -X -Y
- Shift origin of plot by (x-shift,y-shift). Prepend a for absolute coordinates; the default ( r) will reset plot origin.
- -Z
- For 3-D projections: Sets the z-level of the basemap [0].
- -c
- Specifies the number of plot copies. [Default is 1]
EXAMPLES
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.NON-GEOGRAPHICAL PROJECTIONS
Linear x-y plot
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", trylog-log plot
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 anotated every power of 10 but has tickmarks every 0.1, trypower axes
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, tryPolar (theta,r) plot
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 every 30 degrees and 100 units, tryCYLINDRICAL MAP PROJECTIONS
Cassini
A 10 -cm-wide basemap using the Cassini projection may be obtained byMercator [conformal]
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 asMiller
A global Miller cylindrical map with scale 1:200,000,000, may be plotted asOblique Mercator [conformal]
To create a page-size global oblique Mercator basemap for a pole at (90,30) with gridlines every 30 degrees, tryTransverse Mercator [conformal]
A regular Transverse Mercator basemap for some region may look likeEquidistant Cylindrical Projection
This projection only needs the central meridian and scale. A 25 cm wide global basemap centered on the 130E meridian is made byUniversal Transverse Mercator [conformal]
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 asBasic Cylindrical [equal-area]
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 Peters projection. A 9 inch wide global basemap centered on the Pacific is made byCONIC MAP PROJECTIONS
Albers [equal-area]
A basemap for middle Europe may be created byLambert [conformal]
Another basemap for middle Europe may be created byEquidistant
Yet another basemap of width 6 inch for middle Europe may be created byAZIMUTHAL MAP PROJECTIONS
Lambert [equal-area]
A 15 -cm-wide global view of the world from the vantage point -80/-30 will give the following basemap:Equidistant
A 15 -cm-wide global map in which distances from the center (here 125/10) to any point is true can be obtained by:Gnomonic
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:Orthographic
A global perspective (from infinite distance) view of the world from the vantage point 125/10 will give the following 6 -inch-wide basemap:Stereographic [conformal]
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, tryMISCELLANEOUS MAP PROJECTIONS
Hammer [equal-aera]
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, trySinusoidal [equal-aera]
To make a sinusiodal world map centered on Greenwich, with a scale along the equator of 0.02 inch/degree, tryEckert IVI [equal-aera]
Pseudo-cylindrical projection typically used for global maps only. Set the central longitude and scale, e.g.,Eckert VI [equal-aera]
Another pseudo-cylindrical projection typically used for global maps only. Set the central longitude and scale, e.g.,Robinson
Projection designed to make global maps "look right". Set the central longitude and width, e.g.,Winkel Tripel
Yet another projection typically used for global maps only. You can set the central longitude, e.g.,Mollweide [equal-aera]
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, tryVan der Grinten
The Van der Grinten projection is also mostly used for global maps and thus the spherical form is used. To get a 10 -inch-wide world map centered on the Dateline, tryRESTRICTIONS
For some projections, a spherical earth is implicitly assumed. A warning will notify the user if -V is set.BUGS
The -B option is somewhat complicated to explain and comprehend. However, it is fairly simple for most applications (see examples).SEE ALSO
gmtdefaults(1gmt), gmt(1gmt)1 Jan 2004 |