[GRASS-user] Transform single raster cells to 3d bars

Johannes Radinger johannesradinger at gmail.com
Fri Feb 6 02:26:34 PST 2015


Hi,

I have a 2D raster map with scattered single cells (e.g. created by
r.random.cells)
with lots of empty space (NaNs) between the cells. Each cell has a
value that represents actually the height of this cell. Now I'd like to
transform
the 2D raster cells into a 3D raster where each cell should "grow in height"
so that the cells become independent 3D bars with a their specific height.
The bottom of the bars (i.e. the base elevation level where the "grow" out)
should
be defined by another 2D raster map with base elevation levels.

The bars should than be exported to vtk to represent them in paraview.

I guess this can be done with r.to.rast3elev, but what is the input and what
the elevation map to use? What should be use for the upper and lower value?
And what is then the appropriate command to export  the bars
with r3.out.vtk?


Here what I am doing so far to create the random cells

r.random.cells output=random_cells distance=40

r.null map=random_cells setnull=0


Any suggestions?


/Johannes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150206/63b1e8b2/attachment.html>


More information about the grass-user mailing list