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 |
Floating Point Precision | Integer | PREC | Number of decimals of exported floating point values. A value of -1 writes the significant decimals. | Minimum: -1 Default: 2 |
Field Separator | Choice | SEPARATOR | - | Available Choices: [0] tabulator [1] ; [2] , [3] space [4] other Default: 0 |
other | Text | SEP_OTHER | - | Default: * |
Command-line
Usage: saga_cmd io_grid 5 [-GRIDS <str>] [-FILENAME <str>] [-HEADER <str>] [-NODATA <str>] [-PREC <num>] [-SEPARATOR <str>] [-SEP_OTHER <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
-PREC:<num> Floating Point Precision
Integer
Minimum: -1
Default: 2
-SEPARATOR:<str> Field Separator
Choice
Available Choices:
[0] tabulator
[1] ;
[2] ,
[3] space
[4] other
Default: 0
-SEP_OTHER:<str> other
Text
Default: *