-
Notifications
You must be signed in to change notification settings - Fork 235
Convert projection table from reStructuredText to Markdown #3363
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 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
44d9f99
Convert projection table from rst to md
yvonnefroehlich a15c190
Use Unix line endings
yvonnefroehlich 141d061
Remove execution permission
yvonnefroehlich c950cd3
Convert to md
yvonnefroehlich 3fa2775
Convert to md
yvonnefroehlich b1f327f
Use math mode | Remove un-needed subsituation
yvonnefroehlich d3c6ec4
Merge branch 'main' into convert-proj-table-rst2md
yvonnefroehlich 259df4b
Introduce subsitutation for shared part of URL to docs of projections
yvonnefroehlich 123ac13
Fix style
yvonnefroehlich 594c751
Use 'format' for substitutions within links
yvonnefroehlich 1337033
Try to move subsitutions to front-matter section
yvonnefroehlich 50589a1
Try without quotation marks
yvonnefroehlich a20fdac
Aline table columns
yvonnefroehlich 30dbb5d
Use {doc} for setting url links
yvonnefroehlich fbed2f6
Remove trailing comma
yvonnefroehlich 04a451c
Fix typo
yvonnefroehlich dd501f8
Add missing {{ }} for key
yvonnefroehlich c3b6644
Correct syntax
yvonnefroehlich d2f9ce4
[format-command] fixes
actions-bot 9d92551
Merge branch 'main' into convert-proj-table-rst2md
yvonnefroehlich 2e3e71f
Add 'map' in introduction sentence
yvonnefroehlich 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
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,50 @@ | ||
| --- | ||
| myst: | ||
| substitutions: | ||
| lon0: "lon{sub}`0`", | ||
| lat0: "lat{sub}`0`", | ||
| lon1: "lon{sub}`1`", | ||
| lat1: "lat{sub}`1`", | ||
| lat2: "lat{sub}`2`", | ||
| lonp: "lon{sub}`p`", | ||
| latp: "lat{sub}`p`", | ||
| url_doc_proj: "https://www.pygmt.org/latest/projections/", | ||
| --- | ||
|
|
||
| # GMT Map Projections | ||
|
|
||
| The table below shows the projection codes for the 31 GMT projections: | ||
|
|
||
| | PyGMT Projection Argument | Projection Name | | ||
seisman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| | --- | --- | | ||
| | **A**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {{ '[Lambert azimuthal equal area]({}azim/azim_equidistant.html)'.format(url_doc_proj) }} | | ||
yvonnefroehlich marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | **B**{{ lon0 }}/{{ lat0 }}/{{ lat1 }}/{{ lat2 }}/*width* | {{ '[Albers conic equal area]({}conic/conic_albers.html)'.format(url_doc_proj) }} | | ||
| | **C**{{ lon0 }}/{{ lat0 }}/*width* | {{ '[Cassini cylindrical]({}cyl/cyl_cassini.html)'.format(url_doc_proj) }} | | ||
| | **Cyl_stere**/[{{ lon0 }}/[{{ lat0 }}/]]*width* | {{ '[Cylindrical stereographic]({}cyl/cyl_stereographic.html)'.format(url_doc_proj) }} | | ||
| | **D**{{ lon0 }}/{{ lat0 }}/{{ lat1 }}/{{ lat2 }}/*width* | {{ '[Equidistant conic]({}conic/conic_equidistant)'.format(url_doc_proj) }} | | ||
| | **E**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {{ '[Azimuthal equidistant]({}azim/azim_equidistant)'.format(url_doc_proj) }} | | ||
| | **F**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {{ '[Azimuthal gnomonic]({}azim/azim_gnomonic)'.format(url_doc_proj) }} | | ||
| | **G**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {{ '[Azimuthal orthographic]({}azim/azim_orthographic)'.format(url_doc_proj) }} | | ||
| | **G**{{ lon0 }}/{{ lat0 }}/*width*[**+a***azimuth*][**+t***tilt*][**+v***vwidth*/*vheight*][**+w***twist*][**+z***altitude*] | {{ '[General perspective]({}azim/azim_general_perspective)'.format(url_doc_proj) }} | | ||
| | **H**[{{ lon0 }}/]*width* | {{ '[Hammer equal area]({}misc/misc_hammer)'.format(url_doc_proj) }} | | ||
| | **I**[{{ lon0 }}/]*width* | {{ '[Sinusoidal equal area]({}misc/misc_sinusoidal)'.format(url_doc_proj) }} | | ||
| | **J**[{{ lon0 }}/]*width* | {{ '[Miller cylindrical]({}cyl/cyl_miller)'.format(url_doc_proj) }} | | ||
| | **Kf**[{{ lon0 }}/]*width* | {{ '[Eckert IV equal area]({}misc/misc_eckertIV)'.format(url_doc_proj) }} | | ||
| | **Ks**[{{ lon0 }}/]*width* | {{ '[Eckert VI equal area]({}misc/misc_eckertVI)'.format(url_doc_proj) }} | | ||
| | **L**{{ lon0 }}/{{ lat0 }}/{{ lat1 }}/{{ lat2 }}/*width* | {{ '[Lambert conic conformal]({}conic/conic_lambert)'.format(url_doc_proj) }} | | ||
| | **M**[{{ lon0 }}/[{{ lat0 }}/]]*width* | {{ '[Mercator cylindrical]({}cyl/cyl_mercator)'.format(url_doc_proj) }} | | ||
| | **N**[{{ lon0 }}/]*width* | {{ '[Robinson]({}misc/misc_robinson)'.format(url_doc_proj) }} | | ||
| | **Oa**{{ lon0 }}/{{ lat0 }}/*azimuth*/*width*[**+v**] | {{ '[Oblique Mercator, 1: origin and azimuth]({}cyl/cyl_oblique_mercator_1)'.format(url_doc_proj) }} | | ||
| | **Ob**{{ lon0 }}/{{ lat0 }}/lon1/{{ lat1 }}/*width*[**+v**] | {{ '[Oblique Mercator, 2: two points]({}cyl/cyl_oblique_mercator_2)'.format(url_doc_proj) }} | | ||
| | **Oc**{{ lon0 }}/{{ lat0 }}/lonp/{{ latp }}/*width*[**+v**] | {{ '[Oblique Mercator, 3: origin and pole]({}cyl/cyl_oblique_mercator_3)'.format(url_doc_proj) }} | | ||
| | **P***width*[**+a**][**+f**[**e**\|**p**\|*radius*]][**+r***offset*][**+t***origin*][**+z**[**p***radius*]] | {{ '[Polar]({}nongeo/polar)'.format(url_doc_proj) }} [azimuthal] ({math}`\theta, r`) (or cylindrical)| | ||
| | **Poly**/[{{ lon0 }}/[{{ lat0 }}/]]*width* | {{ '[Polyconic]({}conic/polyconic)'.format(url_doc_proj) }} | | ||
| | **Q**[{{ lon0 }}/[{{ lat0 }}/]]*width* | {{ '[Equidistant cylindrica]({}cyl/cyl_equidistant)'.format(url_doc_proj) }} | | ||
| | **R**[{{ lon0 }}/]*width* | {{ '[Winkel Tripel]({}misc/misc_winkel_tripel)'.format(url_doc_proj) }} | | ||
| | **S**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {{ '[General stereographic]({}azim/azim_general_stereographic)'.format(url_doc_proj) }} | | ||
| | **T**{{ lon0 }}[/{{ lat0 }}]/*width* | {{ '[Transverse Mercator]({}cyl/cyl_transverse_mercator)'.format(url_doc_proj) }} | | ||
| | **U***zone*/*width* | {{ '[Universal Transverse Mercator (UTM)]({}cyl/cyl_universal_transverse_mercator)'.format(url_doc_proj) }} | | ||
| | **V**[{{ lon0 }}/]*width* | {{ '[Van der Grinten]({}misc/misc_van_der_grinten)'.format(url_doc_proj) }} | | ||
| | **W**[{{ lon0 }}/]*width* | {{ '[Mollweide]({}misc/misc_mollweide)'.format(url_doc_proj) }} | | ||
| | **X***width*[**l**\|**p***exp*\|**T**\|**t**][/*height*[**l**\|**p**\|*exp*\|**T**\|**t**]][**d**] | {{ '[Linear]({}nongeo/cartesian_linear)'.format(url_doc_proj) }} , {{ '[logarithmic]({}nongeo/cartesian_logarithmic)'.format(url_doc_proj) }} , {{ '[power]({}nongeo/cartesian_power)'.format(url_doc_proj) }} , and time | | ||
| | **Y**{{ lon0 }}/{{ lat0 }}/*width* | {{ '[Cylindrical equal area]({}cyl/cyl_equal_area)'.format(url_doc_proj) }} | | ||
This file was deleted.
Oops, something went wrong.
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.