Hi,<br><br>I have an existing HDF5 file (which I did not personally create so am not familiar with other than the info I get from h5dump/h5ls) I'd like to read in with Paraview. I'm first trying to create the most basic xmf file possible which allows Paraview to read in the position array from the HDF5 file (based on the documentation here: <a href="http://www.xdmf.org/index.php/XDMF_Model_and_Format">http://www.xdmf.org/index.php/XDMF_Model_and_Format</a>). Right now whatever I try either causes a segfault or reads in data nonsensically. Could anyone point me in the right direction--e.g. based on the info below are my data dimensions just off?--or to better documentation? Thanks in advance, it's hopefully something simple I just missed from the documentation.<br>
<br>More information about the file and what I have tried is below.<br><br>*After reading a bit and playing around with the parameters, my current .xmf attempt segfaults shortly after the server prints "Done Parsing." If I change TopologyType to 3DSMesh it doesn't segfault but what it manages to read in (only a single point) is nonsensical. Any of the other TopologyTypes listed in the documentation I have found likewise produce a segfault. I also tried various permutations of the Dimensions argument ("11254149 3", "3 11254149", "3751383 3", "3751383 3"<b>), </b>with each possible 3D Topology, these likewise manage to read in either just a single point or segfault. I didn't try modifying the precision argument as hd5ls tells me the position array should be of doubles. This is my current attempt:<font size="1"><b style="font-family: courier new,monospace;"><br>
</b><span style="font-family: courier new,monospace;"><?xml version="1.0" ?></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><Xdmf xmlns:xi="<a href="http://www.w3.org/2003/XInclude">http://www.w3.org/2003/XInclude</a>" Version="2.2"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <Domain></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Grid></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <Topology TopologyType="3DRectMesh"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Geometry></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <DataItem Dimensions="11254149 3" Precision="8" Format="HDF">examplefile.h5:/dark/position</DataItem></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </Geometry></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </Grid></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </Domain></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></Xdmf></span></font><br><br>*About the portion of the file I am trying to read in:<br>
<font size="1"><span style="font-family: courier new,monospace;">% h5ls -rv examplefile.h5</span></font><pre><font size="1"><span style="font-family: courier new,monospace;">Opened "examplefile.h5" with sec2 driver.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dark Group</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Attribute: iOrder {1}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Type: native unsigned long</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Data: 0</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Location: 0:1:0:2552</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Links: 1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/dark/position Dataset {11254149/Inf, 3/3}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Location: 0:1:0:2600</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Links: 1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Modified: 2008-07-31 04:12:06 CEST</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Chunks: {32768, 1} 262144 bytes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Storage: 270099576 logical bytes, 270536736 allocated bytes, 99.84% utilization</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Filter-0: fletcher32-3 {}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Type: native double</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...</span></font><br><br><font style="font-family: arial,helvetica,sans-serif;" size="2">*More information about the portion of the file I am trying to read in obtained from h5dump</font><br>
<font size="1"><span style="font-family: courier new,monospace;">%h5dump -x examplefile.h5 > examplefile.xml </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">%grep -A 30 position examplefile.xml</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:Dataset Name="position" OBJ-XID="xid_2600-0" H5Path= "/dark/position" Parents="xid_2552-0" H5ParentPaths="/dark"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:StorageLayout></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:ChunkedLayout Ndims="2"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:ChunkDimension DimSize="32768" /></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:ChunkDimension DimSize="1" /></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:RequiredFilter></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:Fletcher32 /> </hdf5:RequiredFilter></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </hdf5:ChunkedLayout></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </hdf5:StorageLayout></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:FillValueInfo FillTime="FillIfSet" AllocationTime="Incremental"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:FillValue></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:NoFill/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </hdf5:FillValue></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </hdf5:FillValueInfo></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:Dataspace></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:SimpleDataspace Ndims="2"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:Dimension DimSize="11254149" MaxDimSize="UNLIMITED"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:Dimension DimSize="3" MaxDimSize="3"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </hdf5:SimpleDataspace></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </hdf5:Dataspace></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:DataType></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:AtomicType></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" /></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </hdf5:AtomicType></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </hdf5:DataType></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <hdf5:Data></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <hdf5:DataFromFile></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -0.0117184 -0.00222114 -0.0762903</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -0.0111324 -0.00176135 -0.0765049</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -0.0106262 -0.00136187 -0.0765845</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -0.0112606 -0.00112936 -0.0766193</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...</span></font><br></pre>