1r.to.rast3elev(1) Grass User's Manual r.to.rast3elev(1)
2
3
4
6 r.to.rast3elev - Creates a 3D volume map based on 2D elevation and
7 value raster maps
8
10 raster, raster3d, voxel, conversion
11
13 r.to.rast3elev
14 r.to.rast3elev help
15 r.to.rast3elev [-ulm] input=name[,name,...] elevation=name[,name,...]
16 output=name [upper=float] [lower=float] [--overwrite]
17
18 Flags:
19 -u Use the input map values to fill the upper cells
20
21 -l Use the input map values to fill the lower cells
22
23 -m Use G3D mask (if exists) with input map
24
25 --overwrite
26
27 Parameters:
28 input=name[,name,...]
29 Name of input raster map(s)
30
31 elevation=name[,name,...]
32 Name of elevation raster map(s)
33
34 output=name
35 Name for output raster3d map
36
37 upper=float
38 The value to fill the upper cells, default is null
39
40 lower=float
41 The value to fill the lower cells, default is null
42
44 Creates a 3D volume map based on 2D elevation and value raster maps.
45 If the 2d and 3d region settings are different, the 2d resolution will
46 be adjust to the 3d resolution. | How r.to.rast3elev works
47
49 The hight of the 2D elevation maps will be used to verify the position
50 within the 3D region. If the cell value of the elevation raster maps is
51 located within the 3d region, the cell value of the appropriate 2D
52 input raster maps will be written to the associated 3d cell. There are
53 flags and options to fill the upper and lower 3D cells with a specific
54 value, or the input raster maps values.
55
57 Simple Spearfish example
58 g.region -d
59 g.region res=200 res3=200 t=5000 b=0 tbres=100
60 # Write the values of raster map soils based on the elevation of eleva‐
61 tion.10m
62 # to the 3D map volev
63 r.elev.to.rast3 in=soils elev=elevation.10m out=volev
64 # Write the values of map soils based on the elevation of elevation.10m
65 # to the 3D map volev_l and fill the lower cells with the soils map
66 values
67 r.elev.to.rast3 in=soils elev=elevation.10m out=volev_l -l
68 # Write the values of map soils based on the elevation of elevation.10m
69 # to the 3D map volev_u and fill the upper cells with the soils map
70 values
71 r.elev.to.rast3 in=soils elev=elevation.10m out=volev_u -u
72
73
75 r.to.rast3
76 r3.cross.rast
77 g.region
78
80 Soeren Gebbert
81
82 Last changed: $Date: 2007/05/11 19:09:25 $
83
84 Full index
85
86
87
88GRASS 6.2.2 r.to.rast3elev(1)