[Paraview] Writing binary VTK

Berk Geveci berk.geveci at kitware.com
Sun Nov 2 08:42:11 EST 2008


Can you post a small example for us to look at? You can use the subset
filter to reduce the size of your dataset.

-berk

On Sun, Nov 2, 2008 at 9:02 AM, Lester Anderson
<lester_anderson1963 at hotmail.com> wrote:
> Hi Berk
>
> Thanks for the information. With the help of yourself and others on the
> mailing list I have now got my large data "cube" into Paraview. Like all
> things new, it always helps to have the advice of experts on the
> methodology; so many thanks to all who have helped :)
>
> Saving to binary format is useful and saves on space too!
>
> One point I am not clear on is that I can generate the surface view and set
> the scalar to display density, as a cube, slice or clipped body, but when I
> try the volume option it shows nothing.
>
> # vtk DataFile Version 3.0
> vtk output
> ASCII
> DATASET STRUCTURED_POINTS
> DIMENSIONS 151 151 101
> SPACING 200 -200 -100
> ORIGIN 291024 2055975 0
> POINT_DATA 2302901
> SCALARS density double
> LOOKUP_TABLE default
> 2.3
> 2.3
> 2.3 etc
>
> I also tried the clean_to_grid filter and although the file size goes up,
> there was still nothing on the volume view, and in fact caused Paraview
> 3.4.0 to crash.
>
> Thanks
>
> Lester
>
>> Date: Sun, 2 Nov 2008 07:30:16 -0400
>> From: berk.geveci at kitware.com
>> To: lester_anderson1963 at hotmail.com
>> Subject: Re: [Paraview] Writing binary VTK
>> CC: kmorel at sandia.gov; paraview at paraview.org
>>
>> 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
>> >
>> >
>
>
> ________________________________
> Get the best wallpapers on the Web - FREE. Click here!


More information about the ParaView mailing list