[Paraview] Scalars attribute for multiple set of scalar data

Kent Eschenberg eschenbe at psc.edu
Thu Mar 6 09:55:14 EST 2008


I think the "Scalars" keyword is doing nothing more than indicating which 
scalar is the default. In your case you have 2 scalars and so "Scalars" could 
be set to either one or not set at all. This also applies to the other keywords 
like "Vector" and also to cell data.

Most ParaView filters will, I think, initially use the default or, if not 
given, the first scalar. You can always select another scalar.

The documentation, in my opinion, explains this very poorly and never even uses 
the word "default".

Kent
Pittsburgh Supercomputing Center

Hom Nath Gharti wrote:
> Dear all,
>  
> I am using VTK XML file format. I have multiple set of scalar data, say 
> Velocity and Arrival time. I tried several trials but could not reach to 
> the correct one. What in fact, is the correct way to define the Scalar 
> (or Vectors ...) attributes for multiple set of data? 
>  
> trial1:
> <PointData Scalars="Velocity (km/s)" Scalars= "Arrival time (s)">
>      <DataArray type="Float32" Name="Velocity (km/s)" format="appended" 
> offset="0" />
>      <DataArray type="Float32" Name="Arrival time (s)" format="appended" 
> offset="389380" />
> </PointData>
>  
> trial 2:
> <PointData Scalars="Velocity (km/s)", "Arrival time (s)">
>      <DataArray type="Float32" Name="Velocity (km/s)" format="appended" 
> offset="0" />
>      <DataArray type="Float32" Name="Arrival time (s)" format="appended" 
> offset="389380" />
> </PointData>
>  
> trial 3:
> <PointData Scalars="Velocity (km/s)" "Arrival time (s)">
>      <DataArray type="Float32" Name="Velocity (km/s)" format="appended" 
> offset="0" />
>      <DataArray type="Float32" Name="Arrival time (s)" format="appended" 
> offset="389380" />
> </PointData>
>  
> so on...
>  
> I would greatly appreciate your help.
>  
> Hom Nath


More information about the ParaView mailing list