Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6c0f26a
Use cards for landing page, add section 'Project overview', recorder …
yvonnefroehlich Jul 25, 2026
76f81be
Improve layout of cards (not: affect also extral resources)
yvonnefroehlich Jul 25, 2026
431ff91
Adjust / test card layout for external resources
yvonnefroehlich Jul 25, 2026
6122a6a
Try to set up real bullet point list
yvonnefroehlich Jul 25, 2026
cbb82d0
Fix replace error
yvonnefroehlich Jul 25, 2026
70b9c56
Make formulations idential
yvonnefroehlich Jul 25, 2026
e549b48
Remove un-needed new lines
yvonnefroehlich Jul 25, 2026
83b7159
Split README content into pages for docs
yvonnefroehlich Jul 25, 2026
0cfe97f
Remove execution permission
yvonnefroehlich Jul 25, 2026
ffd35b3
Add icons
yvonnefroehlich Jul 25, 2026
4f2a889
Center text on landing page
yvonnefroehlich Jul 25, 2026
7f18fe2
Adjust font size and lower padding of text on lading page
yvonnefroehlich Jul 25, 2026
142fb15
Add logo on landing page via sphinx markdown instead of html
yvonnefroehlich Jul 25, 2026
f572808
Remove blank lines and with spaces
yvonnefroehlich Jul 25, 2026
7606c48
Prepare for links
yvonnefroehlich Jul 25, 2026
6405409
Test links without shared website URL
yvonnefroehlich Jul 25, 2026
772333d
Remove links from cards, add links to bullet point list
yvonnefroehlich Jul 26, 2026
e44f69e
Rewrite text in doc to have link linking to selected version
yvonnefroehlich Jul 26, 2026
34aea2e
Improve text for 'Why PyGMT'
yvonnefroehlich Jul 26, 2026
25f4168
Fix links
yvonnefroehlich Jul 26, 2026
e321bdf
Shorten formulation
yvonnefroehlich Jul 26, 2026
66def28
Try cards and bottoms for specific topics
yvonnefroehlich Jul 26, 2026
a4b8d7d
Polish cards
yvonnefroehlich Jul 26, 2026
adf8900
Polish cards
yvonnefroehlich Jul 26, 2026
55c197f
Polish cards
yvonnefroehlich Jul 26, 2026
e396a6c
Improve icons
yvonnefroehlich Jul 26, 2026
6ca196d
Improve icons
yvonnefroehlich Jul 26, 2026
683b8db
Polish cards
yvonnefroehlich Jul 26, 2026
d3f5178
Remove question mark
yvonnefroehlich Jul 26, 2026
09c4b1e
Increase size of icons
yvonnefroehlich Jul 26, 2026
405b82d
Fix typo
yvonnefroehlich Jul 26, 2026
f935948
Fix links for buttons
yvonnefroehlich Jul 26, 2026
dfc9bf4
Add links to cards
yvonnefroehlich Jul 26, 2026
ed68a57
Fix typos and improve formulations
yvonnefroehlich Jul 26, 2026
3efbd6f
Improve formulation
yvonnefroehlich Jul 26, 2026
737f0f3
Add comments to explain landiing page setup
yvonnefroehlich Jul 26, 2026
f3fa221
Move comment
yvonnefroehlich Jul 26, 2026
ffce07a
Merge branch 'main' into create-website-cards
yvonnefroehlich Jul 27, 2026
4026518
Fix typo
yvonnefroehlich Jul 27, 2026
fed5cd9
Rename from 'Conference presentations' to ' Presentations'
yvonnefroehlich Jul 27, 2026
f6f5158
Move comment out of 'grid' to avoid sphinx warning
yvonnefroehlich Jul 27, 2026
f9afea7
Merge branch 'main' into create-website-cards
yvonnefroehlich Jul 28, 2026
aefa35d
Move minversions and changelog back to Technical Reference
yvonnefroehlich Jul 29, 2026
6019b68
Merge branch 'main' into create-website-cards
yvonnefroehlich Jul 29, 2026
0a9ec49
Merge branch 'main' into create-website-cards
yvonnefroehlich Jul 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![CodSpeed Performance Benchmarks](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/GenericMappingTools/pygmt)

<!-- doc-index-start-after -->

## Why PyGMT?

<!-- doc-why-start-after -->

A beautiful map is worth a thousand words. To truly understand how powerful PyGMT is,
play with it online on [Binder](https://github.com/GenericMappingTools/try-gmt)! For a
quicker introduction, check out our [3 minute overview](https://youtu.be/4iPnITXrxVU)!

<!-- doc-why-end-before -->

Afterwards, feel free to look at our [Tutorials](https://www.pygmt.org/latest/tutorials),
visit the [Gallery](https://www.pygmt.org/latest/gallery), and check out some
[external PyGMT examples](https://www.pygmt.org/latest/external_resources.html)!
Expand All @@ -32,13 +35,19 @@ visit the [Gallery](https://www.pygmt.org/latest/gallery), and check out some

## About

<!-- doc-about-start-after -->

PyGMT is a library for processing geospatial and geophysical data and making
publication-quality maps and figures. It provides a Pythonic interface for the
[Generic Mapping Tools (GMT)](https://github.com/GenericMappingTools/gmt), a command-line
program widely used across the Earth, Ocean, and Planetary sciences and beyond.

<!-- doc-about-end-before -->

## Project goals

<!-- doc-goals-start-after -->

- Make GMT more accessible to new users.
- Build a Pythonic API for GMT.
- Interface with the GMT C API directly using ctypes (no system calls).
Expand All @@ -47,6 +56,8 @@ program widely used across the Earth, Ocean, and Planetary sciences and beyond.
`numpy.ndarray` or `pandas.DataFrame` for data tables, `xarray.DataArray` for grids,
and `geopandas.GeoDataFrame` for geographical data.

<!-- doc-goals-end-before -->

## Quickstart

### Installation
Expand Down Expand Up @@ -125,6 +136,8 @@ happy to help others learn.

## Citing PyGMT

<!-- doc-cite-start-after -->

PyGMT is a community developed project. See the
[AUTHORS.md](https://github.com/GenericMappingTools/pygmt/blob/main/AUTHORS.md) file
on GitHub for a list of the people involved and a definition of the term "PyGMT Developers".
Expand Down Expand Up @@ -192,6 +205,8 @@ the [GMT 6 paper](https://doi.org/10.1029/2019GC008515) (which PyGMT wraps aroun
that some modules like `dimfilter`, `surface`, and `x2sys` also have their dedicated
citations. Further information for all these can be found at <https://www.generic-mapping-tools.org/cite>.

<!-- doc-cite-end-before -->

## License

PyGMT is free software: you can redistribute it and/or modify it under the terms of the
Expand All @@ -200,18 +215,24 @@ PyGMT is free software: you can redistribute it and/or modify it under the terms

## Support

<!-- doc-support-start-after -->

The development of PyGMT has been supported by NSF grants
[OCE-1558403](https://www.nsf.gov/awardsearch/show-award/?AWD_ID=1558403) and
[EAR-1948602](https://www.nsf.gov/awardsearch/show-award/?AWD_ID=1948602).

<!-- doc-support-end-before -->

## Related projects

<!-- doc-related-start-after -->

Other official wrappers for GMT:

- [GMT.jl](https://github.com/GenericMappingTools/GMT.jl): A Julia wrapper for GMT.
- [gmtmex](https://github.com/GenericMappingTools/gmtmex): A Matlab/Octave wrapper for GMT.

<!-- doc-index-end-before -->
<!-- doc-related-end-before -->

## Minimum supported versions

Expand Down
8 changes: 8 additions & 0 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ p {
border: solid 2px #b4c7e7;
}

/* Change color of cards */
/* https://sphinx-design.readthedocs.io/en/rtd-theme/css_variables.html */
:root {
--sd-color-card-background: #EBF0F9; /* lighter color as top box of sidebar */
--sd-color-card-header: #b4c7e7; /* same color as top box of sidebar */
--sd-color-card-footer: #FFFFFF; /* white */
}

/* Format parameters section similar to sphinx_rtd_theme v4.x.x (not a grid) */
html.writer-html5 .rst-content dl.field-list {
display: initial;
Expand Down
6 changes: 6 additions & 0 deletions doc/citing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Citing PyGMT

```{include} ../README.md
:start-after: <!-- doc-cite-start-after -->
:end-before: <!-- doc-cite-end-before -->
```
16 changes: 8 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,20 @@
html_context = {
"menu_links": [
(
'<i class="fa fa-gavel fa-fw"></i> Code of Conduct',
"https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md",
'<i class="fa fa-comment fa-fw"></i> GMT Forum',
"https://forum.generic-mapping-tools.org",
),
(
'<i class="fa fa-book fa-fw"></i> License',
f"{repository_url}/blob/main/LICENSE.txt",
'<i class="fa fa-github fa-fw"></i> Source Code',
repository_url,
),
(
'<i class="fa fa-comment fa-fw"></i> Contact',
"https://forum.generic-mapping-tools.org",
'<i class="fa fa-gavel fa-fw"></i> Code of Conduct',
"https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md",
),
(
'<i class="fa fa-github fa-fw"></i> Source Code',
repository_url,
'<i class="fa fa-book fa-fw"></i> License',
f"{repository_url}/blob/main/LICENSE.txt",
),
],
# Custom variables to enable "Improve this page"" and "Download notebook" links
Expand Down
56 changes: 42 additions & 14 deletions doc/external_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,111 +12,133 @@ to submit a pull request with your recommended addition to the

:::::{grid} 1 2 2 3

::::{grid-item-card} 2024 AGU PREWS9: Mastering Geospatial Visualizations with GMT/PyGMT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps move the changes of this file into a separate PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it is better to have this in a separate PR. My idea is to keep it here to make it easier to see how the changed card design, especially the coloring, works for the Extral Resources page. Currently I change the colors in style.css globally. Maybe (I have to figure out how) it is also possible to change it only for the cards on specific pages or files. However, I feel it would be good to keep things consistent and not introduce more blue hues.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A separate PR for updating the "External Resources" page is at #4785.

::::{grid-item-card}
:link: https://www.generic-mapping-tools.org/agu24workshop/
:text-align: center
:margin: 0 3 0 0

**2024 AGU PREWS9: Mastering Geospatial Visualizations with GMT/PyGMT**
^^^
![](https://github.com/user-attachments/assets/9f3ab0ed-83f1-4cff-bc68-387fc13ca61f)
+++
Wei Ji Leong, Yvonne Fröhlich, Jing-Hui Tong, Federico Esteban, Max Jones, Andre Belem
::::

::::{grid-item-card} 2024 PyGMT Webinar using Google Colab (in Portuguese)
::::{grid-item-card}
:link: https://github.com/andrebelem/Oficina_PyGMT
:text-align: center
:margin: 0 3 0 0

**2024 PyGMT Webinar using Google Colab (in Portuguese)**
^^^
![](https://github.com/andrebelem/Oficina_PyGMT/raw/main/Datasets/3D_sample.png)
+++
Andre Belem
::::

::::{grid-item-card} 2022 EGU SC5.2: Crafting beautiful maps with PyGMT
::::{grid-item-card}
:link: https://www.generic-mapping-tools.org/egu22pygmt/
:text-align: center
:margin: 0 3 0 0

**2022 EGU SC5.2: Crafting beautiful maps with PyGMT**
^^^
![](https://user-images.githubusercontent.com/3974108/171653272-efaceeb1-a253-44a1-bddc-36bc9498c19b.png)
+++
Wei Ji Leong, Leonardo Uieda, Max Jones, Andre Belem
::::

::::{grid-item-card} 2021 PyGMT course at the UAF Geophysical Institute
::::{grid-item-card}
:link: https://github.com/liamtoney/gi-pygmt-2021
:text-align: center
:margin: 0 3 0 0

**2021 PyGMT course at the UAF Geophysical Institute**
^^^
![](https://user-images.githubusercontent.com/3974108/172042115-3f700c16-0f78-49d3-9e8d-87c77e4c0444.png)
+++
Liam Toney
::::

::::{grid-item-card} 2021 Remote Online Sessions for Emerging Seismologists (ROSES): Unit 5 - Mapping
::::{grid-item-card}
:link: https://www.youtube.com/watch?v=Zvcy7VDuhiw
:text-align: center
:margin: 0 3 0 0

**2021 Remote Online Sessions for Emerging Seismologists (ROSES): Unit 5 - Mapping**
^^^
![](https://user-images.githubusercontent.com/3974108/172055872-b81057b6-aef3-473f-8f42-1cc82a68d188.jpg)
+++
Liam Toney
::::

::::{grid-item-card} 2020 Remote Online Sessions for Emerging Seismologists (ROSES): Unit 8 - PyGMT
::::{grid-item-card}
:link: https://www.iris.edu/hq/inclass/lesson/728
:text-align: center
:margin: 0 3 0 0

**2020 Remote Online Sessions for Emerging Seismologists (ROSES): Unit 8 - PyGMT**
^^^
![](https://user-images.githubusercontent.com/3974108/172055922-8df68c00-4115-42f4-83ae-13a971fef846.png)
+++
Liam Toney
::::

::::{grid-item-card} PyGMT Tutorial in 2021
::::{grid-item-card}
:link: https://github.com/MIGG-NTU/PyGMT2021
:text-align: center
:margin: 0 3 0 0

**2021 PyGMT Tutorial**
^^^
![](https://user-images.githubusercontent.com/23487320/172058757-9b68f7ae-7a3f-4f48-9df6-9a065d6cd448.png)
+++
MIGG-NTU
::::

::::{grid-item-card} PyGMT Workshop at FOSS4G Oceania 2019
::::{grid-item-card}
:link: https://github.com/GenericMappingTools/foss4g2019oceania
:text-align: center
:margin: 0 3 0 0

**2019 PyGMT Workshop at FOSS4G Oceania**
^^^
![](https://github.com/GenericMappingTools/foss4g2019oceania/releases/download/v1/picton_3d_dsm_view.png)
+++
Wei Ji Leong
::::

::::{grid-item-card} Crafting 3D maps of Antarctica with PyGMT and the IBCSO V2
::::{grid-item-card}
:link: https://github.com/andrebelem/3D-Antarctic-maps
:text-align: center
:margin: 0 3 0 0

**Crafting 3D maps of Antarctica with PyGMT and the IBCSO V2**
^^^
![](https://github.com/andrebelem/3D-Antarctic-maps/raw/main/3D-Antarctic-Maps.png)
+++
Andre Belem
::::

::::{grid-item-card} Planetary Maps (in PyGMT)
::::{grid-item-card}
:link: https://github.com/andrebelem/PlanetaryMaps
:text-align: center
:margin: 0 3 0 0

**Planetary Maps (in PyGMT)**
^^^
![](https://github.com/andrebelem/MarsMaps/raw/main/JezeroCrater.png)
+++
Andre Belem
::::

::::{grid-item-card} PyGMT-HOWTO
::::{grid-item-card}
:link: https://tktmyd.github.io/pygmt-howto-jp/
:text-align: center
:margin: 0 3 0 0

**PyGMT-HOWTO**
^^^
![](https://github.com/tktmyd/pygmt-howto-jp/raw/main/src/basics/fig/pygmt-coastline.png)
+++
Takuto Maeda
Expand All @@ -128,31 +150,37 @@ Takuto Maeda

:::::{grid} 1 2 2 3

::::{grid-item-card} GMT and PyGMT plotting examples
::::{grid-item-card}
:link: https://github.com/michaelgrund/GMT-plotting
:text-align: center
:margin: 0 3 0 0

**GMT and PyGMT plotting examples**
^^^
![](https://user-images.githubusercontent.com/3974108/172055991-c0646f6c-d130-474f-b46a-5587483998cb.jpg)
+++
Michael Grund
::::

::::{grid-item-card} NZ Antarctic Science Conference 2021 poster
::::{grid-item-card}
:link: https://github.com/weiji14/nzasc2021
:text-align: center
:margin: 0 3 0 0

**NZ Antarctic Science Conference 2021 poster**
^^^
![](https://user-images.githubusercontent.com/23487320/107176140-6aa4e580-6a33-11eb-8f30-1a7913788d6c.png)
+++
Wei Ji Leong
::::

::::{grid-item-card} PyGMT plotting examples
::::{grid-item-card}
:link: https://github.com/yvonnefroehlich/gmt-pygmt-plotting
:text-align: center
:margin: 0 3 0 0

**PyGMT plotting examples**
^^^
![](https://github.com/yvonnefroehlich/gmt-pygmt-plotting/raw/main/_images/github_maps_readme_main.png)
+++
Yvonne Fröhlich
Expand Down
Loading