{"id":16794757,"url":"https://github.com/GenericMappingTools/pygmt","last_synced_at":"2025-11-04T08:30:24.239Z","repository":{"id":37664708,"uuid":"85352251","full_name":"GenericMappingTools/pygmt","owner":"GenericMappingTools","description":"A Python interface for the Generic Mapping Tools.","archived":false,"fork":false,"pushed_at":"2025-02-17T18:01:53.000Z","size":177367,"stargazers_count":785,"open_issues_count":192,"forks_count":225,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-02-17T18:32:30.993Z","etag":null,"topics":["earth-science","geophysics","geoscience","hacktoberfest","maps","python","seismology"],"latest_commit_sha":null,"homepage":"https://www.pygmt.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GenericMappingTools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-17T20:31:51.000Z","updated_at":"2025-02-17T09:41:34.000Z","dependencies_parsed_at":"2023-10-20T17:07:50.865Z","dependency_job_id":"95efe9bc-e42b-4d80-98ed-3edd2be8d8d3","html_url":"https://github.com/GenericMappingTools/pygmt","commit_stats":{"total_commits":2549,"total_committers":52,"mean_commits":49.01923076923077,"dds":0.6155355041192625,"last_synced_commit":"82b0c736801998d5a995e2dd0f0f4898dc95904e"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenericMappingTools%2Fpygmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenericMappingTools%2Fpygmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenericMappingTools%2Fpygmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenericMappingTools%2Fpygmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenericMappingTools","download_url":"https://codeload.github.com/GenericMappingTools/pygmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239347646,"owners_count":19624035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["earth-science","geophysics","geoscience","hacktoberfest","maps","python","seismology"],"created_at":"2024-10-13T09:01:54.745Z","updated_at":"2025-11-04T08:30:24.134Z","avatar_url":"https://github.com/GenericMappingTools.png","language":"Python","readme":"# PyGMT\n\n\u003e A Python interface for the Generic Mapping Tools\n\n[Documentation (development version)](https://www.pygmt.org/dev) | [Contact](https://forum.generic-mapping-tools.org) | [TryOnline](https://github.com/GenericMappingTools/try-gmt)\n\n[![Latest version on PyPI](https://img.shields.io/pypi/v/pygmt)](https://pypi.org/project/pygmt)\n[![Latest version on conda-forge](https://img.shields.io/conda/v/conda-forge/pygmt)](https://anaconda.org/conda-forge/pygmt)\n[![GitHub license](https://img.shields.io/github/license/GenericMappingTools/pygmt)](https://github.com/GenericMappingTools/pygmt/blob/main/LICENSE.txt)\n[![Compatible Python versions](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FGenericMappingTools%2Fpygmt%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)](https://www.pygmt.org/dev/minversions.html)\n[![Digital Object Identifier for the Zenodo archive](https://zenodo.org/badge/DOI/10.5281/3781524.svg)](https://doi.org/10.5281/zenodo.3781524)\n[![Discourse forum](https://img.shields.io/discourse/status?label=forum\u0026server=https%3A%2F%2Fforum.generic-mapping-tools.org)](https://forum.generic-mapping-tools.org)\n[![PyOpenSci](https://tinyurl.com/y22nb8up)](https://github.com/pyOpenSci/software-review/issues/43)\n[![Contributor Code of Conduct](https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg)](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md)\n[![GitHub Actions Tests status](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests.yaml/badge.svg)](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests.yaml)\n[![GitHub Actions GMT Dev Tests status](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml/badge.svg)](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml)\n[![Test coverage status](https://codecov.io/gh/GenericMappingTools/pygmt/graph/badge.svg?token=78Fu4EWstx)](https://app.codecov.io/gh/GenericMappingTools/pygmt)\n[![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)\n[![CodSpeed Performance Benchmarks](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/GenericMappingTools/pygmt)\n\n\u003c!-- doc-index-start-after --\u003e\n\n## Why PyGMT?\n\nA beautiful map is worth a thousand words. To truly understand how powerful PyGMT is,\nplay with it online on [Binder](https://github.com/GenericMappingTools/try-gmt)! For a\nquicker introduction, check out our [3 minute overview](https://youtu.be/4iPnITXrxVU)!\n\nAfterwards, feel free to look at our [Tutorials](https://www.pygmt.org/latest/tutorials),\nvisit the [Gallery](https://www.pygmt.org/latest/gallery), and check out some\n[external PyGMT examples](https://www.pygmt.org/latest/external_resources.html)!\n\n![Quick Introduction to PyGMT YouTube Video](https://raw.githubusercontent.com/GenericMappingTools/pygmt/refs/heads/main/doc/_static/scipy2022-youtube-thumbnail.jpg)\n\n## About\n\nPyGMT is a library for processing geospatial and geophysical data and making\npublication-quality maps and figures. It provides a Pythonic interface for the\n[Generic Mapping Tools (GMT)](https://github.com/GenericMappingTools/gmt), a command-line\nprogram widely used across the Earth, Ocean, and Planetary sciences and beyond.\n\n## Project goals\n\n- Make GMT more accessible to new users.\n- Build a Pythonic API for GMT.\n- Interface with the GMT C API directly using ctypes (no system calls).\n- Support for rich display in the Jupyter notebook.\n- Integration with the [scientific Python ecosystem](https://scientific-python.org/):\n  `numpy.ndarray` or `pandas.DataFrame` for data tables, `xarray.DataArray` for grids,\n  and `geopandas.GeoDataFrame` for geographical data.\n\n## Quickstart\n\n### Installation\n\nSimple installation using [mamba](https://mamba.readthedocs.org/):\n\n```bash\nmamba install --channel conda-forge pygmt\n```\n\nIf you use [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html):\n\n```bash\nconda install --channel conda-forge pygmt\n```\n\nFor other ways to install `pygmt`, see the [full installation instructions](https://www.pygmt.org/latest/install.html).\n\n### Getting started\n\nAs a starting point, you can open a [Python interpreter](https://docs.python.org/3/tutorial/interpreter.html)\nor a [Jupyter notebook](https://docs.jupyter.org/en/latest/running.html), and try the\nfollowing example:\n\n``` python\nimport pygmt\nfig = pygmt.Figure()\nfig.coast(projection=\"N15c\", region=\"g\", frame=True, land=\"tan\", water=\"lightblue\")\nfig.text(position=\"MC\", text=\"PyGMT\", font=\"80p,Helvetica-Bold,red@75\")\nfig.show()\n```\n\nYou should see a global map with land and water masses colored in tan and lightblue,\nrespectively. On top, there should be the semi-transparent text \"PyGMT\". For more examples,\nplease have a look at the [Gallery](https://www.pygmt.org/latest/gallery/index.html) and\n[Tutorials](https://www.pygmt.org/latest/tutorials/index.html).\n\n## Contacting us\n\n- Most discussion happens [on GitHub](https://github.com/GenericMappingTools/pygmt).\n  Feel free to [open an issue](https://github.com/GenericMappingTools/pygmt/issues/new)\n  or comment on any open issue or pull request.\n- We have a [Discourse forum](https://forum.generic-mapping-tools.org/c/questions/pygmt-q-a)\n  where you can ask questions and leave comments.\n\n## Contributing\n\n### Code of conduct\n\nPlease note that this project is released with a\n[Contributor Code of Conduct](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md).\nBy participating in this project you agree to abide by its terms.\n\n### Contributing guidelines\n\nPlease read our [Contributing Guide](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md)\nto see how you can help and give feedback.\n\n### Imposter syndrome disclaimer\n\n**We want your help.** No, really.\n\nThere may be a little voice inside your head that is telling you that you're not ready\nto be an open source contributor; that your skills aren't nearly good enough to\ncontribute. What could you possibly offer?\n\nWe assure you that the little voice in your head is wrong.\n\n**Being a contributor doesn't just mean writing code.** Equally important contributions\ninclude: writing or proof-reading documentation, suggesting or implementing tests, or\neven giving feedback about the project (including giving feedback about the contribution\nprocess). If you're coming to the project with fresh eyes, you might see the errors and\nassumptions that seasoned contributors have glossed over. If you can write any code at\nall, you can contribute code to open source. We are constantly trying out new skills,\nmaking mistakes, and learning from those mistakes. That's how we all improve and we are\nhappy to help others learn.\n\n*This disclaimer was adapted from the* [MetPy project](https://github.com/Unidata/MetPy).\n\n## Citing PyGMT\n\nPyGMT is a community developed project. See the\n[AUTHORS.md](https://github.com/GenericMappingTools/pygmt/blob/main/AUTHORS.md) file\non GitHub for a list of the people involved and a definition of the term \"PyGMT Developers\".\nFeel free to cite our work in your research using the following BibTeX:\n\n```\n@software{\n  pygmt_2025_14868324,\n  author       = {Tian, Dongdong and\n                  Uieda, Leonardo and\n                  Leong, Wei Ji and\n                  Fröhlich, Yvonne and\n                  Schlitzer, William and\n                  Grund, Michael and\n                  Jones, Max and\n                  Toney, Liam and\n                  Yao, Jiayuan and\n                  Tong, Jing-Hui and\n                  Magen, Yohai and\n                  Materna, Kathryn and\n                  Belem, Andre and\n                  Newton, Tyler and\n                  Anant, Abhishek and\n                  Ziebarth, Malte and\n                  Quinn, Jamie and\n                  Wessel, Paul},\n  title        = {{PyGMT: A Python interface for the Generic Mapping Tools}},\n  month        = feb,\n  year         = 2025,\n  publisher    = {Zenodo},\n  version      = {0.14.2},\n  doi          = {10.5281/zenodo.14868324},\n  url          = {https://doi.org/10.5281/zenodo.14868324}\n}\n```\n\nTo cite a specific version of PyGMT, go to our Zenodo page at \u003chttps://doi.org/10.5281/zenodo.3781524\u003e\nand use the \"Export to BibTeX\" function there. It is also strongly recommended to cite\nthe [GMT 6 paper](https://doi.org/10.1029/2019GC008515) (which PyGMT wraps around). Note\nthat some modules like `dimfilter`, `surface`, and `x2sys` also have their dedicated\ncitations. Further information for all these can be found at \u003chttps://www.generic-mapping-tools.org/cite\u003e.\n\n## License\n\nPyGMT is free software: you can redistribute it and/or modify it under the terms of the\n**BSD 3-clause License**. A copy of this license is provided in\n[LICENSE.txt](https://github.com/GenericMappingTools/pygmt/blob/main/LICENSE.txt).\n\n## Support\n\nThe development of PyGMT has been supported by NSF grants\n[OCE-1558403](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1558403) and\n[EAR-1948603](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1948602).\n\n## Related projects\n\nOther official wrappers for GMT:\n\n- [GMT.jl](https://github.com/GenericMappingTools/GMT.jl): A Julia wrapper for GMT.\n- [gmtmex](https://github.com/GenericMappingTools/gmtmex): A Matlab/Octave wrapper for GMT.\n\n\u003c!-- doc-index-end-before --\u003e\n\n## Minimum supported versions\n\nPyGMT has adopted [SPEC 0](https://scientific-python.org/specs/spec-0000/) alongside the\nrest of the scientific Python ecosystem, and made a few extensions based on the needs of\nthe project. Please see [Minimum Supported Versions](https://www.pygmt.org/dev/minversions.html)\nfor the detailed policy and the minimum supported versions of GMT, Python and core\npackage dependencies.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenericMappingTools%2Fpygmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGenericMappingTools%2Fpygmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenericMappingTools%2Fpygmt/lists"}