SAGA 9.4.2 | Tool Library Documentation

Change Data Storage


Description

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, inputINPUT--
OutputConverted Gridgrid, output, optionalOUTPUT--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Data 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 point numberOFFSET-Default: 0.000000
Scalefloating point numberSCALE-Default: 1.000000

Command Line


Usage: saga_cmd grid_tools 11 [-INPUT ] [-OUTPUT ] [-TYPE ] [-OFFSET ] [-SCALE ]
  -INPUT:    	Grid
	grid, input
  -OUTPUT:   	Converted Grid
	grid, output, optional
  -TYPE:     	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:	Offset
	floating point number
	Default: 0.000000
  -SCALE: 	Scale
	floating point number
	Default: 1.000000