3
<em>r3.in.ascii</em> allows a user to create a (binary) GRASS 3D raster map
4
layer from a 3D ASCII raster input file with (optional) TITLE.
7
Note that for compression the <em>none</em> option only specifies
8
that neither LZW nor RLE is used for compression. It
9
does not turn off the compression all together. 3D raster maps do
10
not support non-compressed files.
13
The <em>tiledimension</em> parameter defines the dimension of the tiles
14
used in the output file. The format is: XxYxZ
17
The <em>nv</em> parameter specifies which value to convert to NULL-value.
18
If the specified value is <em>none</em>, no conversion is performed.
19
Default is <em>none</em>.
23
The format of the 3D ASCII file:
24
<div class="code"><pre>
25
north: <em>floating point</em>
26
south: <em>floating point</em>
27
east: <em>floating point</em>
28
west: <em>floating point</em>
29
top: <em>floating point</em>
30
bottom: <em>floating point</em>
31
rows: <em>integer</em>
32
cols: <em>integer</em>
33
levels: <em>integer</em>
35
This header is followed by the cell values in <em>floating point</em> format
36
organized in rows with constant <em>col</em> and <em>level</em> coordinate.
37
The rows are organized by constant <em>level</em> coordinate. Individual cell
38
values are separated by <em>space</em> or <em>CR</em>.
40
NOTE: Currently, after the file has been imported, the stored values are
41
compared with the original data. This feature is used to find bugs in the
42
library at an early stage and will be turned off as soon as confidence has
47
4x3x2 sample. Note, that lower-left (SW) corner of the bottom level comes first.
48
This array format, where EW is preserved but NS is flipped, is sometimes
49
known as "ij" coordinates.
50
This is opposite to <em>r.in.ascii</em>'s format, which places the SW corner
51
at the beginning of the last row of data.
53
<div class="code"><pre>
63
w(x1,y1,z1) w(x2,y1,z1) w(x3,y1,z1) w(x4,y1,z1)
64
w(x1,y2,z1) w(x2,y2,z1) w(x3,y2,z1) w(x4,y2,z1)
65
w(x1,y3,z1) w(x2,y3,z1) w(x3,y3,z1) w(x4,y3,z1)
66
w(x1,y1,z2) w(x2,y1,z2) w(x3,y1,z2) w(x4,y1,z2)
67
w(x1,y2,z2) w(x2,y2,z2) w(x3,y2,z2) w(x4,y2,z2)
68
w(x1,y3,z2) w(x2,y3,z2) w(x3,y3,z2) w(x4,y3,z2)
72
Sample ASCII voxel map with one layer and several rows and columns (Spearfish area):
74
<div class="code"><pre>
84
1204.74 1204.48 1204.19 1203.81 1203.39
85
1203.89 1203.67 1203.34 1202.98 1202.43
86
1203.05 1202.80 1202.51 1202.11 1201.48
87
1202.10 1201.92 1201.62 1201.27 1200.68
92
Roman Waupotitsch, Michael Shapiro,
93
Helena Mitasova, Bill Brown, Lubos Mitas, Jaro Hofierka
98
<a href="r.in.ascii.html">r.in.ascii</a>,
99
<a href="r3.out.ascii.html">r3.out.ascii</a>,
100
<a href="v.to.rast3.html">v.to.rast3</a>
104
<i>Last changed: $Date: 2012-11-15 13:53:59 +0100 (Thu, 15 Nov 2012) $</i>