Go to file
2021-01-11 10:44:53 +08:00
data update gitignore 2021-01-11 10:44:53 +08:00
src update ex2 2021-01-10 20:17:01 +08:00
.gitignore update gitignore 2021-01-11 10:44:53 +08:00
CMakeLists.txt Update CMakeLists.txt 2021-01-11 08:43:34 +08:00
LICENSE Initial commit 2020-09-04 10:16:09 +08:00
README.md update to gmt6 and change to cmake 2021-01-10 14:49:37 +08:00

gmt_API_example

Examples for using GMT's C_API

What's GMT?

The Generic Mapping Tools (GMT) are widely used across the Earth, Ocean, and Planetary sciences and beyond. A diverse community uses GMT to process data, generate publication-quality illustrations, automate workflows, and make animations. Scientific journals, posters at meetings, Wikipedia pages, and many more publications display illustrations made by GMT. And the best part: it is free, open source software licensed under the LGPL.

For those who wants to know more, please go to GMT_site.

What are these examples?

  • griding: call a GMT module to griding a table data.
  • plot_grid: read a grid file and call GMT modules to plot the grid to an image file.
  • plot_memory: create a GMT grid container and call GMT modules to plot the grid to an image file.

How to run the examples?

Compile the executables and then run sequentially.

mkdir build && cd build && cmake .. && make