[Paraview] Data saving in vtr format and compression

Berk Geveci berk.geveci at kitware.com
Thu Jul 26 14:36:12 EDT 2012


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.

On Thu, Jul 26, 2012 at 11:11 AM, David E DeMarle
<dave.demarle at kitware.com>wrote:

> 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
> >
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120726/62629a7c/attachment.htm>


More information about the ParaView mailing list