I have the following, functional, XMDF file (version 2, or something like that) which I use to describe HDF5-stored heavy data for visualization in Paraview.

I would like to upgrade to XDMF3 (just to keep updated, plus Paraview has a reader specifically for xdmf3) but I can't seem to find a way to define rectilinear grid so that Paraview interprets it correctly.

Can someone post an example?

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
    <Domain Name="Domain1">
        <Grid GridType="Uniform">
            <Topology TopologyType="2DCoRectMesh" NumberOfElements="300 3373" Name="Topo1"/>
            <Geometry GeometryType="ORIGIN_DXDY" Dimensions="300 3373" Name="Geom1">
                <DataItem DataItemType="Origin" Dimensions="2" Format="XML">0 0</DataItem>
                <DataItem DataItemType="Spacing" Dimensions="2" Format="XML">1 1</DataItem>
            <Attribute Name="height" AttributeType="Scalar" Center="Node">
                <DataItem Format="HDF" NumberType="Float" Precision="4" Dimensions="300 3373">hh.hdf5:/group/0-zz</DataItem>
            <Attribute Name="intensity" AttributeType="Scalar" Center="Node">
                <DataItem Format="HDF" NumberType="UInt" Precision="1" Dimensions="300 3373">hh.hdf5:/group/1-ii</DataItem>
            <Attribute Name="labels" AttributeType="Scalar" Center="Node">
                <DataItem Format="HDF" NumberType="UInt" Precision="2" Dimensions="300 3373">hh.hdf5:/group/6-labels</DataItem>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.