Module 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
- Specification: grid
- Menu: Grid|Values
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Grid | Grid (input) | INPUT | - | - |
Output | Converted Grid (*) | Grid (optional output) | OUTPUT | - | - |
Options | 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 | OFFSET | - | Default: 0.000000 |
Scale | Floating point | SCALE | - | Default: 1.000000 |
(*) optional |
Command-line
Usage: saga_cmd grid_tools 11 [-INPUT <str>] [-OUTPUT <str>] [-TYPE <str>] [-OFFSET <str>] [-SCALE <str>]
-INPUT:<str> Grid
Grid (input)
-OUTPUT:<str> Converted Grid
Grid (optional output)
-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:<str> Offset
Floating point
Default: 0.000000
-SCALE:<str> Scale
Floating point
Default: 1.000000