Docsity

Annotated Map of Alaska with GMT: Projection, Region, Grid Lines, Rivers, and Scale Bar - , Lab Reports of Geology

Toggle sidebar
bg1
GEOL 4385 Spring 2009
http://desktopgisbook.com/simp le_globe
Lab 8 Tutorial
-- GMT: CREATING AN ANNOTATED MAP --
For this example, we’ll create a map of Alaska and annotate it. Recall from the
simple globe example that the -R switch controls the extent of a GMT map.
Alaska ranges from about 172 degrees east longitude to 130 degrees west. Using
360 degrees for the entire globe, this translates to a region extending from 172
degrees to 230 degrees.
For the Alaska map we will use the Albers Equal Area Conic projection. Looking
at the syntax for pscoast reveals that this requires the use of the -Jb switch. In this
case, we use the lowercase “b” to indicate that we will specify the size of the map
using a scale.
First lets look at the command used to create the map:
pscoast -Jb-154/50/55/65/1:21000000 -R172/230/51/72
-B10g5/5g5 -W1p/0/0/0 -P -Ia/2p/0/192/255
-G220/220/220 -S0/192/255 -L210/54/54/1000
-N1/1p/0/0/0 > alaska_map.ps
As seen below, this produces a nice map of Alaska, with grid lines, borders and
degree annotations. The land and water is filled as we specified and the scale bar
is sitting nicely in the Gulf of Alaska.
pf3

Partial preview of the text

Download Annotated Map of Alaska with GMT: Projection, Region, Grid Lines, Rivers, and Scale Bar - and more Lab Reports Geology in PDF only on Docsity!

Lab 8 Tutorial

-- GMT: CREATING AN ANNOTATED MAP --

For this example, we’ll create a map of Alaska and annotate it. Recall from the simple globe example that the - R switch controls the extent of a GMT map. Alaska ranges from about 172 degrees east longitude to 130 degrees west. Using 360 degrees for the entire globe, this translates to a region extending from 172 degrees to 230 degrees. For the Alaska map we will use the Albers Equal Area Conic projection. Looking at the syntax for pscoast reveals that this requires the use of the - Jb switch. In this case, we use the lowercase “b” to indicate that we will specify the size of the map using a scale. First lets look at the command used to create the map: pscoast - Jb- 15 4/50/55/65/1:21 000000 - R172/230/51/

- B10g5/5g5 - W1p/0/0/0 - P - Ia/2p/0/192/ **- G220/220/220 - S0/192/255 - L210/54/54/

  • N1/1p/0/0/0 > alaska_map.ps** As seen below, this produces a nice map of Alaska, with grid lines, borders and degree annotations. The land and water is filled as we specified and the scale bar is sitting nicely in the Gulf of Alaska.

This looks like quite a complex command, but it’s really not too bad once you get past all the numbers and slashes. Projection (-J) First note that we specified the projection using - Jb-154/50/55/65/1:21 000000. Lets pick that apart a bit to see what’s happening. The Albers projection requires the longitude of the central meridian, the latitude of the origin, and the latitude of the two standard parallels. That’s what you see specified as - 154/50/55/65. These are the standard values used for the Albers projection in Alaska. You can actually specify any values you want, but if there is a standard for the area you are mapping you should use it. The remaining part of the - Jb switch is the size of the output. In this case we specified it as a scale of 1:12,000,000. This means that one unit on the map represents 12,000,000 units on the ground (in this case meters). If we just wanted output to fit on a page, we could specify - JB-154/50/55/65/6.0i to get a 6-inch wide image. Map Region (-R) To set the map extent we use the - R switch. In this case we already determined that Alaska ranges from 172 to 230 degrees longitude and roughly 51 to 72 degrees north latitude. To create the map covering this area, we use - R172/230/51/72. Map Boundary Grid Lines (-B) In this example we not only want to draw grid lines, but also want to annotate them. This is done using - B10g5/5g5. This tells pscoast to draw grid lines 5 degrees apart for both latitude and longitude. The annotation is drawn at 10 degree intervals for longitude and 5 degree intervals for latitude. If you look at the documentation for pscoast you will see that the first number after the - B is the annotation interval followed by the grid line interval. This notation gives you a lot of flexibility in drawing and labeling gridlines. Rivers (-I) To make our map more interesting, we’ll add rivers to it. GMT comes with several levels of river detail which are specified with the - I switch. The levels we are using are for all river features (-Ia): Permanent major rivers Additional major rivers Additional rivers Minor rivers