r.out.vtk does not work as desired for RGB images
|Reported by:||voncasec||Owned by:|
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.