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