Skip to content

Commit 6f553b1

Browse files
Add a table for projections (#753)
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 5ee8b8c commit 6f553b1

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"../examples/projections/cyl",
7373
"../examples/projections/misc",
7474
"../examples/projections/nongeo",
75+
"../examples/projections/table",
7576
]
7677
),
7778
# Patter to search for example files

examples/projections/table/README.txt

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Projection Table
2+
----------------
3+
4+
The below table shows the projection codes for the 31 GMT projections.
5+
6+
.. Substitution definitions:
7+
.. |lon0| replace:: lon\ :sub:`0`
8+
.. |lat0| replace:: lat\ :sub:`0`
9+
.. |lon1| replace:: lon\ :sub:`1`
10+
.. |lat1| replace:: lat\ :sub:`1`
11+
.. |lat2| replace:: lat\ :sub:`2`
12+
.. |lonp| replace:: lon\ :sub:`p`
13+
.. |latp| replace:: lat\ :sub:`p`
14+
15+
.. list-table::
16+
:widths: 20 28
17+
:header-rows: 1
18+
19+
* - PyGMT Projection Argument
20+
- Projection Name
21+
* - **A**\ |lon0|/|lat0|\ [/\ *horizon*]/\ *width*
22+
- Lambert azimuthal equal area
23+
* - **B**\ |lon0|/|lat0|/|lat1|/|lat2|/\ *width*
24+
- Albers conic equal area
25+
* - **C**\ |lon0|/|lat0|/\ *width*
26+
- Cassini cylindrical
27+
* - **Cyl_stere/**\ [|lon0|\ [/|lat0|/]]\ *width*
28+
- Cylindrical stereographic
29+
* - **D**\ |lon0|/|lat0|/|lat1|/|lat2|/\ *width*
30+
- Equidistant conic
31+
* - **E**\ |lon0|/|lat0|\ [/\ *horizon*]/\ *width*
32+
- Azimuthal equidistant
33+
* - **F**\ |lon0|/|lat0|\ [/\ *horizon*]/\ *width*
34+
- Azimuthal gnomonic
35+
* - **G**\ |lon0|/|lat0|\ [/\ *horizon*]/\ *width*
36+
- Azimuthal orthographic
37+
* - **G**\ |lon0|/|lat0|/\ *alt*/*azim*/*tilt*/*twist*/*W*/*H*/*width*
38+
- General perspective
39+
* - **H**\ [|lon0|/]\ *width*
40+
- Hammer equal area
41+
* - **I**\ [|lon0|/]\ *width*
42+
- Sinusoidal equal area
43+
* - **J**\ [|lon0|/]\ *width*
44+
- Miller cylindrical
45+
* - **Kf**\ [|lon0|/]\ *width*
46+
- Eckert IV equal area
47+
* - **Ks**\ [|lon0|/]\ *width*
48+
- Eckert VI equal area
49+
* - **L**\ |lon0|/|lat0|/|lat1|/|lat2|/\ *width*
50+
- Lambert conic conformal
51+
* - **M**\ [|lon0|\ [/|lat0|]/]\ *width*
52+
- Mercator cylindrical
53+
* - **N**\ [|lon0|/]\ *width*
54+
- Robinson
55+
* - **Oa**\ |lon0|/|lat0|/\ *azim*/*width*\ [**+v**]
56+
- Oblique Mercator, 1: origin and azim
57+
* - **Ob**\ |lon0|/|lat0|/|lon1|/|lat1|/\ *width*\ [**+v**]
58+
- Oblique Mercator, 2: two points
59+
* - **Oc**\ |lon0|/|lat0|/|lonp|/|latp|/\ *width*\ [**+v**]
60+
- Oblique Mercator, 3: origin and pole
61+
* - **P**\ *width*\ [**+a**]\ [**+f**\ [**e**\|\ **p**\|\ *radius*]][**+r**\ *offset*][**+t**\ *origin*][**+z**\ [**p**\|\ *radius*]]
62+
- Polar [azimuthal] (:math:`\theta, r`) (or cylindrical)
63+
* - **Poly**\ [|lon0|\ [/|lat0|]/]\ *width*
64+
- Polyconic
65+
* - **Q**\ [|lon0|\ [/|lat0|/]]\ *width*
66+
- Equidistant cylindrical
67+
* - **R**\ [|lon0|/]\ *width*
68+
- Winkel Tripel
69+
* - **S**\ |lon0|/|lat0|\ [/\ *horizon*]/\ *width*
70+
- General stereographic
71+
* - **T**\ [|lon0|\ [/|lat0|]/]\ *width*
72+
- Transverse Mercator
73+
* - **U**\ *zone*/*width*
74+
- Universal Transverse Mercator (UTM) :ref:`... <-Ju_full>`
75+
* - **V**\ [|lon0|/]\ *width*
76+
- Van der Grinten
77+
* - **W**\ [|lon0|/]\ *width*
78+
- Mollweide
79+
* - **X**\ *width*\ [**l**\|\ **p**\ *exp*\|\ **T**\|\ **t**][/\ *height*\ [**l**\|\ **p**\ *exp*\|\ **T**\|\ **t**]][**d**]
80+
- Linear, log\ :math:`_{10}`, :math:`x^a-y^b`, and time
81+
* - **Y**\ |lon0|/|lat0|/\ *width*
82+
- Cylindrical equal area

0 commit comments

Comments
 (0)