From 27f5d20b85cd1bbfd237ef8e7e0455d07a6efb4d Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Fri, 11 Dec 2020 09:59:50 +0000 Subject: [PATCH 1/6] Add cyl_transverse_mercator.py --- .../cyl/cyl_transverse_mercator.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/projections/cyl/cyl_transverse_mercator.py diff --git a/examples/projections/cyl/cyl_transverse_mercator.py b/examples/projections/cyl/cyl_transverse_mercator.py new file mode 100644 index 00000000000..fc8bb2198b9 --- /dev/null +++ b/examples/projections/cyl/cyl_transverse_mercator.py @@ -0,0 +1,19 @@ +""" +Transverse Mercator +=================== + +``T[lon0/][lat0/]width``: Give central meridian ``lon0``, the latitude of the +origin ``lat0`` (optional), and the figure width. +""" +import pygmt + +fig = pygmt.Figure() +fig.coast( + region=[20, 50, 30, 45], + projection="T35/12c", + land="lightbrown", + water="seashell", + shorelines="thinnest", + frame="afg", +) +fig.show() From d64983ff1ae3e046ba76697f8980e12c4600475c Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Fri, 11 Dec 2020 10:40:06 +0000 Subject: [PATCH 2/6] Add cyl_universal_transverse_mercator.py --- .../cyl/cyl_universal_transverse_mercator.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/projections/cyl/cyl_universal_transverse_mercator.py diff --git a/examples/projections/cyl/cyl_universal_transverse_mercator.py b/examples/projections/cyl/cyl_universal_transverse_mercator.py new file mode 100644 index 00000000000..47259c5bd6c --- /dev/null +++ b/examples/projections/cyl/cyl_universal_transverse_mercator.py @@ -0,0 +1,19 @@ +""" +Universal Transverse Mercator +============================= + +``U[UTM Zone/][lat0/]width``: Give UTM Zone ``UTM Zone``, and the figure width. +""" +import pygmt + +fig = pygmt.Figure() +# UTM Zone is set to 52R +fig.coast( + region=[127.5, 128.5, 26, 27], + projection="U52R/12c", + land="lightgreen", + water="lightblue", + shorelines="thinnest", + frame="afg", +) +fig.show() From 6ba8185f68bc7dbc76a2787540083287204a7ea4 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Fri, 11 Dec 2020 10:48:29 +0000 Subject: [PATCH 3/6] Changing land color to red in cyl_mercator.py to match GMT docs example; changing units from US to SI --- examples/projections/cyl/cyl_mercator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projections/cyl/cyl_mercator.py b/examples/projections/cyl/cyl_mercator.py index d2e54886e6f..bfe22ba87a9 100644 --- a/examples/projections/cyl/cyl_mercator.py +++ b/examples/projections/cyl/cyl_mercator.py @@ -8,5 +8,5 @@ import pygmt fig = pygmt.Figure() -fig.coast(region=[0, 360, -80, 80], frame="afg", land="gray", projection="M0/0/8i") +fig.coast(region=[0, 360, -80, 80], frame="afg", land="red", projection="M0/0/12c") fig.show() From d3d38d50c68b33b59d7873c7bc24eb048c928eed Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Sun, 13 Dec 2020 12:43:13 +0000 Subject: [PATCH 4/6] Add cyl_equidistant.py --- examples/projections/cyl/cyl_equidistant.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/projections/cyl/cyl_equidistant.py diff --git a/examples/projections/cyl/cyl_equidistant.py b/examples/projections/cyl/cyl_equidistant.py new file mode 100644 index 00000000000..6dda6f45199 --- /dev/null +++ b/examples/projections/cyl/cyl_equidistant.py @@ -0,0 +1,18 @@ +""" +Cylindrical equidistant +======================= + +``Qwidth``: Give the figure ``width``. +""" +import pygmt + +fig = pygmt.Figure() +# Use region "d" to specify global region (-180/180/-90/90) +fig.coast( + region="d" + projection="Q12c", + land="tan4", + water="lightcyan", + frame="afg", +) +fig.show() From 34ebd9b505bc59f3e6fdbfccb6f14f40ad326261 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Sun, 13 Dec 2020 12:48:55 +0000 Subject: [PATCH 5/6] Add cyl_equal_area.py --- examples/projections/cyl/cyl_equal_area.py | 18 ++++++++++++++++++ examples/projections/cyl/cyl_equidistant.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 examples/projections/cyl/cyl_equal_area.py diff --git a/examples/projections/cyl/cyl_equal_area.py b/examples/projections/cyl/cyl_equal_area.py new file mode 100644 index 00000000000..33a729a2884 --- /dev/null +++ b/examples/projections/cyl/cyl_equal_area.py @@ -0,0 +1,18 @@ +""" +Cylindrical equal-area +====================== + +``Ylon0/lat0/width``: Give central meridian ``lon0``, the standard parallel ``lat0``, and the figure ``width``. +""" +import pygmt + +fig = pygmt.Figure() +# Use region "d" to specify global region (-180/180/-90/90) +fig.coast( + region="d", + projection="Y35/30/12c", + water="dodgerblue", + shorelines="thinnest", + frame="afg", +) +fig.show() diff --git a/examples/projections/cyl/cyl_equidistant.py b/examples/projections/cyl/cyl_equidistant.py index 6dda6f45199..3b548987503 100644 --- a/examples/projections/cyl/cyl_equidistant.py +++ b/examples/projections/cyl/cyl_equidistant.py @@ -9,7 +9,7 @@ fig = pygmt.Figure() # Use region "d" to specify global region (-180/180/-90/90) fig.coast( - region="d" + region="d", projection="Q12c", land="tan4", water="lightcyan", From ad2bd31bb147f8e8d3acde0f80eeebf32d781391 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Sun, 13 Dec 2020 13:01:18 +0000 Subject: [PATCH 6/6] Add cyl_miller.py --- examples/projections/cyl/cyl_miller.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/projections/cyl/cyl_miller.py diff --git a/examples/projections/cyl/cyl_miller.py b/examples/projections/cyl/cyl_miller.py new file mode 100644 index 00000000000..b25249a98d5 --- /dev/null +++ b/examples/projections/cyl/cyl_miller.py @@ -0,0 +1,18 @@ +""" +Miller cylindrical +================== + +``J[lon0/]width``: Give the optional central meridian ``lon0`` and the figure ``width``. +""" +import pygmt + +fig = pygmt.Figure() +fig.coast( + region=[-180, 180, -80, 80], + projection="J-65/12c", + land="khaki", + water="azure", + shorelines="thinnest", + frame="afg", +) +fig.show()