<div dir="ltr">You can do similar things simply using Python and numpy, instead of matlab. Numpy is included in the Python distributed with ParaView, so you can use it in pvpython or Python shell in the GUI to open csv [1] and process it add appropriate before saving out. <div><br></div><div><br></div><div>[1] <a href="https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.loadtxt.html">https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.loadtxt.html</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 4, 2017 at 11:45 PM, Li, Teng <span dir="ltr"><<a href="mailto:tengli2@illinois.edu" target="_blank">tengli2@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,
<div><br>
</div>
<div>I have a question about modify the data in vtk files and then visualize them again in Paraview.</div>
<div><br>
</div>
<div>First, I have 118 vtk files which record the information of each time step. In order to process some data in my vtk files, I plan to store them as .CSV files. I saved them as points data files. However, I find that I need to save 118 CSV files and then
process the data in each of them. And then I need to visualize each of them.</div>
<div><br>
</div>
<div><span style="font-size:13.3333px">Because in every time step, I use the same method to modify specific data.
</span>I wonder is there a way that I can process all the data just one time so these specific data in every time step will be changed in the same way.</div>
<div><br>
</div>
<div>I know calculator works for some simple applications, such as add, minus. However, I might use some if else loops to modify the data. So I need to import the .CSV data into the Matlab to process them. And then import the modified .CSV files into Paraview
to visualize the information.</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Best,</div>
<div>Teng</div>
<div><br>
</div>
<div>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma">
<p align="left" style="font-family:Tahoma"><font size="1">Teng Li</font></p>
<p align="left" style="font-family:Tahoma"><font size="1">Master Candidate in Structures</font></p>
<p align="left" style="font-family:Tahoma"><font size="1">Department of Civil and Environmental Engineering</font></p>
<p align="left" style="font-family:Tahoma"><font size="1">University of Illinois at Urbana-Champaign</font></p>
<p align="left" style="font-family:Tahoma"><font size="1">205 North Mathews Ave, Urbana, IL. 61801</font></p>
<p align="left" style="font-family:Tahoma"><font size="1">Phone:<a href="tel:(217)%20819-6210" value="+12178196210" target="_blank">(217)8196210</a>, Email: <a href="mailto:tengli2@illinois.edu" target="_blank">tengli2@illinois.edu</a></font></p>
<p align="left" style="font-size:13px;font-family:Tahoma"><br>
</p>
<p align="left" style="font-size:13px;font-family:Tahoma"><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>