[Paraview] Writing binary VTK

Berk Geveci berk.geveci at kitware.com
Sun Nov 2 06:30:16 EST 2008


If you already have the ascii VTK file, you can convert it to binary
by loading it in ParaView and saving it out as binary format. It is
pretty easy to automate this using Python. Let me know if you need an
example.

-berk

On Fri, Oct 31, 2008 at 1:28 AM, Lester Anderson
<lester_anderson1963 at hotmail.com> wrote:
> Hi Ken
>
> Thanks for the info. So is there an easy way to take the ascii data and make
> it into a binary file (big-endian or ortherwise), or is it more involved?
> Basically I have my data already it just needs converting.
>
> Cheers
>
> Lester
>
>> From: kmorel at sandia.gov
>> To: lester_anderson1963 at hotmail.com; paraview at paraview.org
>> Date: Thu, 30 Oct 2008 16:44:32 -0600
>> Subject: Re: [Paraview] Writing binary VTK
>>
>> You have the basic idea for binary legacy VTK files. I think the one
>> caveat
>> is that the data needs to be written in big-endian format. (Someone
>> correct
>> me if I got that wrong.)
>>
>> I'm not sure what you mean by the column vs. sequential style. I think the
>> data parts in ASCII data treat all whitespace the same, so you should be
>> able to order the data in as many columns as you like.
>>
>> -Ken
>>
>>
>> On 10/30/08 1:53 PM, "Lester Anderson" <lester_anderson1963 at hotmail.com>
>> wrote:
>>
>> > Hello all
>> >
>> > I have got a really big dataset that I want to have in a binary format.
>> > I have
>> > the header information all sorted now, but want to know how to convert
>> > the
>> > data part to binary. From what I understand the binary VYK structure is
>> > basically the same as ascii except the data part is binary.
>> >
>> > On a second point, with an ascii VTK how can I change the data from a
>> > huge
>> > long column of data to the more sequential style shown in examples?
>> >
>> > I work on a PC
>> >
>> > thanks
>> >
>> > Lester
>> >
>> >
>> > For the best free wallpapers from MSN Click here!
>> > <http://wallpapers.msn.com/?ocid=[B001MSN42A0716B]>
>>
>>
>> **** Kenneth Moreland
>> *** Sandia National Laboratories
>> ***********
>> *** *** *** email: kmorel at sandia.gov
>> ** *** ** phone: (505) 844-8919
>> *** fax: (505) 845-0833
>>
>>
>>
>
>
> ________________________________
> Get the best wallpapers on the Web - FREE. Click here!
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list