SAGA 9.6.1 | Tool Library Documentation

Formatted Text


Description

With this tool you can create new text field contents from the contents of other fields. To address other field's contents you have some format options as listed below. Fields are addressed either by their zero based column number or by their name. If the use no-data flag is unchecked and a no-data value appears in a record's input fields, the result will be an empty text string. Field contents can be combined using the '+' operator. Free text arguments have to be added in quota. A simple example: "No. " + index(1) + ": the value of '" + upper(0) + "' is " + number(1, 2)

index(offset = 0)record's index
string(field)field's content as it is
lower(field)field's content as lower case text
upper(field)field's content as upper case text
integer(field)field's content as integer number
real(field, precision)field's content as real number with optional precision argument


Parameters

 NameTypeIdentifierDescriptionConstraints
InputTabletable, inputTABLE--
OutputResulttable, output, optionalRESULT_TABLE--
Resultshapes, output, optionalRESULT_SHAPES--
OptionsFieldtable fieldFIELD--
Field NametextNAME-Default: New Field
FormattextFORMAT-Default: "Index: " + index(1)
SelectionbooleanSELECTION-Default: 1
Use No-DatabooleanUSE_NODATA-Default: 0

Command Line


Usage: saga_cmd table_tools 24 [-TABLE ] [-FIELD ] [-NAME ] [-FORMAT ] [-SELECTION ] [-USE_NODATA ] [-RESULT_TABLE ] [-RESULT_SHAPES ]
  -TABLE:        	Table
	table, input
  -FIELD:        	Field
	table field
  -NAME:         	Field Name
	text
	Default: New Field
  -FORMAT:       	Format
	text
	Default: "Index: " + index(1)
  -SELECTION:    	Selection
	boolean
	Default: 1
  -USE_NODATA:   	Use No-Data
	boolean
	Default: 0
  -RESULT_TABLE: 	Result
	table, output, optional
  -RESULT_SHAPES:	Result
	shapes, output, optional