[GRASS-dev] [GRASS GIS] #1268: r.out.vtk does not work as desired for RGB images

#1268: r.out.vtk does not work as desired for RGB images
-------------------------+--------------------------------------------------
Reporter: voncasec | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.1
Component: Default | Version: svn-releasebranch64
Keywords: vtk | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------
r.out.vtk does not allow a user to export an RGB series of images to vtk
format without specifying a required image as well.

For example, running r.out.vtk for an rgb series, as described in the user
manual, returns the follwing:

{{{
r.out.vtk rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green
elevation=elevation.10m output=/tmp/out.vtk
ERROR:
Parameter 'input' (Name of input raster map(s)) is missing.
}}}

Running r.out.vtk for an rgb series as described below creates the VTK
file, but it is not viewable as an RGB image in Mayavi.

{{{
r.out.vtk input=FCIR_Composite
rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m
output=/tmp/out.vtk
}}}

To create the image for viewing in Mayavi, I currently have to convert the
image channels to rast3d layers (r.to.rast3), then export to vtk using the
r3.out.vtk option

{{{
r3.out.vtk top=elevation.10m bottom=elevation.10m
rgbmaps=rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green output=/tmp/out.vtk
}}}

Can the required option be changed with r.out.vtk so that it will not
prevent a user from exporting RGB channels only to vtk.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1268&gt;
GRASS GIS <http://grass.osgeo.org>

#1268: r.out.vtk does not work as desired for RGB images
--------------------------+-------------------------------------------------
  Reporter: voncasec | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.1
Component: Default | Version: svn-releasebranch64
Resolution: invalid | Keywords: vtk
  Platform: Linux | Cpu: x86-64
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => invalid

Comment:

Replying to [ticket:1268 voncasec]:
> r.out.vtk does not allow a user to export an RGB series of images to vtk
format without specifying a required image as well.
>
> For example, running r.out.vtk for an rgb series, as described in the
user manual, returns the follwing:
>
>
> {{{
> r.out.vtk rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green
elevation=elevation.10m output=/tmp/out.vtk
> ERROR:
> Parameter 'input' (Name of input raster map(s)) is missing.
> }}}

For a working example (the input map is the elevation map), see

http://grass.osgeo.org/wiki/GRASS_and_Paraview#RGB_visualization

I am not sure that this is a valid bug report. I have improved the
manual page of r.out.vtk (for all GRASS versions):

http://grass.osgeo.org/grass64/manuals/html64_user/r.out.vtk.html

Closing, feel free to reopen if needed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1268#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>