[vtkusers] VTK data files and formats...

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Tue Aug 22 18:54:04 EDT 2000


hi,

>>>>> "Terry" == Terry J Ligocki <tjligocki at lbl.gov> writes:


    Terry>    * Create a Structured Grid file for each time step with
    Terry> a copy of the (x,y,z) coordinates and the data - this
    Terry> creates a lot of redundant data (the coordinates) and
    Terry> increases the size of the data set by about a factor of 4.

    Terry>    * Create a Structured Grid file for the coordinates with
    Terry> no data, create a Structured Points file for each time step
    Terry> with the data, read the Structured Grid once, and for each
    Terry> time step read the a Structured Points and set the
    Terry> Structured Grid's point data to the Structured Points'
    Terry> point data.  This is what I do and it works but it seems a
    Terry> little weird, :-).

There is a third option.  Create a Structured grid data file with one
coordinate data and then create a whole set of scalar values for
different times like so.  Choose an appropriate label for each dataset
at a new time.  This way you store all the data in one file with only
one coordinate data set.  Access the different scalardata types using
the readers SetScalarsName() function.

# vtk header
example data.

<coord data>

SCALARS Temperature-0.1 <data type>
<data>

SCALARS Temperature-0.2 <data type>
<data>

SCALARS Temperature-0.3 <data type>
<data>

etc.

prabhu




More information about the vtkusers mailing list