[Paraview] XDMF and HDF5 : data corruption ?

Nicholas Yue yue.nicholas at gmail.com
Thu Oct 28 13:25:36 EDT 2010


Biddiscombe, John A. wrote:
> Tell it that the geometry is XYZ like so ....
>
> <Geometry Type="XYZ">
>
> for example
>
>   <Topology Type="Polyvertex" NumberOfElements="20000 ">
>   </Topology>
>   <Geometry Type="XYZ">
>      <DataItem Dimensions="20000 3" NumberType="Float" Precision="4" Format="HDF">
> 	  test.h5:/PartType2/Coordinates</DataItem>
>   </Geometry>
>
> JB
>   
Hi,

    I have a chance to re-test all the HDF5 and XDMF files with Paraview 
3.8.1 on Ubuntu 10.04 64bit.

    No problems at all.

    So all my issues with using XDMF to display HDF5 is a problem with 
the build of Paraview 3.8.1 on OSX 10.5 (PPC)

    Thank you for the tip on structuring XDMF files.

Regards
> -----Original Message-----
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Nicholas Yue
> Sent: 24 October 2010 02:47
> To: paraview at paraview.org
> Subject: [Paraview] XDMF and HDF5 : data corruption ?
>
> Hi,
>
>      I am trying to read the content of an HDF5 file via XDMF with 
> Paraview 3.8.1 on OS X 10.5 (PPC), but I get either very large or very 
> small numbers being read into Paraview, it seems the data are just 
> uninitialized memory.
>
>      Any advice ?
>
> XDMF file
> -----------------------------
> <?xml version="1.0" ?>
> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
> <Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="2.0">
> <Domain>
> <Grid>
> <Topology TopologyType="Polyvertex" Dimensions="4"/>
> <Geometry>
> <DataItem Dimensions="4 3"
>            Format="HDF">
>        xdmf_datasets.h5:/MyDataSet
> </DataItem>
> </Geometry>
> </Grid>
> </Domain>
> </Xdmf>
> -----------------------------
>
>
> H5Dump
> -----------------------------
> HDF5 "xdmf_datasets.h5" {
> GROUP "/" {
>     DATASET "MyDataSet" {
>        DATATYPE  H5T_IEEE_F32BE
>        DATASPACE  SIMPLE { ( 4, 3 ) / ( 4, 3 ) }
>        DATA {
>        (0,0): 0.447571, -0.444658, 0.229639,
>        (1,0): -0.0218087, 0.27028, 0.57983,
>        (2,0): -0.301279, 0.0260453, 0.238798,
>        (3,0): -0.376086, 0.430129, 0.464753
>        }
>     }
> }
> }
> -----------------------------
>
>
>
> Regards
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>   



More information about the ParaView mailing list