![]() |
![]()
| ![]() |
![]()
NAMEr.out.xyz - Exports a raster map to a text file as x,y,z values based on cell centers. KEYWORDSraster, export, output, ASCII, conversion SYNOPSISr.out.xyz
Flags:Parameters:
DESCRIPTIONThe r.out.xyz module exports a raster map as a list of x,y,z values into an ASCII text file. NOTESThis module will by default not export x,y coordinates for raster cells containing a NULL value. This includes cells masked by a raster MASK. Using the flag -i also these raster cells will be included in the exported data. 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]". EXAMPLESIn this example, a LiDAR elevation map in the North Carolina
sample dataset is exported to CSV format.
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 \ TODOImplement this script as a r.out.ascii option? SEE ALSOg.region, r.mask r.out.ascii, r.stats AUTHORM. Hamish Bowman
SOURCE CODEAvailable at: r.out.xyz source code (history) Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d Main index | Raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|