{"id":24352531,"url":"https://github.com/earthinversion/gmt_tutorial_for_beginners","last_synced_at":"2025-06-17T17:36:28.361Z","repository":{"id":119159219,"uuid":"103386470","full_name":"earthinversion/GMT_tutorial_for_beginners","owner":"earthinversion","description":"This package contains the scripts and commands to plot all types of high resolution figures using Generic Mapping Tools (GMT)","archived":false,"fork":false,"pushed_at":"2019-08-31T19:39:33.000Z","size":22449,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:22:33.164Z","etag":null,"topics":["gmt","mapping","seismology"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/earthinversion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-13T10:29:59.000Z","updated_at":"2023-12-26T18:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e35af5ac-4855-4090-b3a9-1400a8723267","html_url":"https://github.com/earthinversion/GMT_tutorial_for_beginners","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthinversion%2FGMT_tutorial_for_beginners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthinversion%2FGMT_tutorial_for_beginners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthinversion%2FGMT_tutorial_for_beginners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthinversion%2FGMT_tutorial_for_beginners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earthinversion","download_url":"https://codeload.github.com/earthinversion/GMT_tutorial_for_beginners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137996,"owners_count":21053775,"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":["gmt","mapping","seismology"],"created_at":"2025-01-18T15:54:56.493Z","updated_at":"2025-04-10T00:40:34.153Z","avatar_url":"https://github.com/earthinversion.png","language":"Shell","readme":"# GMT Tutorial for Beginners\n## Requirements:\n* Pre-installed GMT-5, check by typing `gmt` in terminal.\n* Pre-installed netcdf-5, check by typing `ncdump`.\n* Pre-installed ghostview package, check by typing `gv`.\n* Downloaded `ETOPO1_Bed_g_gmt4.grd` in the __Data__ directory from the [NOAA website](https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO1/data/bedrock/grid_registered/netcdf/).\n\n## Installing GMT\nIn Ubuntu: `sudo apt-get install gmt gmt-dcw gmt-gshhg`\n\nIn Mac: `brew install gmt`\n\nFor other operating systems, check [GMT website](http://gmt.soest.hawaii.edu/projects/gmt/wiki/Installing)\n\n## Description of the Package:\nThe package consists of three directories: Data, Scripts and Figures.\n\n* The __Data__ directory contains the data files required to run the scripts in the __Scripts__ directory.\n* The __Scripts__ directory consists of all the bash scripts numbered from 1-8. \n    - `1linearPlots.sh`: Contains commands for making basemap for linear projections including the log-log plot. It also explains how to add title, xlabel, ylabel, tick-marks, background-color to the plot.\n    - `2PlottingMaps.sh`: This explains how to plot the Mercator projection, Alber's projection, Orthographic projection, Eckert projection.\n    - `3PlottingLinesSymbols.sh`: This script explains the use of `psxy` command to plot the lines and symbols. It also contains the commands to plot the earthquake epicenter with colors representing depths and symbol size representing magnitude.\n    - `4PlottingTexts.sh`: This script explains how to type texts onto the plots. The user can even type mathematical equations.\n    - `5Plottingcontours.sh`: This bash script explains how to plot the contour lines using the command `grdcontour`. It also explains how to cut the large data set using the `grdcut` command and obtain the information about it using the `grdinfo`. It also explains how to do interpolation of data (__nearest neighbour__ and __spline__).\n    - `6Manipulating_Images.sh`: It contains the description of how to make the cpt files, and plot the colorbars using `psscale` command. It also explains plotting the relief data.\n    - `7multiD_maps.sh`: This script explains how to plot the multidimensional netcdf data in GMT. \n    - `8three-DPlots.sh`: It includes how to plot the data as 3D plots using two methods: mesh plot, color-coded surface. \n* The __Figures__ directory consists of all the example plots from 1-24.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthinversion%2Fgmt_tutorial_for_beginners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearthinversion%2Fgmt_tutorial_for_beginners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthinversion%2Fgmt_tutorial_for_beginners/lists"}