Overview

About

PyGMT is a Python wrapper for the Generic Mapping Tools (GMT), a command-line program widely used in the Earth Sciences. It provides capabilities for processing spatial data (gridding, filtering, masking, FFTs, etc) and making high quality plots and maps.

PyGMT is different from Python libraries like Bokeh and Matplotlib, which have a larger focus on interactivity and allowing different backends. GMT uses the PostScript format to generate high quality (static) vector graphics for publications, posters, talks, etc. It is memory efficient and very fast. The PostScript figures can be converted to other formats like PDF, PNG, and JPG for use on the web and elsewhere. In fact, PyGMT users will usually not have any contact with the original PostScript files and get only the more convenient formats like PDF and PNG.

The project was started in 2017 by Leonardo Uieda and Paul Wessel (the co-creator and main developer of GMT) at the University of Hawaii at Manoa. The development of PyGMT has been supported by NSF grants OCE-1558403 and EAR-1948603.

We welcome any feedback and ideas! Let us know by submitting issues on GitHub or by posting on our Discourse forum.

Presentations

These are conference presentations about the development of PyGMT (previously “GMT/Python”):

ROSES 2020 youtube video
  • “PyGMT: Accessing the Generic Mapping Tools from Python”. 2019. Leonardo Uieda and Paul Wessel. Presented at AGU 2019. doi:10.6084/m9.figshare.11320280

AGU 2019 poster on figshare
  • “Building an object-oriented Python interface for the Generic Mapping Tools”. 2018. Leonardo Uieda and Paul Wessel. Presented at SciPy 2018. doi:10.6084/m9.figshare.6814052

SciPy youtube video
  • “Integrating the Generic Mapping Tools with the Scientific Python Ecosystem”. 2018. Leonardo Uieda and Paul Wessel. Presented at AOGS Annual Meeting 2018. doi:10.6084/m9.figshare.6399944

AOGS poster on figshare
  • “Bringing the Generic Mapping Tools to Python”. 2017. Leonardo Uieda and Paul Wessel. Presented at SciPy 2017. doi:10.6084/m9.figshare.7635833

SciPy youtube video
  • “A modern Python interface for the Generic Mapping Tools”. 2017. Leonardo Uieda and Paul Wessel. Presented at AGU 2017. doi:10.6084/m9.figshare.5662411

AGU 2017 poster on figshare