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