[Paraview] Dimensions of a Hyperslab

Robert Petersen rpetersen at ucsd.edu
Fri Aug 2 10:33:58 EDT 2013


I am facing an odd situation concerning the creation of a Hyperslab.  To
get paraview to correctly read my data I must specify the dimensions of a
Hyperslab using values for the Dimensions attribute one less that I expect.

I have DataItem that has DImensions "7 193 32".  The slowest
varying dimensions (7) is the timestep.  So this data represents 7
timesteps of 2D data that is 193x32.  The data is centered on the nodes.
 If I create a Hyperslab with dimensions "1 193 32" or "0 193 32" in
paraview the resultant data array is of length 6368.  This is 192 more
points than expected.  The value of the first 6176 (193x32) points contains
the data from the referenced HDF5 file.  The extra 192 points contains
"random" data, I assume the contents of the uninitialized memory which was
allocated.

First is this the expected behaviour and if so can someone explain why as I
can not formulate a reasonable rational for what I see.

The XDMF follows.

Thanks,
Robert

  <?xml version="1.0" ?>
  <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
  <Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
   <!-- The data -->
   <DataItem Dimensions="7 193 32" NumberType="Float" Precision="8"
Format="HDF"> eta.h5:/data </DataItem>
   <!-- The XY locations -->
   <DataItem Dimensions="6176 2" NumberType="Float" Precision="8"
Format="HDF"> eta.h5:/xy </DataItem>
   <!-- The grid geometry -->
   <Geometry GeometryType="XY"> <DataItem Reference="/Xdmf/DataItem[2]" />
</Geometry>
   <!-- The topology dimension is Z,Y,X -->
   <Topology TopologyType="2DSMesh" Dimensions="0 193 32"/>
   <Domain>
     <Grid Name="Viscosity Grid" GridType="Uniform">
       <Topology Reference="/Xdmf/Topology[1]" />
       <Geometry Reference="/Xdmf/Geometry[1]" />
       <Attribute Name="Viscosity" AttributeType="Scalar" Center="Node">
  <!--   <DataItem Dimensions="1 193 32" Type="HyperSlab"> -->
  <!--   <DataItem Dimensions="0 193 32" Type="HyperSlab"> -->
         <DataItem Dimensions="0 192 31" Type="HyperSlab">
           <DataItem Dimensions="3 3" Format="XML">
             0   0   0
             1   1   1
             1 193  32
           </DataItem>
           <DataItem Reference="/Xdmf/DataItem[1]" />
         </DataItem>
       </Attribute>
     </Grid>
   </Domain>
  </Xdmf>



-- 

Robert I. Petersen
Graduate Student Researcher

 Institute of Geophysics & Planetary Physics
Scripps Institution of Oceanography
University of California, San Diego
9500 Gilman Drive
La Jolla, CA 92093-0225
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130802/69686c42/attachment.htm>


More information about the ParaView mailing list