<div dir="ltr"><div><div><div>Dear Jean,<br><br></div>Thank you for your reply. The solution you suggested involving XDMF has worked. I just needed to change NumberType, Precision and Endian attributes to match to my data.<br><br></div>Best regards,<br></div>Thomas<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 9:22 AM, Favre Jean <span dir="ltr"><<a href="mailto:jfavre@cscs.ch" target="_blank">jfavre@cscs.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" link="#0563C1" vlink="#954F72" lang="EN-US">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">I personally favor the use of XDMF to import raw binary data. This gives the flexibility to import cell-data and/or node-data<br>
<br>
the XDMF code most likely to work for your example is the following:<br>
<br>
Given your binary data stored in file "rawdata.bin", double-length floating point, with 4x4x5 cells, i.e. a grid of 5x5x6 vertices...<br>
<br>
<?xml version="1.0" ?><br>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []><br>
<Xdmf xmlns:xi="<a href="http://www.w3.org/2003/XInclude" target="_blank">http://www.w3.org/<wbr>2003/XInclude</a>" Version="2.2"><br>
<Domain><br>
<Grid Name="3DMesh" GridType="Uniform"><br>
<Topology TopologyType="3DCORECTMESH" Dimensions="6 5 5"/><br>
<Geometry GeometryType="ORIGIN_DXDYDZ"><br>
<DataItem Name="Origin" NumberType="Float" Dimensions="3" Format="XML">0. 0. 0.</DataItem><br>
<DataItem Name="Spacing" NumberType="Float" Dimensions="3" Format="XML">1. 1. 1.</DataItem><br>
</Geometry><br>
<Attribute Name="Temperature" Active="1" AttributeType="Scalar" Center="Cell"><br>
<DataItem Dimensions="5 4 4" NumberType="Float" Precision="8" Format="Binary">rawdata.bin</<wbr>DataItem><br>
</Attribute><br>
</Grid><br>
</Domain><br>
</Xdmf><br>
<div><br>
<div><font size="2"><span style="font-size:10pt">
<div>-----------------<br>
Jean<br>
CSCS<span style="font-size:11.0pt;font-family:Calibri"></span><br>
<span style="font-size:11.0pt;font-family:Calibri"></span></div>
</span></font></div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>