Displaying Vector Data on a Map

You can use the iVector tool along with the iMap tool to easily add vector data in a map display.

  1. Load some vector data representing global wind patterns:
  2. RESTORE, FILEPATH('globalwinds.dat', SUBDIR=['examples','data'])

    This command creates four variables — u, v, x, and y— that contain the vector data.

  3. Create a map display of the globe, using the Mollweide projection:
  4. IMAP, MAP_PROJECTION='Equirectangular', LIMIT=[-35, -90, 35, 90]

  5. Select Insert   Map  Continents to display the continental outlines.
  6. Double-click on the continental outlines to display their property sheet. Set the Transparency value to zero and select a light grey fill color.
  7. Finally, launch iVector to create the vector display, coloring the wind vectors according to their magnitude:
  8. IVECTOR, u, v, x, y, /OVERPLOT, X_SUBSAMPLE=3

For additional information on creating vector displays, see the Working with Vectors and IVECTOR topics in the IDL Online Help.

ivector.gif