Introduction to GMT Andrew Goodliffe University of Alabama Socorro, NM, Friday May 30.

Slides:



Advertisements
Similar presentations
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Advertisements

a ridge a valley going uphill
Digital Image Processing Lecture11: Histogram Processing.
Annotation & Nomenclature By Corey Fortezzo for PG&G GIS Workshop, 2010.
Mapping.
Show the shape of the Earth’s surface.
Elizabeth North UMCES Horn Point Laboratory Using Surfer 8.0 UMCES HPL May 30, 2006.
Topographic Maps and Coordinate Systems. Topographic Maps Field –A region in space in which a similar quantity can be measured at every point or location.
Topographic maps show…. - USGS: Uses for topographic maps… -
ArcView and GMT – An Introduction to Two Simple GIS Systems Bill Langin EAS 781 9/18/02.
Building an Environment from Standard Models Mark Green School of Creative Media.
Quark QuarkXPress 4 Foundation Level Course. What is QuarkXPress? This courseware teaches the fundamentals of QuarkXPress 4.1. It is a page layout application.
Using Charts in a Presentation Lesson 6. Software Orientation Charts can help your audience understand relationships among numerical values. The figure.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Abstract # 0000 Make the Main Title with Large Bold Type Your Name Here Your Department Here Texas A&M Health Science Center Make the Main Title with Large.
The gchart Procedure The gchart Procedure is used to create bar charts of various types (it can also create pie charts. It’s most basic form would look.
Terrain Mapping and Analysis
 Percentage Bar graphs are similar ways to pie graphs. They are used to show different amounts of related data.  They are construct using a single bar.
Advanced File Processing
Make the Main Title with Large Bold Type Your Name and Title Here Your Department Here Texas A&M Health Science Center Make the Main Title with Large Bold.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 1 in MATLAB Topics Covered: 1.Plotting basic 2-D plots The plot()
Abstract # 0000 Make the Main Title with Large Bold Type Use Smaller Type for the Subtitle. Above Type is 105pt. This Type is 70pt. Make authors’ names.
Intro to shells, SAC, and GMT Rob Porritt UC Berkeley PhD candidate
Mentor Tools tutorial Bold Browser Design Manager Design Architect Library Components Quicksim Creating and Compiling the VHDL Model.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
OPL MRR Viewer Tutorial David Stark North Carolina State University 31 Jan 2008.
GMT: The Generic Mapping Tools Paul Wessel, Walter H.F. Smith and the GMT team.
Chapter 9 Creating and Designing Graphs. Creating a Graph A graph is a diagram of data that shows relationship among a set of numbers. Data can be represented.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Designing Original Illustrations Lesson 8.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
Microsoft ® Office Excel 2007 Working with Charts.
Latitude and Longitude Lab # 1
Mr. Spaterella Technology Oct. 18
Processing Lab 3 – Header issues and trace editing Bryce Hutchinson Objectives: Fixing elevation issues Define an LMO function Pick first breaks Kill traces.
Advanced GIS Using ESRI ArcGIS 9.3 3D Analyst part 2.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
Advanced Stata Workshop FHSS Research Support Center.
Mapping Finding your way with Latitude and Longitude Coordinate Sets.
Chapter 11: Block References and Attributes. After completing this Chapter, you will be able to use the following features: Create and insert block references.
Special Features of Informational Text “A picture is worth a thousand words.”
CKD Workshop  30 March 2011  Jim Kinter  Data Lessons from Project Athena GrADS Station Data Model Used for in situ observational data Individual reports.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
Topographic Maps  Two-dimensional representation of a Three-dimensional surface.  Coordinate systems  Latitude/Longitude (spherical)  Universal Transverse.
PLACING AND LINKING GRAPHICS
Claritas – 3D Land Geometry Example Workflow for an Example 3D Land Geometry Dataset supplied by USGS.
Topographic Maps Topographic maps show the shape of Earth’s surface and other surface features, such as roads, buildings, streams, cemetaries, mines, etc.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
Mapping. What is a map? It is a representation of something (Earth, stars, solar system, a building, etc… It is a representation of something (Earth,
Microsoft® Excel Use the Chart Tools Design tab. 1 Use the Chart Tools Layout and Format tabs. 2 Create chart sheets and chart objects. 3 Edit.
Introduction to Drafting and Design In order to begin our drawing we have to set the drawing limits or the paper size.
Adobe Photoshop T.Ahlam Algharasi. Adobe Photoshop Adobe Photoshop is a seriously powerful photo and image edit ( treating and manipulation, compositing,
Introduction to A+CAD. Objectives Understand fundamental CAD concepts Start A+CAD Tour the A+CAD interface Explore the different A+CAD data input methods.
CSC/FAR 020, Computer Graphics, October 26, 2009 Dr. Dale E. Parson More outline for week 8, Type tools.
Essential Questions - Topography
IENG-385 Statistical Methods for Engineers SPSS (Statistical package for social science) LAB # 1 (An Introduction to SPSS)
Make the Main Title with Large Bold Type Use Smaller Type for the Subtitle. Above Type is 110pt. This Type is 80pt. Make authors’ names smaller. This is.
Microsoft® PowerPoint © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 3.
Topography Maps. Topography The lay of the land. The lay of the land. Shows relief using contour lines. Shows relief using contour lines. –Relief- highs.
AP CSP: Pixelation – B&W/Color Images
Chapter Menu Lesson 1: Reading Maps
Mapping.
Topographic Maps Two-dimensional representation of a Three-dimensional surface. Coordinate systems Latitude/Longitude (spherical) Universal Transverse.
Topographic Maps Two-dimensional representation of a Three-dimensional surface. Coordinate systems Latitude/Longitude (spherical) Universal Transverse.
DEPARTMENT OF COMPUTER SCIENCE
CSc4730/6730 Scientific Visualization
Building Worksheet Charts
Unit 1 Structure of the Earth
CSC020, Computer Graphics Type tools 1.
Hongbo Yu, Brandon J. Farley, Dezhe Z. Jin, Mriganka Sur  Neuron 
Models of the Earth Earth Science Chapter 3.
Presentation transcript:

Introduction to GMT Andrew Goodliffe University of Alabama Socorro, NM, Friday May 30

GMT Exercise What is GMT? A tool commonly used by geophysicists for manipulating and visualizing data Free! Steep learning curve, but worth the climb Available from in a number of flavorshttp://gmt.soest.hawaii.edu There are other programs that will do the same sort of thing, but none have the same flexibility Building on your UNIX lesson, we will use GMT to create a simple map of the Socorro, NM area

Where did the data come from? Space Shuttle Radar Topography Mission (SRTM) data 1 Arc-second (~30 m) grids Downloaded from the USGS Seamless server ( and converted to a GMT format (NetCDF) gridhttp://seamless.usgs.gov/ –Re-sampled (using grdfilter) to a degree grid Also available from NASA (ftp://e0srp01u.ecs.nasa.gov)

SRTM From A transmit antenna illuminates the terrain with a radar beam which is scattered by the surface. Both arrays receive the reflected signal The signal coming to one antenna may have traveled slightly further than that arriving at the other This translates into a phase difference By measuring the phase difference we can determine the angle from which the signal came When combined with travel time, we can determine the distance to that point

The Basic C-Shell Open your favorite text editor on the UNIX system and create a file named socorro.csh If you are using xemacs you would type xemacs socorro.csh & –The & at the end puts the xemacs command in the background so that you get your prompt back

Anatomy…. Indicates that the script is a C-Shell Sets a variable for the area of the map Sets a variable for the tick marks on the map – annotations every 0.2 minutes, tick marks every 10 minutes Sets a variable for the map projection and scale – in this case the projection is Mercator and the scale is such that the x-axis of the map is 6.5 inches long Sets a variable for the output postscript file name Draws the basemap psbasemap and the four variables Displays the image using your viewer of choice Run the C-Shell by typing csh socorro.csh gmtset PLOT_DEGREE_FORMAT -ddd:mm:ssF Sets the format of the map annotation

The Map… Hopefully your map looks something like this (depending on settings in your.gmtdefaults file) Edit your C-Shell so that set B = -Ba0.2f10m Now reads set B = -BSWnea0.2f10m This will make it so that only the southern and western axes are labeled Note: to find other options in psbasemap, simply type man psbasemap – this will display the help pages

Add Topography You have each been given a two files – socorro.grd and socorro.cpt – these are the SRTM grid files and color palette file respectively grdimage will draw a color image of the topography in socorro.grd using the color palette (-C) socorro.cpt -K indicates that this is the first layer in a multi- layer image >> indicates postscript code is being appended to the file created by the previous command -O indicates that this is the last layer in a multi- layer image Run the c-shell -V means that the command will run in verbose mode

The Map…. White is the highest topography, brown is the lowest We can all agree that this color palette is ugly – lets take a moment to create a new one using grd2cpt Type man grd2cpt to see how to do this…. Or simply type grd2cpt

Changing the Color Palette In this case I have used the haxby color palette – experiment with other palettes

Add Illumination grdgradient creates an illumination file with simulated illumination from the north (-A0), dimensionless gradient (-M) normalized to 1 (- Nt). The output illumination file is socorro.grad grdimage has had the paramter –I added to it. This indicates that the resultant image will be illuminated with the file socorro.grad The grd2cpt command has been commented out – this does not need to be run any more

The Map…. There is now a lot more information in the map – you can start to see structures and river channels By changing the –A option in grdgradient, try recreating the image with different illumination angles. Does one angle help us to visualize structures better than another?

Add Contours grdcontour creates a layer in the postcript file that will display contours every 100 m (-C100) The grdgrdient command has been commented out – this does not need to be run any more Note that we are now using –O and –K. This indicates that this is neither the top of bottom layer in the postscript file

The Map…. We now have an idea of the size of the mountains around us – we know from running the script last time that the minimum and maximum contours are 1300 m and 3200 m respectively By changing the –C option in grdcontour, change the contour interval to 200 m. By using the –A option, add annotations every 1000 m

Add A Color Scale psscale draws a color bar using the color palette socorro2.cpt This is the location (x – 3.25 inches, y = -0.5 inches) and size (4 x 0.25 inches). h indicates that the bar is horizontal The bar is labeled every 500 m and annotated with “meters”

The Map…. The uninitiated reader now everything they need to know most of the map details. Why have I not added a regular scale bar?

Add the Location of the Library psxy plots points on maps using a number of different methods (see man psxy). Typically we would read these points from a file, but since we are only plotting one point, we will read it from the C- Shell. psxy can also be used to plot a regular graph A star (-Sa) with a 0.4 inch diameter is drawn The line thickness of the star is 1 point (1p) and the line is black (0) The color fill is the star is white (255) As input, psxy reads until it reaches END This is the longitude and latitude of the library

The Map…. Colors in GMT are specified in RGB format – thus 255/0/0 is red, 0/255/0 is green, etc. You can mix colors to create the color of your choice. By changing the –G option in psxy, change the color of the star (for example, -G255/0/0 would make the star red),

Add Some Text to the Map ptext plots text on maps Typically we would read text strings from a file, but since we are only plotting one text string we will read it from the C- Shell The font size is 14 points The text will be green This is the longitude and latitude at which the text will be plotted The text will be plotted horizontally (0 degrees) Font number 1 (helvetica) will be used The text will be centered on the point (CM)

The Map…. The text is plotted on top of the star. By changing the text justification (currently CM) and/or the text position, move the text so that it is under the star. You might want to also change the text color….

Add an Inset to the Map We are adding more layers after psbasemap, so we have added a -K We are redefining the area of the map – the inset will include the contiguous states. It will be 2 inches across This creates the basemap for the inset. The background is white (-G255), axis are drawn without label or ticks (- Bnesw), and the origin is offset horizontally by 0.2 inches (-X0.2) and vertically by 7.65 (-Y7.65) inches relative to the previous basemap A black star is plotted at Socorro pscoast is used to plot a low-resolution (-Dl) coastline is plotted. It has a line thickness of 1 point and is black

The Map…. My final map should be just like yours – except I have added state boundaries by adding another parameter to pscoast. By exploring man pscoast, work out how to add state boundaries. What can you do with this map now? The postscript format image can be read by a number of other packages – Adobe Illustrator being one example…. Extra time? Explore making other changes to your map…..