<HTML>
<HEAD>
<TITLE>Re: [Paraview] xyzc file to vtk</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>You should be able to read the ascii file directly into ParaView. Attempt to load the file and then, assuming you have not used an extension reserved for another reader’s files, select “Comma-separated-values” from the next dialog box listing all available readers. This is the csv reader, but you can replace the delimiter to any character you want (in your case, I think you want space).<BR>
<BR>
That will load the data as a table. Simply run the Table to Points filter to convert them to a collection of points in space. From there you can trivially write the data out in VTK format.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/12/11 2:20 AM, "Luca Cinquepalmi" <<a href="cinquepalmi@planetek.it">cinquepalmi@planetek.it</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi, I have an ascii file with 4 fileds:<BR>
<BR>
X Y Z C<BR>
<BR>
where X, Y, Z represent the coordinates of the point, and C represent<BR>
the component/value of the point (e.g. temperature, umidity, ecc.) I<BR>
want to convert this file in a vtk file. Is it possible? How can I do<BR>
it? Thanks<BR>
<BR>
Luca<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>