[Paraview] Data saving in vtr format and compression

David E DeMarle dave.demarle at kitware.com
Thu Jul 26 11:11:34 EDT 2012


On Thu, Jul 26, 2012 at 5:42 AM, Zenker, Dr. Matthias
<Matthias.Zenker at erbe-med.com> wrote:
> Hi,
>
> I need to convert legacy vtk files to vtr files. The vtk files are in ASCII
> format and approx. 17 MB large. When I use binary or ASCII as data mode, I
> get a file size of approx. 28 MB. When I use appended data mode without
> encoding, it’s 20 MB. When I use encoding with ZLib compressor (there is
> only this one), the shinks to approx. 800 kB! Also data access is a lot
> faster when I load that file in ParaView.
> My questions:
>
>
> Why does the file grow for most of the modes I have tried?

Each double in the binary file is 8 bytes. In ascii, the size depends
on the number of characters, which can be more or less than that. On
my machine I see the same counterintuitive result, the binary is
larger.

> Is the ZLib  compression used in ParaView lossless, or do I lose information
> when I apply it?

lossless.

>
>
> Thanks for some explanations…
>
> Matthias
>
>
>
> _____________________________________________________________________
> ERBE Elektromedizin GmbH
> Firmensitz: 72072 Tuebingen
> Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
> Registergericht: Stuttgart HRB 380137
>
>
> _______________________________________________
> 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