This assumes that conda
is installed, probably through the Anaconda program already.
We will install a fresh environment with all of the tools you will need for this tutorial.
Note that you may have another install of gmt already that could possibly clash with this.
# tested using python.v3.13, and pygmt.v0.13.0
conda create --name pygmt --channel conda-forge ipython ipykernel jupyter numpy pandas gmt pygmt cartopy elevation
You may want to remove prior gmt
installs outsides of the python environment, as it may conflict.
# useful for command-line operations
conda activate pygmt
# I use a Mac/Linux terminal to do this
# make and change to ~a/directory/that/you/want/to/save/this/in
# e.g.
mkdir ~/pygmt_tutorial
cd ~/pygmt_tutorial
# get the tutorial
git clone [email protected]:avnewman/pyGMT-Tutorial.git
# ensure that you're in the directory with '.ipynb' files
jupyter notebook
Within the notebook proceed with the following order:
Beginner
- 01_Testing_Install.ipynb
- 02_Mapping_projections.ipynb
- 03_Mapping_Overlays.ipynb
- 04_Shaded_Relief.ipynb
Advanced
- 05_Shaded_Relief-Earthquake.ipynb
- 06_PlatesBoundariesLandWater.ipynb