r3.in.xyz.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <h2>DESCRIPTION</h2>
  2. <em>r3.in.xyz</em> imports sparse XYZ data from an ASCII file into
  3. a 3D raster map (voxels). It does this by running the <em>r.in.xyz</em>
  4. module multiple times for different z-ranges and then assembling the
  5. slices with <em>r.to.rast3</em>.
  6. <p>
  7. See the <a href="r.in.xyz.html">r.in.xyz</a> help page for general
  8. parameter usage and tips.
  9. <p>
  10. The map is created using the rows, columns, and depths set by
  11. current region settings. Be sure to check and adjust these with
  12. the <em>g.region</em> module before performing the import.
  13. <p>
  14. You may either use the z-value as the data value for the voxel
  15. (e.g. with the 'n' statistic), or alternately scan another
  16. column for the data values to bin into the voxels. This alternate
  17. data column can be both filtered by range and have a scaling
  18. factor applied to it.
  19. <h2>NOTES</h2>
  20. The 2D and 3D horizontal region resolutions must match. See the
  21. EXAMPLES section below.
  22. <p>
  23. Unlike <em>r.in.xyz</em>, reading from stdin and z-scaling are not
  24. possible. Filtering by z-range is accomplished by setting the 3D region.
  25. <p>
  26. To enable parallel processing support, set the <b>workers=</b> option
  27. to match the number of CPUs or CPU-cores available on your system.
  28. Alternatively, the <tt>WORKERS</tt> environment variable can be set
  29. to the number of concurrent processes desired.
  30. <p>
  31. Points falling exactly on a vertical bound will belong to the depth
  32. band below them, except for points exactly on the top bound, which will
  33. belong to the top-most slice.
  34. <p>
  35. The script is expected to be nearly as efficient as if it was fully
  36. written in C.
  37. <h2>EXAMPLE</h2>
  38. Using the Serpent Mound dataset. (see the
  39. <a href="https://grasswiki.osgeo.org/wiki/LIDAR">GRASS LiDAR wiki page</a>)
  40. <div class="code"><pre>
  41. #scan dataset for extent:
  42. r3.in.xyz -s in=Serpent_Mound_Model_LAS_Data.txt out=dummy \
  43. x=1 y=2 z=3 separator=space
  44. # set the 2D and 3D regions:
  45. g.region n=4323641.57 s=4320942.61 w=289020.90 e=290106.02 res=1 -a
  46. g.region b=166 t=216 res3=1 tbres=5 -3 -p
  47. r3.in.xyz in=Serpent_Mound_Model_LAS_Data.txt out=serpent3D \
  48. method=mean x=1 y=2 z=3 separator=space type=float
  49. </pre></div>
  50. The same, but aggregate and store backscatter strength from column 5
  51. into voxels in instead of the z-value:
  52. <div class="code"><pre>
  53. r3.in.xyz in=Serpent_Mound_Model_LAS_Data.txt out=serpent3D.bakscat \
  54. method=mean x=1 y=2 z=3 val=5 separator=space type=float
  55. </pre></div>
  56. <h2>KNOWN ISSUES</h2>
  57. <em>r.to.rast3</em> always creates a <tt>double</tt> output map
  58. regardless of input.
  59. <h2>SEE ALSO</h2>
  60. <em>
  61. <a href="g.region.html">g.region</a>,
  62. <a href="r.in.xyz.html">r.in.xyz</a>,
  63. <a href="r.to.rast3.html">r.to.rast3</a>
  64. </em>
  65. <h2>AUTHOR</h2>
  66. Hamish Bowman<br>
  67. <i>Dunedin, New Zealand</i>