SAGA-GIS Module Library Documentation (v2.1.4)

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.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)INPUT--
OutputConverted Grid (*)Grid (optional output)OUTPUT--
OptionsData storage typeChoiceTYPE-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
OffsetFloating pointOFFSET-Default: 0.000000
ScaleFloating pointSCALE-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