<HTML>
<HEAD>
<TITLE>Re: [Paraview] Trying to plot signals to paraview</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>George,<BR>
<BR>
If you don&#8217;t want to save the full image data, then either poly data or unstructured data is the way to go. &nbsp;(Poly data will probably be a bit more efficient in ParaView, but either will work).<BR>
<BR>
If you are looking for a format to store the data in, you might consider the VTK legacy data format. &nbsp;This format is documented in the VTK User&#8217;s manual and here: <a href="http://www.paraview.org/Wiki/Image:VTK-File-Formats.pdf">http://www.paraview.org/Wiki/Image:VTK-File-Formats.pdf</a><BR>
<BR>
As far as the topology is concerned, you have a couple of options. &nbsp;One is just to define a bunch of &#8220;vertices&#8221; (0D cells). &nbsp;These will just appear as points on the screen. &nbsp;The advantage is that they are easy to specify: You just need coordinates and the data at that coordinate. &nbsp;The disadvantage is that they are just drawn as a series of points. &nbsp;You run the risk of holes appearing between the cells once the resolution of the data drops below the pixel level. &nbsp;(That might not be a concern for you.) &nbsp;The other option is to draw quadrilaterals either centered on each point or connecting 4 points. &nbsp;The quads will make sure that the space is filled but require you to specify more connectivity information. &nbsp;In either case, a Delaunay triangulation seems unnecessarily complicated.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 2/4/09 10:20 AM, &quot;George Markomanolis&quot; &lt;<a href="paraview@markomanolis.com">paraview@markomanolis.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Dear Ken,<BR>
<BR>
First of all thank you for your time. Unfortunately I don't want to save all the data to the files. For example I must save (and load, plot) 8GB of full image than 500mb If i &quot;erase&quot; useless points. I have no idea about the duration to plot 8GB and 500mb at paraview but I believe it's big (general the useless points are 85-95% of full image). I'll try of course to check it but we've developed a technique to &quot;erase&quot; useless data and I believe that it won't be accepted from the team except if it is fast with paraview. For example with gnuplot in order to have good quality I save data to eps format and after I convert it to jpg (plotting is done at the cluster and we download only the jpg files) but the convert is very low, for example 500mb may take 10-15 minutes to plot and save. I'll try to plot full image. For unstructured grid I don't know how to declare topology, I believe I need something like delaunay (triangulation) at matlab?<BR>
<BR>
Thanks,<BR>
George Markomanolis <BR>
<BR>
On Wed, Feb 4, 2009 at 4:18 PM, Moreland, Kenneth &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>ParaView is capable of reading in a regular grid of data, mapping a color to it, and drawing it scaled on the screen. &nbsp;If your data is simply a raw array written to disk, then ParaView can read that in directly. &nbsp;Does that basically solve your problem?<BR>
<BR>
There are two ways to &quot;erase&quot; the useless points. &nbsp;The first way is to simply set the color map up so that these values are simply drawn in the background color. &nbsp;The second way is to use the &quot;Threshold&quot; filter to remove the uninteresting points. &nbsp;The Threshold filter will convert the data from a regular array to an unstructured grid. &nbsp;A warning about using Threshold though: the unstructured grid it converts data to is a less efficient representation so it is possible to actually require more data for the result if not a lot is removed.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
On 2/4/09 2:30 AM, &quot;George Markomanolis&quot; &lt;<a href="paraview@markomanolis.com">paraview@markomanolis.com</a> &lt;<a href="http://paraview@markomanolis.com">http://paraview@markomanolis.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Dear all,<BR>
<BR>
I am newbie to Paraview and I want to ask you something. I am working with signals and I use gnuplot for plotting. Unfortunately it's slow for big signals. Our program is parallel so we can create files of many GBs. We do a tricky parallel plot, every cpu plots a part of the signal, otherwise we couldn't see the image from gnuplot (crash). So when I saw paraview I liked a lot but it isn't easy.<BR>
<BR>
I must explain what I want to plot:<BR>
We use a techinque in order to cut the points that haven't energy. For example a specific signal with 12000 x 12000 mesh of points which is 8GB file it can go under of 1GB if we cut the useless points. So I give at the gnuplot only the points that I want to plot x,y,z and I use pm3d map because I want them in 2D not 3D for example see the image: <a href="http://www.markomanolis.com/files/plots/plot.jpg">http://www.markomanolis.com/files/plots/plot.jpg</a> &nbsp;&nbsp;<BR>
I would like to ask. Is this unstructured grid? I show an easy signal it could be with more random points. I have tried unstructured grid for 2 columns only and there is no surface between the columns. I used triangle strip and it was ok but I don't know if I could see the details like here (here I don't cut any useless point, in first image see wave details in the center): &nbsp;&nbsp;&nbsp;<a href="http://www.markomanolis.com/files/plots/62_0_0.jpg">http://www.markomanolis.com/files/plots/62_0_0.jpg</a> , <a href="http://www.markomanolis.com/files/plots/resFinal.jpg">http://www.markomanolis.com/files/plots/resFinal.jpg</a> &nbsp;&nbsp;.<BR>
Could I have these plots with paraview or it is good with more complicated plots?<BR>
I must write a script/ program to convert gnuplot file to paraview but I am not sure about the topology, I must declare the topolgy for every point, right? &nbsp;I am confused because I have a lot of constrains for example if a point is alone then the topology is vertex if there is another point then line etc... Is there any way to plot this grid with something like image data. I want to give something like structured grid but NOT to give all the points (I don't need them). &nbsp;The last two images I sent you are with all the points for education propose. I want to plot something like first image but witho more complicated topology &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
Thank you for your time,<BR>
George Markomanolis<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; <BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>