# AGU 2024 - Union Session U019 - PyGMT talk - Abstract
- https://agu.confex.com/agu/agu24/prelim.cgi/Session/225304
- Submission until 31.07.2024
- Author list: who, order, affiliations
- Abstract title: 300 characters maximum; Initial upper case
- Abstract text: 2,000 characters maximum, excluding spaces but including punctuation
- Abstract ID: 1578856
- Abstract price: $40.00, agu-agu24-1578856-4104-8611-6553-3968
## Abstract
### PyGMT - Accessing and Integrating GMT with Python and the Scientific Python Ecosystem
**Yvonne Fröhlich**, Dongdong Tian, Wei Ji Leong, Max Jones, Michael Grund
The Generic Mapping Tools (GMT) are widely used across the Earth, Ocean, and Planetary Sciences and beyond to process geospatial and geophysical data as well as produce high-quality (static) vector and raster plots and maps. However, GMT suffers from its cryptic syntax.
PyGMT (https://www.pygmt.org/) wraps around the very fast GMT C code to make it accessible through the Python programming language. The introduction of meaningful aliases for the single-letter flags (e. g., “region” for “R” or “projection” for “J”) and ongoing efforts regarding a more Pythonic syntax for GMT arguments significantly increase user-friendliness and readability of the code. Furthermore, PyGMT provides auto-compilation and supports rich display in Jupyter notebooks for improved user experience. The Python library is indexed on PyPI (https://pypi.org/project/pygmt/) and conda-forge (https://anaconda.org/conda-forge/pygmt) and is installable via the pip, mamba, and conda packages managers. PyGMT integrates smoothly within the Scientific Python ecosystem. In addition to standard file formats such as ASCII and NetCDF files, common Pythonic data structures for tabular and grid data such as numpy.ndarray, pandas.DataFrame, geopandas.GeoDataFrame, and xarray.DataArray are supported. PyGMT also provides easy access to the GMT remote datasets. Numerous gallery examples, tutorials, and intros help new users and users coming from GMT learn the main concepts of PyGMT. There is also a Q&A subsection on the GMT forum to help with common user issues.
The project was started in 2017 by Leonardo Uieda and Paul Wessel as an open-source project hosted on GitHub (https://github.com/GenericMappingTools/pygmt). Now it is a community-driven effort, with all versions still available on GitHub and recorded on Zenodo (https://doi.org/10.5281/zenodo.3781524) and v0.12.0 being the latest release (2024/05/01). People are encouraged to pick any issue they like, where the label “good first issue” indicates a low knowledge barrier to get involved in PyGMT.
### Funding
The development of PyGMT has been supported by NSF grants OCE-1558403 (https://www.nsf.gov/awardsearch/showAward?AWD_ID=1558403) and EAR-1948602 (https://www.nsf.gov/awardsearch/showAward?AWD_ID=1948602). YF, WJL, and MJ received travel support by grant EAR-1948602.
## Authors with Affiliations
Yvonne Fröhlich
Karlsruhe Institute of Technology, Baden-Würtemberg Germany
https://orcid.org/0000-0002-8566-0619
Dongdong Tian
China University of Geosciences, Wuhan, China
https://orcid.org/0000-0001-7967-1197
Wei Ji Leong
Development Seed, Washington D.C., USA
https://orcid.org/0000-0003-2354-1988
Max Jones
University of Hawaiʻi at Mānoa, Honolulu USA
https://orcid.org/0000-0003-0180-8928
Michael Grund
SNP Innovation Lab GmbH, Heidelberg, Germany
https://orcid.org/0000-0001-8759-2018