SAGA 9.4.2 | Tool Library Documentation

Export Grid to XYZ


Description

The tool allows one to export a grid or several grids to a table (text format), which stores the x/y-coordinates and the cell values of the input grid(s). By default, No-Data cells are not written to the output. This can be changed with the "Write No-Data" parameter. If No-Data cells are skipped, these are detected for the first input grid which operates like a mask.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsgrid list, inputGRIDSThe grid(s) to export.-
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Filefile pathFILENAMEThe output file.-
Write HeaderbooleanHEADERWrite a header to the .xyz file.Default: 1
Write No-DatabooleanNODATAWrite No-Data cells to the .xyz file.Default: 0
Floating Point Precisioninteger numberPRECNumber of decimals of exported floating point values. A value of -1 writes the significant decimals.Minimum: -1 Default: 2
Field SeparatorchoiceSEPARATOR-Available Choices: [0] tabulator [1] ; [2] , [3] space [4] other Default: 0
othertextSEP_OTHER-Default: *

Command Line


Usage: saga_cmd io_grid 5 [-GRIDS ] [-FILENAME ] [-HEADER ] [-NODATA ] [-PREC ] [-SEPARATOR ] [-SEP_OTHER ]
  -GRIDS:    	Grids
	grid list, input
  -FILENAME: 	File
	file path
  -HEADER:   	Write Header
	boolean
	Default: 1
  -NODATA:   	Write No-Data
	boolean
	Default: 0
  -PREC:     	Floating Point Precision
	integer number
	Minimum: -1
	Default: 2
  -SEPARATOR:	Field Separator
	choice
	Available Choices:
	[0] tabulator
	[1] ;
	[2] ,
	[3] space
	[4] other
	Default: 0
  -SEP_OTHER:	other
	text
	Default: *