Tool Change Data Storage
Changes a grid's data storage type, offset and scaling, e.g. from 4 byte floating point to 2 byte signed integer. This might be useful to increase precision or to save memory. If the target is not set, the original grid's storage type will be changed.
- Author: O.Conrad (c) 2003
 
- Menu: Grid|Values
 
Parameters
|   | Name | Type | Identifier | Description | Constraints | 
| Input | Grid | grid, input | INPUT | - | - | 
| Output | Converted Grid (*) | grid, output, optional | OUTPUT | - | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
 | Data storage type | choice | TYPE | - | Available Choices: [0] bit [1] unsigned 1 byte integer [2] signed 1 byte integer [3] unsigned 2 byte integer [4] signed 2 byte integer [5] unsigned 4 byte integer [6] signed 4 byte integer [7] 4 byte floating point number [8] 8 byte floating point number Default: 7 | 
 | Offset | floating point number | OFFSET | - | Default: 0.000000 | 
 | Scale | floating point number | SCALE | - | Default: 1.000000 | 
| (*) optional | 
Command-line
Usage: saga_cmd grid_tools 11 [-INPUT <str>] [-OUTPUT <str>] [-TYPE <str>] [-OFFSET <double>] [-SCALE <double>]
  -INPUT:<str>    	Grid
	grid, input
  -OUTPUT:<str>   	Converted Grid
	grid, output, optional
  -TYPE:<str>     	Data storage type
	choice
	Available Choices:
	[0] bit
	[1] unsigned 1 byte integer
	[2] signed 1 byte integer
	[3] unsigned 2 byte integer
	[4] signed 2 byte integer
	[5] unsigned 4 byte integer
	[6] signed 4 byte integer
	[7] 4 byte floating point number
	[8] 8 byte floating point number
	Default: 7
  -OFFSET:<double>	Offset
	floating point number
	Default: 0.000000
  -SCALE:<double> 	Scale
	floating point number
	Default: 1.000000