Vector Field function
Overview
The Vector Field function is used to composite and convert two rasters into a two-band raster that is of either data type Magnitude-Direction or data type U-V.
Notes
If the Input Data Type parameter is Magnitude-Direction, you also need to specify the Angular Reference System. parameter.
The U value is sometimes referred to as the zonal velocity or velocity along latitudinal lines. The V value is sometimes referred to as the meridional velocity or velocity along longitudinal lines.
Conversion between U-V and Magnitude-Direction
The two subsections below contain the formulas for the appropriate conversions. The variables are as follows:
u = vector-U
v = vector-V
m = magnitude
d = direction
Magnitude-Direction to U-V
\(u \space = \space m \space * \space cos \space (pi \space * d \space / \space 180)\)
\(v \space = \space m \space * \space sin \space (pi \space * \space d \space /180)\)
U-V to Magnitude-Direction
\(m \space = \space sqrt \space (u \space * \space u \space + \space v \space * \space v)\)
\(d \space = \space atan2 \space (v \space / \space u) \space * \space 180 \space / \space p\)
Parameters
|
Parameter |
Description |
|---|---|
|
Raster1 |
The first input raster. This will be either the U value or the magnitude. |
|
Raster2 |
The second input raster. This will be either the V value or the direction. |
|
Input Data Type |
The type of vector field your inputs represent.
|
|
Angular Reference System |
Specifies how the direction component was measured.
|
|
Output Data Type |
Specifies the type of vector field your output will represent.
|