Giter Club home page Giter Club logo

gmt_tutorial_for_beginners's Introduction

GMT Tutorial for Beginners

Requirements:

  • Pre-installed GMT-5, check by typing gmt in terminal.
  • Pre-installed netcdf-5, check by typing ncdump.
  • Pre-installed ghostview package, check by typing gv.
  • Downloaded ETOPO1_Bed_g_gmt4.grd in the Data directory from the NOAA website.

Installing GMT

In Ubuntu: sudo apt-get install gmt gmt-dcw gmt-gshhg

In Mac: brew install gmt

For other operating systems, check GMT website

Description of the Package:

The package consists of three directories: Data, Scripts and Figures.

  • The Data directory contains the data files required to run the scripts in the Scripts directory.
  • The Scripts directory consists of all the bash scripts numbered from 1-8.
    • 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.
    • 2PlottingMaps.sh: This explains how to plot the Mercator projection, Alber's projection, Orthographic projection, Eckert projection.
    • 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.
    • 4PlottingTexts.sh: This script explains how to type texts onto the plots. The user can even type mathematical equations.
    • 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).
    • 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.
    • 7multiD_maps.sh: This script explains how to plot the multidimensional netcdf data in GMT.
    • 8three-DPlots.sh: It includes how to plot the data as 3D plots using two methods: mesh plot, color-coded surface.
  • The Figures directory consists of all the example plots from 1-24.

gmt_tutorial_for_beginners's People

Contributors

earthinversion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.