-
Notifications
You must be signed in to change notification settings - Fork 232
Added documentation for three oblique mercator projections #1251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0759123
Created oblique mercator docs
eemcmullan da42d8f
added three code examples
eemcmullan 87db02c
separated oblique mercator projections into 3 files
eemcmullan 3534f9c
Apply suggestions from code review
eemcmullan d5e4770
Update examples/projections/cyl/cyl_oblique_mercator_1.py
eemcmullan 63a832c
Update examples/projections/cyl/cyl_oblique_mercator_2.py
eemcmullan 9485032
updated examples/projections/table/README.txt to include oblique merc…
eemcmullan fea6152
Merge branch 'master' into docs-add
willschlitzer 03759d3
[format-command] fixes
actions-bot 489e8b8
Update examples/projections/cyl/cyl_oblique_mercator_1.py
eemcmullan ce6c181
Update examples/projections/cyl/cyl_oblique_mercator_1.py
eemcmullan 9a92b41
Update examples/projections/cyl/cyl_oblique_mercator_2.py
eemcmullan 457de90
Update examples/projections/cyl/cyl_oblique_mercator_2.py
eemcmullan d845fa6
Update examples/projections/cyl/cyl_oblique_mercator_3.py
eemcmullan acbc192
Update examples/projections/cyl/cyl_oblique_mercator_3.py
eemcmullan 40cd3eb
Update examples/projections/cyl/cyl_oblique_mercator_1.py
eemcmullan f650209
Update examples/projections/cyl/cyl_oblique_mercator_2.py
eemcmullan 3ca402f
Merge branch 'master' into docs-add
seisman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
Oblique Mercator | ||
================ | ||
|
||
Oblique configurations of the cylinder give rise to the oblique Mercator | ||
projection. It is particularly useful when mapping regions of large lateral | ||
extent in an oblique direction. Both parallels and meridians are complex | ||
curves. The projection was developed in the early 1900s by several workers. | ||
|
||
**oa**\|\ **oA**\ *lon0/lat0/azimuth/scale*\[**+v**] or | ||
**Oa**\|\ **OA**\ *lon0/lat0/azimuth/width*\[**+v**] | ||
|
||
The projection is set with **o** or **O**. The pole is set in the | ||
northern hemisphere with **a** or the southern hemisphere | ||
with **A**. The central meridian is set by *lon0/lat0*. The oblique equator | ||
is set by *azimuth*. Align the y-axis | ||
with the optional **+v**. The figure size is set with *scale* or *width*. | ||
""" | ||
import pygmt | ||
|
||
fig = pygmt.Figure() | ||
# Using the origin and azimuth | ||
fig.coast( | ||
projection="Oa-120/25/-30/6c+v", | ||
# Set bottom left and top right coordinates of the figure with "+r" | ||
region="-122/35/-107/22+r", | ||
frame="afg", | ||
land="gray", | ||
shorelines="1/thin", | ||
water="lightblue", | ||
) | ||
fig.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
Oblique Mercator | ||
================ | ||
|
||
Oblique configurations of the cylinder give rise to the oblique Mercator | ||
projection. It is particularly useful when mapping regions of large lateral | ||
extent in an oblique direction. Both parallels and meridians are complex | ||
curves. The projection was developed in the early 1900s by several workers. | ||
|
||
**ob**\|\ **oB**\ *lon0/lat0/lon1/lat1/scale*\ [**+v**] or | ||
**Ob**\|\ **OB**\ *lon0/lat0/lon1/lat1/width*\ [**+v**] | ||
|
||
The projection is set with **o** or **O**. The pole is set in the | ||
northern hemisphere with **b** or the southern hemisphere | ||
with **B**. The central meridian is set by *lon0/lat0*. The oblique | ||
equator is set by *lon1/lat1*. Align the y-axis | ||
with the optional **+v**. The figure size is set with *scale* or *width*. | ||
""" | ||
import pygmt | ||
|
||
fig = pygmt.Figure() | ||
# Using the origin and two points | ||
fig.coast( | ||
projection="Ob130/35/25/35/6c", | ||
# Set bottom left and top right coordinates of the figure with "+r" | ||
region="130/35/145/40+r", | ||
frame="afg", | ||
land="gray", | ||
shorelines="1/thin", | ||
water="lightblue", | ||
eemcmullan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
fig.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Oblique Mercator | ||
================ | ||
|
||
Oblique configurations of the cylinder give rise to the oblique Mercator | ||
projection. It is particularly useful when mapping regions of large lateral | ||
extent in an oblique direction. Both parallels and meridians are complex | ||
curves. The projection was developed in the early 1900s by several workers. | ||
|
||
**oc**\|\ **oC**\ *lon0/lat0/lonp/latp/scale*\ [**+v**] or | ||
**Oc**\|\ **OC**\ *lon0/lat0/lonp/latp/width*\ [**+v**] | ||
|
||
The projection is set with **o** or **O**. The central meridian is set | ||
by *lon0/lat0*. The projection pole is set by *lonp/latp* in option three. | ||
Align the y-axis with the optional **+v**. The figure size is set | ||
with *scale* or *width*. | ||
""" | ||
import pygmt | ||
|
||
fig = pygmt.Figure() | ||
# Using the origin projection pole | ||
fig.coast( | ||
projection="Oc280/25.5/22/69/12c", | ||
# Set bottom left and top right coordinates of the figure with "+r" | ||
region="270/20/305/25+r", | ||
frame="afg", | ||
land="gray", | ||
shorelines="1/thin", | ||
water="lightblue", | ||
eemcmullan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
fig.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.