<div dir="ltr">I think that Sean is on the right track and suggest that a Python Animation cue is the way to go.<div><br></div><div>Attached is a state file to demonstrate. Load the state file in ParaView, open Views->Animation View and double click on the existing Python track to see the script that gets the pipeline time and feeds it into a text source for display. I've left the parts about reading the file and mapping the Animation time into the corresponding simulation time as an exercise to the reader.</div><div><br></div><div>Note: many time varying file formats produce the data time for you so this translation is unnecessary and the Annotate Time filter will do what you want it to.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><div class="gmail_quote">On Wed, Oct 8, 2014 at 7:53 PM, Phil Amburn <span dir="ltr"><<a href="mailto:phil.amburn@gmail.com" target="_blank">phil.amburn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d">Hi Sean,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d">Can we talk? I’m not smart enough to understand your suggestion (hate it when that happens). <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d">If I get something worked out, even a hack, I’ll post the solution back to this list.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d">Thanks!<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d">Phil<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>] <b>On Behalf Of </b><a href="mailto:Sean.Ziegeler@engilitycorp.com" target="_blank">Sean.Ziegeler@engilitycorp.com</a><br><b>Sent:</b> Wednesday, October 08, 2014 3:41 PM<br><b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a></span></p><div><div class="h5"><br><b>Subject:</b> Re: [Paraview] [EXTERNAL] displaying simulation time rather than time step<u></u><u></u></div></div><p></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Hey Phil,<br>You *might* be able to hack it with a combination of a Programmable Filter and a Python Annotation Filter. Use the Programmable Filter to add a FieldData value to each time step that is a string with the appropriate date. Then use the Python Annotation Filter to display the date as an annotation.<br><br>The first part is the hard one. The Programmable Filter could either (1) read the file once to get all the dates, or (2) compute the dates using the starting date, the time step value, and Python's datetime module.<br><br>Thanks,<br>Sean<u></u><u></u></span></p><div><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:9.5pt;font-family:"Times New Roman","serif";color:black"><hr size="3" width="100%" align="center"></span></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> ParaView [<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>] on behalf of Scott, W Alan [<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>]<br><b>Sent:</b> Wednesday, October 08, 2014 5:17 PM<br><b>To:</b> Phil Amburn; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br><b>Subject:</b> Re: [Paraview] [EXTERNAL] displaying simulation time rather than time step</span><span style="font-size:9.5pt;font-family:"Times New Roman","serif";color:black"><u></u><u></u></span></p></div><div><div><p class="MsoNormal"><span style="color:#1f497d">Phil,</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">I have no idea how to put out what you are asking for, but it is a really good idea. If you don’t get an answer, be sure to write up a bug report/ feature request.</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Alan</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"> </span><span style="color:black"><u></u><u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> ParaView [<a href="mailto:paraview-bounces@paraview.org" target="_blank">mailto:paraview-bounces@paraview.org</a>] <b>On Behalf Of </b>Phil Amburn<br><b>Sent:</b> Wednesday, October 08, 2014 3:26 PM<br><b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br><b>Subject:</b> [EXTERNAL] [Paraview] displaying simulation time rather than time step</span><span style="color:black"><u></u><u></u></span></p></div></div><p class="MsoNormal" style="margin-left:.5in"><span style="color:black"> <u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">I would like to do something similar to the Annotate Time filter, but rather than displaying the time step number, I need to display simulation date and time.</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black">I have a text file with the actual simulation date and time associated with each time step. Here are the first few lines of that file</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">Time step Time step output, Actual time</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">0 0.00, 4/1/2013 15:00</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">1 65.83, 4/1/2013 15:01</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">2 125.88, 4/1/2013 15:02</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">3 201.00, 4/1/2013 15:03</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">4 268.65, 4/1/2013 15:04</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">5 328.83, 4/1/2013 15:05</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-family:"Courier New";color:black">6 366.46, 4/1/2013 15:06</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black">…</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black">So, rather than Time: 0 at the bottom of the 3D window, I’d like to have 4/1/2013 15:00</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black">Any thoughts / recommendations on how to accomplish this task will be greatly appreciated.</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black"> </span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black">Thanks,</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New";color:black">Phil</span><span style="color:black"><u></u><u></u></span></p></div></div></div></div></div></div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>