Tool Export Grid to XYZ
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.
- Author: O.Conrad (c) 2003
 
- Menu: File|Grid|Export
 
Parameters
|   | Name | Type | Identifier | Description | Constraints | 
| Input | Grids | Grid list, input | GRIDS | The grid(s) to export. | - | 
| Options | Grid System | Grid system | PARAMETERS_GRID_SYSTEM | - | - | 
 | File | File path | FILENAME | The output file. | - | 
 | Write Header | Boolean | HEADER | Write a header to the .xyz file. | Default: 1 | 
 | Write No-Data | Boolean | NODATA | Write No-Data cells to the .xyz file. | Default: 0 | 
Command-line
Usage: saga_cmd io_grid 5 [-GRIDS <str>] [-FILENAME <str>] [-HEADER <str>] [-NODATA <str>]
  -GRIDS:<str>   	Grids
	Grid list, input
  -FILENAME:<str>	File
	File path
  -HEADER:<str>  	Write Header
	Boolean
	Default: 1
  -NODATA:<str>  	Write No-Data
	Boolean
	Default: 0