Gary Sherman's blog

Creating a Simple "Globe" with GMT

The Generic Mapping Tools (GMT) can be used to create high quality maps for printing or use in web pages or documents.

You can easily create a simple globe (similar to the one on this website) using GMT. Here is the command:

  1. pscoast -JA0/20/2.5i -Bg30/g15 -Dl -A2000 -G187/142/46 -S109/202/255 \
  2. -R0/360/-90/90 -P -N1 > simple_hemi.eps

This produces:

Extracting and Warping a Raster

Sometimes you need just a portion of a raster for use in your latest mapping project. In this example we will see a simple way to extract a rectangular region of an image and warp it to the desired projection.

The tools for accomplishing this feat are gdal_translate and gdalwarp, both part of the GDAL suite of utilities. On Linux and Windows you can easily get access to these tools by installing FWTools. If you use a Mac, download the GDAL framework and required dependencies from Kyng Chaos.

Syndicate content