<HTML>
<HEAD>
<TITLE>Re: [Paraview] Animate over files named by date &amp; time?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Is there some standard convention for encoding date/time stamps in file names? &nbsp;If there was, the file browser could group them together, which would in turn cause the file series reader to see them as a file series. &nbsp;It would also be possible to change the file series reader to grab a time stamp from the file name. &nbsp;This could be a good entry for UserVoice.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/10/10 1:47 AM, &quot;Favre &nbsp;Jean&quot; &lt;<a href="jfavre@cscs.ch">jfavre@cscs.ch</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
use the python shell within paraview<BR>
<BR>
the following pseudo-code will get you almost there<BR>
<BR>
import glob<BR>
files = glob.glob('foo_*.hdf')<BR>
files.sort()<BR>
# open the first file, set up your visualization, then get the object handle<BR>
<BR>
reader = FindSource('foo_1995-03-21T01-00-00.hdf')<BR>
<BR>
for i in files:<BR>
&nbsp;&nbsp;reader.FileName = files[i]<BR>
&nbsp;&nbsp;reader.UpdatePipeline()<BR>
&nbsp;&nbsp;Render()<BR>
<BR>
-----------------<BR>
Jean M. Favre<BR>
Swiss National Supercomputing Center<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>
&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>