Skip to content

Commit 999a3f3

Browse files
Update GMT argument in the azimuthal projections gallery to doc standards (#776)
1 parent 4967ab7 commit 999a3f3

File tree

6 files changed

+44
-35
lines changed

6 files changed

+44
-35
lines changed

examples/projections/azim/azim_equidistant.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
Azimuthal Equidistant
33
=====================
44
@@ -8,11 +8,13 @@
88
that lie within a certain distance or for comparing distances of different
99
locations relative to the projection center.
1010
11-
``elon0/lat0[/horizon]/scale`` or ``Elon0/lat0[/horizon]/width``
11+
**e**\ *lon0/lat0*\ [*/horizon*]\ */scale* or
12+
**E**\ *lon0/lat0*\ [*/horizon*]\ */width*
1213
13-
``lon0/lat0`` specifies the projection center. The optional parameter
14-
``horizon`` specifies the max distance to the projection center (i.e. the
15-
visibile portion of the rest of the world map) in degrees <= 180° (default 180°).
14+
The projection type is set with **e** or **E**, *lon0/lat0* specifies the projection
15+
center, and the optional parameter *horizon* specifies the max distance to the
16+
projection center (i.e. the visibile portion of the rest of the world map) in
17+
degrees <= 180° (default 180°). The size of the figure is set by *scale* or *width*.
1618
"""
1719
import pygmt
1820

examples/projections/azim/azim_general_perspective.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
"""
1+
r"""
22
General Perspective
33
===================
44
55
The general perspective projection imitates the view of the Earth from a finite
66
point in space. In a full view of the earth one third of its surface area can
77
be seen.
88
9-
``lon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale`` or ``width``
9+
**g**\ *lon0/lat0*\ */altitude*\ */azimuth*\ */tilt*\ */twist*\ */Width*\ */Height*\ */scale*
10+
or **G**\ *lon0/lat0*\ */altitude*\ */azimuth*\ */tilt*\ */twist*\ */Width*\ */Height*\ */width*
1011
11-
``lon0/lat0`` specifies the projection center, ``altitude`` the height
12+
The projection type is set with **g** or **G**.
13+
*lon0/lat0* specifies the projection center and *altitude* sets the height
1214
in km of the viewpoint above local sea level (If altitude is less than 10,
1315
then it is the distance from the center of the earth to the viewpoint in earth
14-
radii). With ``azimuth`` the direction (in degrees) in which you are looking is
15-
specified, measured clockwise from north. ``tilt`` is given in degrees and is the
16+
radii). With *azimuth* the direction (in degrees) in which you are looking is
17+
specified, measured clockwise from north. *tilt* is given in degrees and is the
1618
viewing angle relative to zenith. A tilt of 0° is looking straight down, 60° is
17-
looking 30° above horizon. ``twist`` is the clockwise rotation of the image (in
18-
degrees). ``Width`` and ``Height`` describe the viewport angle in degrees.
19+
looking 30° above horizon. *twist* is the clockwise rotation of the image (in
20+
degrees). *Width* and *Height* describe the viewport angle in degrees, and *scale*
21+
or *width* determine the size of the figure.
1922
2023
The example shows the coast of northern europe viewed from 250 km above sea
2124
level looking 30° from north at a tilt of 45°. The height and width of the

examples/projections/azim/azim_general_stereographic.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
General Stereographic
33
=====================
44
@@ -9,17 +9,13 @@
99
It is often used as a hemisphere map like the Lambert Azimuthal Equal Area
1010
projection.
1111
12-
``slon0/lat0[/horizon]/scale`` or ``Slon0/lat0[/horizon]/width``
13-
14-
``lon0/lat0`` specifies the projection center, the optional ``horizon`` parameter
15-
specifies the max distance from projection center (in degrees, < 180, default 90).
16-
17-
This projection can be displayed:
12+
**s**\ *lon0/lat0*\ [*/horizon*]\ */scale*
13+
or **S**\ *lon0/lat0*\ [*/horizon*\]\ */width*
1814
19-
* With map boundaries coinciding with longitude and latitude:
20-
``region`` specified via ``xmin/xmax/ymin/ymax``
21-
* As a map with rectangular boundaries: ``region`` specified as lower left and
22-
upper right corner ``xlleft/ylleft/xuright/yurightr``. Note the appended ``r``.
15+
The projection type is set with **s** or **S**. *lon0/lat0* specifies the
16+
projection center, the optional *horizon* parameter specifies the max distance from
17+
projection center (in degrees, < 180, default 90), and the *scale* or *width* sets the
18+
size of the figure.
2319
"""
2420
import pygmt
2521

examples/projections/azim/azim_gnomonic.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
Gnomonic
33
========
44
@@ -10,10 +10,13 @@
1010
that the scope of application is restricted to a small area around the
1111
projection center (at a maximum of 60°).
1212
13-
``flon0/lat0[/horizon]/scale`` or ``Flon0/lat0[/horizon]/width``
13+
**f**\ *lon0/lat0*\ [*/horizon*\ ]\ */scale*
14+
or **F**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*
1415
15-
``lon0/lat0`` specify the projection center, the optional parameter ``horizon``
16-
specifies the max distance from projection center (in degrees, < 90, default 60).
16+
**f** or **F** specifies the projection type, *lon0/lat0* specifies the projection
17+
center, the optional parameter *horizon* specifies the max distance from projection
18+
center (in degrees, < 90, default 60), and *scale* or *width* sets the size of the
19+
figure.
1720
"""
1821
import pygmt
1922

examples/projections/azim/azim_lambert.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
Lambert Azimuthal Equal Area
33
============================
44
@@ -7,9 +7,12 @@
77
equal-area projection, but is not perspective. Distortion is zero at the center of the
88
projection, and increases radially away from this point.
99
10-
``Alon0/lat0[/horizon]/width``: ``lon0`` and ``lat0`` specifies the projection center.
11-
``horizon`` specifies the max distance from projection center (in degrees, <= 180,
12-
default 90).
10+
**a**\ *lon0/lat0*\ [*/horizon*\ ]\ */scale*
11+
or **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*
12+
13+
**a** or **A** specifies the projection type, and *lon0/lat0* specifies the projection
14+
center, *horizon* specifies the max distance from projection center (in degrees,
15+
<= 180, default 90), and *scale* or *width* sets the size of the figure.
1316
"""
1417
import pygmt
1518

examples/projections/azim/azim_orthographic.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
Orthographic
33
============
44
@@ -8,10 +8,12 @@
88
space, were one hemisphere can be seen as a whole. It is neither conformal nor
99
equal-area and the distortion increases near the edges.
1010
11-
``glon0/lat0[/horizon]/scale`` or ``Glon0/lat0[/horizon]/width``
11+
**g**\ *lon0/lat0*\ [*/horizon*\ ]\ */scale*
12+
or **G**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*
1213
13-
``lon0/lat0`` specifies the projection center, the optional parameter ``horizon``
14-
specifies the max distance from projection center (in degrees, <= 90, default 90)
14+
**g** or **G** specifies the projection type, *lon0/lat0* specifies the projection
15+
center, the optional parameter *horizon* specifies the max distance from projection
16+
center (in degrees, <= 90, default 90), and *scale* and *width* set the figure size.
1517
"""
1618
import pygmt
1719

0 commit comments

Comments
 (0)