<div dir="ltr">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.<div>
<br></div><div>I have DataItem that has DImensions &quot;7 193 32&quot;. Â 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 &quot;1 193 32&quot; or &quot;0 193 32&quot; 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 &quot;random&quot; data, I assume the contents of the uninitialized memory which was allocated.</div>
<div><br></div><div>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.</div><div><br></div><div>The XDMF follows.</div><div><br></div><div>Thanks,</div>
<div>Robert</div><div><br></div><div><div>  &lt;?xml version=&quot;1.0&quot; ?&gt;</div><div>  &lt;!DOCTYPE Xdmf SYSTEM &quot;Xdmf.dtd&quot; []&gt; </div><div>  &lt;Xdmf xmlns:xi=&quot;<a href="http://www.w3.org/2003/XInclude">http://www.w3.org/2003/XInclude</a>&quot; Version=&quot;2.2&quot;&gt;</div>
<div>  Â &lt;!-- The data --&gt;</div><div>  Â &lt;DataItem Dimensions=&quot;7 193 32&quot; NumberType=&quot;Float&quot; Precision=&quot;8&quot; Format=&quot;HDF&quot;&gt; eta.h5:/data &lt;/DataItem&gt;</div><div>  Â &lt;!-- The XY locations --&gt;</div>
<div>  Â &lt;DataItem Dimensions=&quot;6176 2&quot; NumberType=&quot;Float&quot; Precision=&quot;8&quot; Format=&quot;HDF&quot;&gt; eta.h5:/xy &lt;/DataItem&gt;</div><div>  Â &lt;!-- The grid geometry --&gt;</div><div>  Â &lt;Geometry GeometryType=&quot;XY&quot;&gt; &lt;DataItem Reference=&quot;/Xdmf/DataItem[2]&quot; /&gt; &lt;/Geometry&gt;</div>
<div>  Â &lt;!-- The topology dimension is Z,Y,X --&gt;</div><div>  Â &lt;Topology TopologyType=&quot;2DSMesh&quot; Dimensions=&quot;0 193 32&quot;/&gt;</div><div>  Â &lt;Domain&gt;</div><div>  Â  Â &lt;Grid Name=&quot;Viscosity Grid&quot; GridType=&quot;Uniform&quot;&gt;</div>
<div>  Â  Â  Â &lt;Topology Reference=&quot;/Xdmf/Topology[1]&quot; /&gt;</div><div>  Â  Â  Â &lt;Geometry Reference=&quot;/Xdmf/Geometry[1]&quot; /&gt;</div><div>  Â  Â  Â &lt;Attribute Name=&quot;Viscosity&quot; AttributeType=&quot;Scalar&quot; Center=&quot;Node&quot;&gt;</div>
<div>  &lt;!-- Â  &lt;DataItem Dimensions=&quot;1 193 32&quot; Type=&quot;HyperSlab&quot;&gt; --&gt;</div><div>  &lt;!-- Â  &lt;DataItem Dimensions=&quot;0 193 32&quot; Type=&quot;HyperSlab&quot;&gt; --&gt;</div><div>  Â  Â  Â  Â &lt;DataItem Dimensions=&quot;0 192 31&quot; Type=&quot;HyperSlab&quot;&gt;</div>
<div>  Â  Â  Â  Â  Â &lt;DataItem Dimensions=&quot;3 3&quot; Format=&quot;XML&quot;&gt;</div><div>  Â  Â  Â  Â  Â  Â 0 Â  0 Â  0 Â Â </div><div>  Â  Â  Â  Â  Â  Â 1 Â  1 Â  1 Â Â </div><div>  Â  Â  Â  Â  Â  Â 1 193 Â 32 Â </div><div>  Â  Â  Â  Â  Â &lt;/DataItem&gt;</div>
<div>  Â  Â  Â  Â  Â &lt;DataItem Reference=&quot;/Xdmf/DataItem[1]&quot; /&gt;</div><div>  Â  Â  Â  Â &lt;/DataItem&gt;</div><div>  Â  Â  Â &lt;/Attribute&gt;</div><div>  Â  Â &lt;/Grid&gt;</div><div>  Â &lt;/Domain&gt;</div><div>  &lt;/Xdmf&gt;</div>
</div><div><br></div><br clear="all"><div><br></div>-- <br><div><span style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><div style="margin:0pt 0pt 8px"><p style="margin:0pt"><span style="font-family:tahoma,sans-serif;color:rgb(155,169,187)">Robert I. Petersen <br>
 Graduate Student Researcher </span> <br><br> <span style="font-family:tahoma,sans-serif"> Institute of Geophysics &amp; Planetary Physics<br> Scripps Institution of Oceanography<br> University of California, San Diego<br>
 9500 Gilman Drive<br> La Jolla, CA 92093-0225 </span></p>
<hr>
<p style="margin:0pt"><img src="http://igppweb.ucsd.edu/~rpetersen/glf/viva.png">  Â <img src="http://igppweb.ucsd.edu/~rpetersen/glf/glf.png"></p></div><img src="http://s.wisestamp.com/pixel.png?p=chrome&amp;v=2.0.3.0&amp;t=1287777390226&amp;u=4008101&amp;e=646" width="1" height="1"></span></div>
</div>