Beyond the Mouse LAB 9: GMT 1
November 7, 9
Instructor: Jeff Freymueller
x7286 Elvey 413B jfreymueller@alaska.eduTA: Shanshan Li
Last Updated: November 7, 2017
Due: Tuesday Nov 14 before class
Data
Assignment
Send me scripts/commands to produce three maps and at least one x-y plot. You're welcome to choose from the options I am giving below, or come up with your own maps, mapping your own datasets. If you plot your own data, send these as well!
Running the VirtualBox
Check here if you forgot how that works. Really. Go there if you forgot something.
Simple Plotting
Go to the presentations slides and find the slides that create the simple Alaska maps including coastline. Experiment with
with the Alaska example and add your own data or your own favorit places.
Make two different versions of the map with different things plotted and annotated.
You can use pstext
to add text annotation.
Now plot these data in an x-y-Plot (see lecture slide example, again)
You will create an output file in postscript format, and life will be easier if
you end the filename with the extension .ps, for example map.ps
.
Use the program evince
to view postscript files, for example evince map.ps
.
Play with a prepared example
- Download all the datasets listed above
- Into the same directory download alaska.sh
(you will need to do "Save Link As..." rather than clicking on it) and make it executable with
chmod +x alaska.sh
- A version of this for GMT 4 is alaska.gmt4.sh
- Play with it. If your're plotting all data, in a certain projection, you'll get this map: alaska.pdf
- Start by removing elements of the plot (comment out lines by putting a
#
character at the start of a line), or change the order of the commands. - Try a different color table (cpt) file: continent.cpt (again, you will need to do "Save Link As..."),
Reproduce E. Calais' Worldmap example
- Follow the example (for GMT4) that involves
etopo5.grd
given in these slides: http://web.ics.purdue.edu/~ecalais/teaching/gmt/GMT_6.pdf. If this link is dead, get my copy). - Try to recreate the fancy shaded world topo map. Calais used GMT version 4 for this example. I am pretty sure that the only changes for GMT5 are to add "gmt " before each module's name.
Dr. Jeffrey T. Freymueller
Professor of Geophysics
Geophysical Institute
University of Alaska, Fairbanks
Fairbanks, AK 99775-7320