Displaying Vectors

The iVector tool's primary purpose is to display vector data, though the tool is capable of much more once the data is visualized. The iVector tool can display multiple types of vectors and allows you to manipulate and edit the displays.

The first task is to display vector data. The following sections are examples of how to display various types of vector data.

Vector Fields

In a vector field, each datum is represented by a small arrow, with a length proportional to the magnitude of the flow at that location, and pointing in the direction of the flow.

The following example shows the flow produced by vectors of the form (-Y, X). To create this flow in IDL, enter the following code at the Command Line:

x = (y = FINDGEN(21) - 10) 
u = REBIN(-TRANSPOSE(y),21,21) 
v = REBIN(x,21,21) 
IVECTOR, u, v, x, y, AUTO_COLOR=1, $ 
   RGB_TABLE=39, SCALE_ISOTROPIC=1 

Figure 17-1: Vector Field Showing Flow

ivector_vectorfield01.gif

Note
The setting AUTO_COLOR=1 sets the color of each vector according to its magnitude. The ISOTROPIC setting ensures that the X and Y coordinates have the same scaling.

Note
For information on how to display vectors using the Visualization Palette, see Vector Visualizations).

Wind Barbs

Vector data represented using wind barbs shows data using arrow shafts with barbs and flags. The direction of the arrow indicates the direction of the wind flow. Barbs and flags represent wind speed in knots. A short barb represents 5 knots while each long barb represents 10 knots. Each flag represents 50 knots. Collectively, the barbs and flags indicate the magnitude on each arrow, using the following conventions:

Speed (knots)
Symbol

0 - 0.5

Dot

0.5 - 2.5

Shaft only ____

2.5 - 7.5

Short barb `___

7.5 - 12.5

Long barb \___

12.5 - 17.5

Long + short barb \`__

17.5 - 22.5

Two long barbs \\__

47.5 - 52.5

Flag /\__

By convention, for geographic data (GRID_UNITS=1 or 2) the barbs and flags point in the clockwise direction in the Northern hemisphere and counterclockwise in the Southern hemisphere. For non-geographic data (GRID_UNITS=0) the barbs and flags always point in the clockwise direction.

The following example shows the wind barbs produced by a field of the form (-Y, X). In this example the VECTOR_STYLE keyword sets the style to wind barbs. To create these wind barbs in IDL, enter the following code at the Command Line:

x = (y = 2*FINDGEN(11) - 10) 
u = 9*REBIN(-TRANSPOSE(y),11,11) 
v = 9*REBIN(x,11,11) 
IVECTOR, u, v, x, y, VECTOR_STYLE=1 

Figure 17-2: Wind Barbs in iVector

ivector_windbarbs01.gif