[Paraview] Legacy VTK files - format issues

Anthony Rollett rollett at andrew.cmu.edu
Thu Mar 31 13:10:28 EDT 2011


For anyone who has had problems with reading legacy VTK files, esp. in v 3.10, be careful to avoid leading spaces, and to use UPPERCASE.
For example, this works:
# vtk DataFile Version 2.0
written by FFT4-FFTW-mpi 
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS         512          64          64
ORIGIN 0.0 0.0 0.0
SPACING    1.10462212541120       0.475555065232886       0.475555065232886     
POINT_DATA     2097152
SCALARS stress float
LOOKUP_TABLE default
etc.

This, e.g., does not work (file reads in but nothing displays)!
# vtk datafile Version 2.0
written by FFT4-FFTW-mpi 
ASCII
 DATASET STRUCTURED_POINTS
DIMENSIONS         512          64          64
 ORIGIN 0.0 0.0 0.0
 spacing    1.10462212541120       0.475555065232886       0.475555065232886     
POINT_DATA     2097152
SCALARS stress float
LOOKUP_TABLE default

regards, Tony Rollett






More information about the ParaView mailing list