other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
r.out.vtk(1grass) | Grass User's Manual | r.out.vtk(1grass) |
NAME¶
r.out.vtk - Converts raster maps into the VTK-Ascii formatKEYWORDS¶
raster, exportSYNOPSIS¶
r.out.vtkFlags:¶
- -p
-
- -s
-
- -t
-
- -v
-
- -o
-
- -c
-
- --verbose
-
- --quiet
-
Parameters:¶
- input=name[,name,...]
-
- output=string
-
- elevation=string
-
- null=float
-
- elevation2d=float
-
- rgbmaps=string[,string,...]
-
- vectormaps=string[,string,...]
-
- elevscale=float
-
- dp=integer
-
DESCRIPTION¶
Outputs raster maps in VTK-ASCII format. Map's are valid raster map's in the current mapset. output is the name of an VTK-ASCII file which will be written in the current working directory. If output is not specified then stdout is used. The module is sensitive to region settings (set with g.region). Elevation, scaling, point/celldata, vector and RGB Data are supported. If the map is in LL projection, the elevation values will automatically scaled to degrees. It is supposed that the elevation values are provided in meters. If the elevation values are in a different unit than meters, use the scale parameter to convert the units. If no elevation map is given, the user can set the hight of the map by one value. Point or cell data are available. Also scaling is supported for this elevation value. The elevation value must be provided in meters. The RGB input requires three raster maps: red, green, blue - in this order. The maps must have values between 0 and 255, otherwise you will get lots of warnings and the values are set to 0. More than one RGB dataset (3 maps) is not supported. The vector input requires three raster maps: x, y, z -- defining the vector coordinates - in this order. More than one vector dataset (3 maps) is not supported.NOTES¶
This filter generates:- structured points with celldata or pointdata if no elevationfile is given
- structured grid (not recommendet) with pointdata if an elevationfile is given
- polydataset with pointdata if an elevationfile is given (default)
Difference between point- and celldata¶
r.out.vtk can export raster cells with different representations.- pointdata -- the cells/values are represented by the center of the cell. Instead of cells, points are created. Each point can hold different values, but the user can only visualize one value at a time. These points can be connected in different ways.
- celldata -- is only provided if no elevation map is given. The cells are created with the same hight and width as in GRASS. Each cell can hold different values, but the user can only visualize one value at a time.
EXAMPLE¶
Simple Spearfish example¶
Spearfish example with RGB data¶
output=wms_global_mosaic
elevation=elevation.10m output=/tmp/out.vtk
-
In Paraview, click "Apply"
-
Select the "Display" tab and choose "Color by" to switch from input scalars to rgb scalars
-
Disable the "Map Scalars" check button in the display tab to avoid the use of a lookup table
SEE ALSO¶
r3.out.vtk, r.out.ascii, g.regionAUTHOR¶
Soeren Gebbert Last changed: $Date: 2013-02-15 23:04:18 +0100 (Fri, 15 Feb 2013) $ Full index © 2003-2014 GRASS Development TeamGRASS 6.4.4 |