Export Grid to XYZ
- Author: O.Conrad (c) 2003
- Menu: File | Grid | Export
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
| 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 number | 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 ] [-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: *