KIT | KIT-Bibliothek | Impressum | Datenschutz

PyGMT – Accessing and Integrating GMT with Python and the Scientific Python Ecosystem (AGU24, U12B-05)

Fröhlich, Yvonne ORCID iD icon 1; Tian, Dongdong; Leong, Wei Ji; Jones, Max; Grund, Michael
1 Geophysikalisches Institut (GPI), Karlsruher Institut für Technologie (KIT)

Abstract (englisch):

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. ... mehr


Volltext §
DOI: 10.5445/IR/1000177747
Veröffentlicht am 07.01.2025
Originalveröffentlichung
DOI: 10.6084/m9.figshare.28049495
Cover der Publikation
Zugehörige Institution(en) am KIT Geophysikalisches Institut (GPI)
Publikationstyp Vortrag
Publikationsdatum 09.12.2024
Sprache Englisch
Identifikator KITopen-ID: 1000177747
Veranstaltung Annual Meeting of the American Geophysical Union (2024), Washington, DC, USA, 08.12.2024 – 13.12.2024
Schlagwörter Other earth sciences not elsewhere classified, Geophysics not elsewhere classified, Oceanography not elsewhere classified, Atmospheric sciences not elsewhere classified
KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
KITopen Landing Page