[Paraview] Writing binary VTK

Lester Anderson lester_anderson1963 at hotmail.com
Sun Nov 2 15:54:28 EST 2008


Hi Berk
 
Thanks for the interest in this problem. I have done a smaller sub-set, and even this does not work with the volume view which seems a bit odd as all other views work in 3.4.0
 
It's not a big issue but would be interested to know if there is anything odd in the input data causing it. I do know that when I was testing the data with 2 or 3 layers it was working but the full data comprises 101 layers. The full data cube is about 800kb when saved in binary format.
 
For background, the data were output from a Fortran program that converts seismic velocity to density, for use in forward calculation of gravity. The data is a "cube" of data XYZ of 30 x 30 x 10 km, with XY spacing 200m and Z spacing 100m (0 to 10 km depth).
 
All other options that I needed with the data are fine, like slice, clip and probing (line or point). As a separate check I tried the data in VisIt 1.10 and the volume option again came up blank so I suspect a peculiarity with the data. As I mentioned previously, changing the data to a grid made no difference as far as the volume view was concerned.
 
Hopefully the experts will be able to see if there is a problem.
 
Thanks
 
Lester> Date: Sun, 2 Nov 2008 09:42:11 -0400> From: berk.geveci at kitware.com> To: lester_anderson1963 at hotmail.com> Subject: Re: [Paraview] Writing binary VTK> CC: paraview at paraview.org> > 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!
_________________________________________________________________
Win £1000 John Lewis shopping sprees with BigSnapSearch.com
http://clk.atdmt.com/UKM/go/117442309/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081102/37ef916d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cube_subset.zip
Type: application/x-zip-compressed
Size: 47074 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081102/37ef916d/attachment-0001.bin>


More information about the ParaView mailing list