Hi Ken,<br><br>Thanks! That worked, I had only tried structured topologies which was my mistake. <br><br>Cheers,<br>Christine<br><br><div class="gmail_quote">On Mon, Aug 24, 2009 at 5:57 PM, Leiter, Kenneth (Cont, ARL/CISD) <span dir="ltr">&lt;<a href="mailto:kenneth.leiter@arl.army.mil">kenneth.leiter@arl.army.mil</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Classification:  UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
Hi Christine,<br>
<br>
If you are reading in a position array and are unsure of the topology type,<br>
you will probably want to read in the data with Polyvertex topology, which<br>
is a group of unconnected points.<br>
<br>
The Topology element must specify the number of elements to read.  In this<br>
case, it would be the number of points = 3751383.<br>
<br>
This is what I imagine your Xdmf file should look like:<br>
<br>
&lt;?xml version=&quot;1.0&quot; ?&gt;<br>
&lt;!DOCTYPE Xdmf SYSTEM &quot;Xdmf.dtd&quot; []&gt;<br>
&lt;Xdmf xmlns:xi=&quot;<a href="http://www.w3.org/2003/XInclude" target="_blank">http://www.w3.org/2003/XInclude</a>&quot; Version=&quot;2.2&quot;&gt;<br>
  &lt;Domain&gt;<br>
    &lt;Grid&gt;<br>
      &lt;Topology TopologyType=&quot;Polyvertex&quot; Dimensions=&quot;3751383&quot;/&gt;<br>
      &lt;Geometry&gt;<br>
        &lt;DataItem Dimensions=&quot;3751383 3&quot; NumberType=&quot;Float&quot; Precision=&quot;8&quot;<br>
Format=&quot;HDF&quot;&gt;examplefile.h5:/dark/position&lt;/DataItem&gt;<br>
      &lt;/Geometry&gt;<br>
    &lt;/Grid&gt;<br>
  &lt;/Domain&gt;<br>
&lt;/Xdmf&gt;<br>
<br>
<br>
- Ken<br>
<br>
---------------------------------------------------------<br>
Kenneth Leiter<br>
Scientific Visualization Team<br>
Lockheed Martin / ARL DoD Supercomputing Resource Center<br>
410-278-2580<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>]<br>
On Behalf Of Christine Corbett Moran<br>
Sent: Monday, August 24, 2009 11:27 AM<br>
To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: [Paraview] XDMF help<br>
<br>
Hi,<br>
<br>
I have an existing HDF5 file (which I did not personally create so am not<br>
familiar with other than the info I get from h5dump/h5ls) I&#39;d like to read<br>
in with Paraview. I&#39;m first trying to create the most basic xmf file<br>
possible which allows Paraview to read in the position array from the HDF5<br>
file (based on the documentation here:<br>
<a href="http://www.xdmf.org/index.php/XDMF_Model_and_Format" target="_blank">http://www.xdmf.org/index.php/XDMF_Model_and_Format</a>). Right now whatever I<br>
try either causes a segfault or reads in data nonsensically. Could anyone<br>
point me in the right direction--e.g. based on the info below are my data<br>
dimensions just off?--or to better documentation? Thanks in advance, it&#39;s<br>
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<br>
attempt segfaults shortly after the server prints &quot;Done Parsing.&quot; If I<br>
change TopologyType to 3DSMesh it doesn&#39;t segfault but what it manages to<br>
read in (only a single point) is nonsensical. Any of the other TopologyTypes<br>
listed in the documentation I have found likewise produce a segfault. I also<br>
tried various permutations of the Dimensions argument (&quot;11254149 3&quot;, &quot;3<br>
11254149&quot;, &quot;3751383 3&quot;, &quot;3751383 3&quot;), with each possible 3D Topology, these<br>
likewise manage to read in either just a single point or segfault. I didn&#39;t<br>
try modifying the precision argument as hd5ls tells me the position array<br>
should be of doubles. This is my current attempt:<br>
&lt;?xml version=&quot;1.0&quot; ?&gt;<br>
&lt;!DOCTYPE Xdmf SYSTEM &quot;Xdmf.dtd&quot; []&gt;<br>
&lt;Xdmf xmlns:xi=&quot;<a href="http://www.w3.org/2003/XInclude" target="_blank">http://www.w3.org/2003/XInclude</a>&quot; Version=&quot;2.2&quot;&gt;<br>
  &lt;Domain&gt;<br>
    &lt;Grid&gt;<br>
      &lt;Topology TopologyType=&quot;3DRectMesh&quot;/&gt;<br>
      &lt;Geometry&gt;<br>
        &lt;DataItem Dimensions=&quot;11254149 3&quot; Precision=&quot;8&quot;<br>
Format=&quot;HDF&quot;&gt;examplefile.h5:/dark/position&lt;/DataItem&gt;<br>
      &lt;/Geometry&gt;<br>
    &lt;/Grid&gt;<br>
  &lt;/Domain&gt;<br>
&lt;/Xdmf&gt;<br>
<br>
*About the portion of the file I am trying to read in:<br>
% h5ls -rv examplefile.h5<br>
Opened &quot;examplefile.h5&quot; with sec2 driver.<br>
<br>
/dark                    Group<br>
    Attribute: iOrder    {1}<br>
<br>
        Type:      native unsigned long<br>
        Data:  0<br>
<br>
    Location:  0:1:0:2552<br>
    Links:     1<br>
<br>
...<br>
/dark/position           Dataset {11254149/Inf, 3/3}<br>
<br>
    Location:  0:1:0:2600<br>
    Links:     1<br>
<br>
    Modified:  2008-07-31 04:12:06 CEST<br>
    Chunks:    {32768, 1} 262144 bytes<br>
<br>
    Storage:   270099576 logical bytes, 270536736 allocated bytes, 99.84%<br>
utilization<br>
    Filter-0:  fletcher32-3  {}<br>
<br>
    Type:      native double<br>
...<br>
<br>
*More information about the portion of the file I am trying to read in<br>
obtained from h5dump<br>
<br>
%h5dump -x examplefile.h5 &gt; examplefile.xml %grep -A 30 position<br>
examplefile.xml<br>
<br>
      &lt;hdf5:Dataset Name=&quot;position&quot; OBJ-XID=&quot;xid_2600-0&quot; H5Path=<br>
&quot;/dark/position&quot; Parents=&quot;xid_2552-0&quot; H5ParentPaths=&quot;/dark&quot;&gt;<br>
<br>
         &lt;hdf5:StorageLayout&gt;<br>
            &lt;hdf5:ChunkedLayout Ndims=&quot;2&quot;&gt;<br>
<br>
               &lt;hdf5:ChunkDimension DimSize=&quot;32768&quot; /&gt;<br>
               &lt;hdf5:ChunkDimension DimSize=&quot;1&quot; /&gt;<br>
<br>
               &lt;hdf5:RequiredFilter&gt;<br>
                     &lt;hdf5:Fletcher32 /&gt;<br>
&lt;/hdf5:RequiredFilter&gt;<br>
<br>
            &lt;/hdf5:ChunkedLayout&gt;<br>
         &lt;/hdf5:StorageLayout&gt;<br>
<br>
         &lt;hdf5:FillValueInfo FillTime=&quot;FillIfSet&quot;<br>
AllocationTime=&quot;Incremental&quot;&gt;<br>
            &lt;hdf5:FillValue&gt;<br>
<br>
                  &lt;hdf5:NoFill/&gt;<br>
            &lt;/hdf5:FillValue&gt;<br>
<br>
         &lt;/hdf5:FillValueInfo&gt;<br>
         &lt;hdf5:Dataspace&gt;<br>
<br>
            &lt;hdf5:SimpleDataspace Ndims=&quot;2&quot;&gt;<br>
               &lt;hdf5:Dimension  DimSize=&quot;11254149&quot; MaxDimSize=&quot;UNLIMITED&quot;/&gt;<br>
<br>
               &lt;hdf5:Dimension  DimSize=&quot;3&quot; MaxDimSize=&quot;3&quot;/&gt;<br>
            &lt;/hdf5:SimpleDataspace&gt;<br>
<br>
         &lt;/hdf5:Dataspace&gt;<br>
         &lt;hdf5:DataType&gt;<br>
<br>
            &lt;hdf5:AtomicType&gt;<br>
               &lt;hdf5:FloatType ByteOrder=&quot;LE&quot; Size=&quot;8&quot; SignBitLocation=&quot;63&quot;<br>
ExponentBits=&quot;11&quot; ExponentLocation=&quot;52&quot; MantissaBits=&quot;52&quot;<br>
MantissaLocation=&quot;0&quot; /&gt;<br>
<br>
            &lt;/hdf5:AtomicType&gt;<br>
         &lt;/hdf5:DataType&gt;<br>
<br>
         &lt;hdf5:Data&gt;<br>
            &lt;hdf5:DataFromFile&gt;<br>
<br>
            -0.0117184 -0.00222114 -0.0762903<br>
            -0.0111324 -0.00176135 -0.0765049<br>
<br>
            -0.0106262 -0.00136187 -0.0765845<br>
            -0.0112606 -0.00112936 -0.0766193<br>
<br>
...<br>
Classification:  UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
</blockquote></div><br>