Gradient Vector from Polar to Cartesian Coordinates
- Author: Victor Olaya & Volker Wichmann (c) 2004-2010
- Menu: Grid | Calculus | Conversions
Description
Converts gradient vector from polar coordinates (direction or aspect angle and length or tangens of slope) to directional components (Cartesian).
The tool supports three conventions on how the angle of direction can be supplied:
(a) mathematical: direction angle is zero in East direction and the angle increases counterclockwise
(b) geographical: direction angle is zero in North direction and the angle increases clockwise
(c) zero direction and orientation are user defined
Parameters
|  | Name | Type | Identifier | Description | Constraints | 
|---|
| Input | Direction | grid, input | DIR | - | - | 
| Length | grid, input | LEN | - | - | 
| Output | X Component | grid, output | DX | - | - | 
| Y Component | grid, output | DY | - | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
| Polar Angle Units | choice | UNITS | - | Available Choices:
[0] radians
[1] degree
Default: 0 | 
| Polar Coordinate System | choice | SYSTEM | - | Available Choices:
[0] mathematical
[1] geographical
[2] user defined
Default: 1 | 
| User defined Zero Direction | floating point number | SYSTEM_ZERO | given in degree clockwise from North direction | Minimum: 0.000000
Maximum: 360.000000
Default: 0.000000 | 
| User defined Orientation | choice | SYSTEM_ORIENT | - | Available Choices:
[0] clockwise
[1] counterclockwise
Default: 0 | 
Command Line
Usage: saga_cmd grid_calculus 16 [-DIR ] [-LEN ] [-DX ] [-DY ] [-UNITS ] [-SYSTEM ] [-SYSTEM_ZERO ] [-SYSTEM_ORIENT ]
  -DIR:           	Direction
	grid, input
  -LEN:           	Length
	grid, input
  -DX:            	X Component
	grid, output
  -DY:            	Y Component
	grid, output
  -UNITS:         	Polar Angle Units
	choice
	Available Choices:
	[0] radians
	[1] degree
	Default: 0
  -SYSTEM:        	Polar Coordinate System
	choice
	Available Choices:
	[0] mathematical
	[1] geographical
	[2] user defined
	Default: 1
  -SYSTEM_ZERO:	User defined Zero Direction
	floating point number
	Minimum: 0.000000
	Maximum: 360.000000
	Default: 0.000000
  -SYSTEM_ORIENT: 	User defined Orientation
	choice
	Available Choices:
	[0] clockwise
	[1] counterclockwise
	Default: 0