Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
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 -1g[n]".
g.region raster=elev_lid792_1m -p r.out.xyz input=elev_lid792_1m output=elev_lid792_1m.csv separator=","
In this example, elevation data from the North Carolina dataset are exported along with R,G,B triplet of the related orthophoto into a combined file (requires the import of the supplementary high-resolution color orthophoto, here called "ortho2010_t792"):
g.region raster=elev_lid792_1m res=1 -a -p r.out.xyz input=elev_lid792_1m,ortho2010_t792.red,ortho2010_t792.green,ortho2010_t792.blue \ separator=space output=pointcloud.asc # validate: X Y Z R G B head -n 3 pointcloud.asc 638300.5 220749.5 126.338218689 78 84 71 638301.5 220749.5 126.3381958008 93 101 86 638302.5 220749.5 126.3414840698 68 77 59
Last changed: $Date: 2016-12-08 22:45:03 -0800 (Thu, 08 Dec 2016) $
Available at: r.out.xyz source code (history)
Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
Main index | Raster index | Topics index | Keywords index | Full index
© 2003-2018 GRASS Development Team, GRASS GIS 7.0.7svn Reference Manual