If you have an ascii file that only have a few digits in the numbers (~7 significant digits), you are better off using single precision (float array) which is 4 bytes.<br><br><div class="gmail_quote">On Thu, Jul 26, 2012 at 11:11 AM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jul 26, 2012 at 5:42 AM, Zenker, Dr. Matthias<br>
&lt;<a href="mailto:Matthias.Zenker@erbe-med.com">Matthias.Zenker@erbe-med.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I need to convert legacy vtk files to vtr files. The vtk files are in ASCII<br>
&gt; format and approx. 17 MB large. When I use binary or ASCII as data mode, I<br>
&gt; get a file size of approx. 28 MB. When I use appended data mode without<br>
&gt; encoding, it’s 20 MB. When I use encoding with ZLib compressor (there is<br>
&gt; only this one), the shinks to approx. 800 kB! Also data access is a lot<br>
&gt; faster when I load that file in ParaView.<br>
&gt; My questions:<br>
&gt;<br>
&gt;<br>
&gt; Why does the file grow for most of the modes I have tried?<br>
<br>
</div>Each double in the binary file is 8 bytes. In ascii, the size depends<br>
on the number of characters, which can be more or less than that. On<br>
my machine I see the same counterintuitive result, the binary is<br>
larger.<br>
<div class="im"><br>
&gt; Is the ZLib  compression used in ParaView lossless, or do I lose information<br>
&gt; when I apply it?<br>
<br>
</div>lossless.<br>
<div class="im"><br>
&gt;<br>
&gt;<br>
&gt; Thanks for some explanations…<br>
&gt;<br>
&gt; Matthias<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _____________________________________________________________________<br>
&gt; ERBE Elektromedizin GmbH<br>
&gt; Firmensitz: 72072 Tuebingen<br>
&gt; Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede<br>
&gt; Registergericht: Stuttgart HRB 380137<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>