PyGMT: Bridging Python and the Generic Mapping Tools for Geospatial Visualization and Analysis
Open Access
- 15 July 2026
- journal article
- Published by American Geophysical Union (AGU) in Geochemistry, Geophysics, Geosystems
- Vol. 27 (7)
Abstract
PyGMT is a free and open‐source Python library that provides a high‐level interface to the Generic Mapping Tools (GMT), a widely used command‐line toolset for geospatial data processing, analysis, and visualization in the Earth, ocean, and planetary sciences. By bridging GMT with the Python ecosystem, PyGMT enables users to access GMT's powerful visualization and analysis capabilities directly within Python‐based workflows, making them more accessible to a broader audience. PyGMT supports diverse data sources, including local and remote files, as well as familiar data structures such as numpy.ndarray, pandas.DataFrame, and xarray.DataArray objects, allowing users to process data efficiently and create a wide variety of publication‐quality figures. Compared to GMT, PyGMT provides a Pythonic interface with intuitive parameters and arguments, lowering the barrier to entry for both new and experienced users, and extends GMT's functionality by integrating seamlessly with the broader scientific Python ecosystem. The project is actively maintained as a community‐driven effort under the BSD 3‐Clause License, with source code and issue tracking hosted on GitHub and user support provided through a Discourse forum. It emphasizes reliability, usability, and sustainability while fostering an open and welcoming community that encourages contributions of all kinds.Keywords
Funding Information
- National Science Foundation (OCE‐1558403)
- National Science Foundation (EAR‐1948602)
- National Natural Science Foundation of China (42274122)
- China University of Geosciences (2022012)
- Fundação para a Ciência e a Tecnologia (LA/P/0068/2020)
- Fundação para a Ciência e a Tecnologia (UID/50019/2025)
- Fundação para a Ciência e a Tecnologia (UID/PRR/50019/2025)
- Fundação para a Ciência e a Tecnologia (UID/PRR2/50019/2025)
This publication has 26 references indexed in Scilit:
- The Generic Mapping Tools and Animations for the MassesGeochemistry, Geophysics, Geosystems, 2024
- Deep time spatio‐temporal data analysis using pyGPlates with PlateTectonicTools and GPlatelyGeoscience Data Journal, 2023
- The Generic Mapping Tools Version 6Geochemistry, Geophysics, Geosystems, 2019
- SHTools: Tools for Working with Spherical HarmonicsGeochemistry, Geophysics, Geosystems, 2018
- The GMT/MATLAB ToolboxGeochemistry, Geophysics, Geosystems, 2017
- Generic Mapping Tools: Improved Version ReleasedEos, 2013
- A general-purpose Green's function-based interpolatorComputers & Geosciences, 2009
- Mars Orbiter Laser Altimeter: Experiment summary after the first year of global mapping of MarsJournal of Geophysical Research, 2001
- New version of the generic mapping toolsEos, 1995
- Free software helps map and display dataEos, 1991