r.out.xyz.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <h2>DESCRIPTION</h2>
  2. The <em>r.out.xyz</em> module exports a raster map as a list of x,y,z
  3. values into an ASCII text file.
  4. <p>
  5. <h2>NOTES</h2>
  6. This module will not export x,y coordinates for raster cells containing
  7. a NULL value. This includes cells masked by a raster MASK.
  8. <p>This module, as all GRASS raster modules, will export cells based on the
  9. current region settings. See the <em>g.region</em> module for details.
  10. <p>The <em>r.out.ascii</em> module should be used to export an array (of
  11. size row x column) containing z values.
  12. <p><em>r.out.xyz</em> is simply a front-end to "<tt>r.stats -1gn</tt>".
  13. <h2>EXAMPLE</h2>
  14. In this example, a LiDAR elevation map in the
  15. North Carolina sample dataset location is exported to CSV format.
  16. <div class="code"><pre>
  17. g.region rast=elev_lid792_1m -p
  18. r.out.xyz input=elev_lid792_1m output=elev_lid792_1m.csv separator=","
  19. </pre></div>
  20. <h2>TODO</h2>
  21. Implement this script as a <em>r.out.ascii</em> option?
  22. <h2>SEE ALSO</h2>
  23. <em>
  24. <a href="g.region.html">g.region</a>,
  25. <a href="r.mask.html">r.mask</a>
  26. <a href="r.out.ascii.html">r.out.ascii</a>,
  27. <a href="r.stats.html">r.stats</a>
  28. </em>
  29. <h2>AUTHOR</h2>
  30. M. Hamish Bowman<br>
  31. <i>Dept. Marine Science<br>
  32. Otago University, New Zealand</i>
  33. <p><i>Last changed: $Date$</i>