[GRASS-user] r.out.vtk RGB / input issue
"Peter Löwe"
peter.loewe at gmx.de
Thu Jun 18 10:16:08 EDT 2009
Hi Sören,
thanks for your fast help - the patch works.
However, only limited success on the paraview-side (Paraview 3.4.0)
> In paraview 3.x select the display tab and choose "Color by" to switch
> from input scalars to rgb scalars.
This works, but results in a strangely colored image which bears little resemblance to the visualisation in GRASS with d.rgb or r.composite.
How can a similar coloring scheme be achieved in Paraview like the one for the source data in GRASS ?
Peter
-------- Original-Nachricht --------
> Datum: Thu, 18 Jun 2009 13:09:58 +0200
> Von: "Sören Gebbert" <soerengebbert at gmx.de>
> An: peter.loewe at gmx.de, grass-user at lists.osgeo.org
> Betreff: Re: [GRASS-user] r.out.vtk RGB / input issue
> 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
--
Dr. Peter Löwe
<peter.loewe at gmx.de>
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