Export Grid to XYZ File

Use the Grid and Image > Utilities > Export Grid to XYZ File menu option (GRIDXYZ GX) to export a .GRD file to an .XYZ file.

Export Grid to XYZ File dialog options

Input grid file

Select input file name (*.grd file).

Script Parameter: GRIDXYZ.GRD

New XYZ file

Name of New XYZ file

Script Parameter: GRIDXYZ.XYZ

Use grid indexes as station numbers

Select, "Yes" or "No" to use Grid Indexes as Station Numbers (Default is Yes).

Script Parameter: GRIDXYZ.INDEX

Decimation factor in X direction

Decimation Factor in X direction (integer) (Default is 1)

Script Parameter: GRIDXYZ.XDEC

Decimation factor in Y direction

Decimation Factor in Y direction (integer) (Default is 1).

Script Parameter: GRIDXYZ.YDEC

Use line labels

Use line labels in output file. (Default is Yes).

Script Parameter: GRIDXYZ.LABEL

Application Notes

This utility can be useful for exporting gridded data into some other graphics system than can only accept positioned point data. It is also useful for creating pseudo-survey lines from a gridded data set. The resultant XYZ data can then pre-processed by the other programs in the mapping system to make different kinds of plots.

The "Grid Index as Station Numbers" option is used to place grid index numbers as station numbers in XYZ file. If the "Decimation Factor in X Direction" and "Y Direction" values are both 1, then every line AND every element will be output.

The "Line Label option is used to place or remove line labels from the output XYZ file. By default, each grid line extracted will begin with a line label and line number the same as the extracted grid vector.

Each grid line will be placed in a separate line of the XYZ file, and the line number will be the X or Y grid index depending on the line direction. Lines are always extracted in the grid row storage direction (as indicated by the KX parameter in the grid header). It may be necessary to transpose the grid with GRIDTRNS GX in order to get the desired result.