[GRASS-user] r.out.vtk RGB / input issue

"Sören Gebbert" soerengebbert at gmx.de
Thu Jun 18 07:09:58 EDT 2009


Hello Peter,
i have checked this issue. 
The behavior of r.out.vtk is correct.

An input must be provided, this is not optional.
To change this, you have to apply this little patch:

===================================================================
--- parameters.c        (Revision 37861)
+++ parameters.c        (Arbeitskopie)
@@ -29,6 +29,7 @@
 void set_params()
 {
     param.input = G_define_standard_option(G_OPT_R_INPUTS);
+    param.input->required = NO;



If you use the rgb and the input parameter (which is the default), 
then you have to choose which data has should be displayed in your visualization software. By default, the input scalars are the "active"
scalar array in the vtk output file.

e.g:
In paraview 3.x select the display tab and choose "Color by" to switch from input scalars to rgb scalars. 

Best regards
Soeren

-------- Original-Nachricht --------
> Datum: Wed, 17 Jun 2009 15:18:23 +0200
> Von: peter.loewe at gmx.de
> An: grass-user at lists.osgeo.org
> Betreff: [GRASS-user] r.out.vtk RGB / input issue

> hi,
> 
> i am using v.out.vtk on grass6.3 on suse.
> 
> trying to export 2.5d rgb-maps to paraview using r.out.vtk always ends up
> with an error message:
> 
> According to the module's manual it should be possible to export a RGBmap
> + dem by using the parameters
> 
> rgbmaps=redmap,bluemap,greenmap elevation=my_dem output=result.vtk
> 
> However, the module reports that the INPUT parameter has to be provided.
> 
> trying 
> 
> input=rgbmap rgbmaps=redmap,bluemap,greenmap elevation=my_dem
> output=result.vtk
> 
> results in the same as 
> 
> input=rgbmap elevation=my_dem output=result.vtk
> 
> In both cases "result.vtk" is displayed with interpolated false colors.
> 
> How can a RGB composite created in GRASS properly be transferred and
> displayed in Paraview ?
> 
> Peter
> -- 
> Dr. Peter Löwe
> <peter.loewe at gmx.de>
> 
> 
> 
> 
> 
> GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss
> für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


More information about the grass-user mailing list