other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
r.out.xyz(1grass) | Grass User's Manual | r.out.xyz(1grass) |
NAME¶
r.out.xyz - Export a raster map to a text file as x,y,z values based on cell centers.KEYWORDS¶
raster, exportSYNOPSIS¶
r.out.xyzParameters:¶
- input=name[,name,...]
-
- output=name
-
- fs=character
-
DESCRIPTION¶
The r.out.xyz module exports a raster map as a list of x,y,z values into an ASCII text file.NOTES¶
This module will not export x,y coordinates for raster cells containing a NULL value. This includes cells masked by a raster MASK. This module, as all GRASS raster modules, will export cells based on the current region settings. See the g.region module for details. The r.out.ascii module should be used to export an array (of size row x column) containing z values. r.out.xyz can combine several input raster maps, which can be convenient when it comes to e.g. produce ASCII point cloud files. r.out.xyz is simply a front-end to "r.stats -1gn".EXAMPLES¶
In this example, a LiDAR elevation map in the North Carolina sample dataset location is exported to CSV format.fs=space output=pointcloud.asc
TODO¶
Implement this script as a r.out.ascii option?SEE ALSO¶
g.region, r.mask r.out.ascii, r.statsAUTHOR¶
M. Hamish BowmanGRASS 6.4.4 |