Hi,

is there any way to import vtk formated data files in
opendx. The structure of these data files look like:


<?xml version="1.0"?>
<VTKFile type="RectilinearGrid" format="ascii">
  <RectilinearGrid WholeExtent="1 82 1 50 1 66">
    <Piece Extent="1 82 1 50 1 66">
      <Coordinates>
        <DataArray NumberOfComponents="1" format = "ascii" type="Float32" 
Name="x-coords">
  0.
  0.100000001
  0.300000012
  0.5
  ...
  ...
        </DataArray>
        <DataArray NumberOfComponents="1" format = "ascii" type="Float32" 
Name="y-coords">
  0.
  0.0116908271
  0.0362415649
  0.0632473826
  ...
  ...
        </DataArray>
        <DataArray NumberOfComponents="1" format = "ascii" type="Float32" 
Name="z-coords">
  0.000000E+00
  1.000000E-01
  3.000000E-01
  5.000000E-01
  ...
  ...
        </DataArray>
      </Coordinates>
      <PointData Vectors="VelocityPhase1">
        <DataArray NumberOfComponents="3" format = "ascii" type="Float32" 
Name="VelocityPhase1">
          1.000189E-10   1.000189E-10   1.000189E-10
          1.000189E-10   1.000189E-10   1.000189E-10
          1.000189E-10   1.000189E-10   1.000189E-10
          ...
          ...
        </DataArray>
      </PointData>
    </Piece>
  </RectilinearGrid>
</VTKFile>

I mean, could this be done with a sort of 'general' file or
does there even exist some kind of module to import these kind of
data formats? Would be realy nice!

Best Greetings!
Fabian

Reply via email to