<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
to generate a string from you field data (using a
ProgrammableFilter):<br>
<br>
script:<br>
<br>
pdo = self.GetOutput();<br>
pdo.ShallowCopy(self.GetInput());<br>
a = self.GetInput().GetInformation().Get(pdo.DATA_TIME_STEP());<br>
# this is your convertion routine<br>
time_label = "Days from 12/12/1800 = " + str(a*100) + ":" +
str((a*100)%2) + " ...days"<br>
label = vtk.vtkStringArray();<br>
label.SetNumberOfComponents(1);<br>
label.Resize(1);<br>
label.SetName("TimeLabel");<br>
label.SetValue(0,time_label);<br>
pdo.GetFieldData().AddArray(label)<br>
<br>
del label<br>
<br>
then you use a AnnotateGlobalData Filter.<br>
<br>
Done<br>
<br>
<br>
<br>
<br>
Le 02/03/2015 15:07, Madalena S. Malhadas a écrit :<br>
<span style="white-space: pre;">> But how do I do it? Can you
explain the steps please?<br>
><br>
> Regards<br>
> Madalena<br>
><br>
> -------------------------<br>
> From: <a class="moz-txt-link-abbreviated" href="mailto:felipe.bordeu@ec-nantes.fr">felipe.bordeu@ec-nantes.fr</a><br>
> Date: Mon, 2 Mar 2015 14:18:06 +0100<br>
> CC: <a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
> Subject: Re: [Paraview] Annotate time filter - regard real
time<br>
><br>
> you can use the python programable filter to create a field
data with the date (in string) and use a annotate field data
filter.<br>
><br>
> Felipe<br>
> Le 27 févr. 2015 à 14:50, Madalena S. Malhadas
<<a class="moz-txt-link-abbreviated" href="mailto:nenasantos@hotmail.com">nenasantos@hotmail.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:nenasantos@hotmail.com"><mailto:nenasantos@hotmail.com></a>> a écrit :<br>
><br>
><br>
> Dear paraview users,<br>
><br>
> I have a question over the use of Annotate time filter in
Paraview. I have a paraview script that read netcdf data which has
time axis given as "days since 1970-01-01<br>
> 00:00" (Epoch Time). This gives problem if I want to show
the real time of the data in the animation window. What I would
like to have shown are the date as<br>
> 4-8-2003, 00:00 etc. and it shows big number like 19521,
19522. <br>
><br>
> Does anyone have some idea how to solve the problem?<br>
><br>
> Thanks a lot!<br>
><br>
> Madalena<br>
> _______________________________________________<br>
> Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
<a class="moz-txt-link-rfc2396E" href="http://www.kitware.com/"><http://www.kitware.com/></a><br>
><br>
> Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Search the list archives at:
<a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a><br>
><br>
><br>
><br>
> _______________________________________________ Powered by
<a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a> Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a> Please keep
messages on-topic and check the ParaView Wiki at:
<a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a> Search the list archives at:
<a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a> Follow this link to
subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a></span><br>
<br>
<br>
- -- <br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
- -------------------------------------<br>
Tél. : 33 (0)2 40 37 16 57<br>
Fax. : 33 (0)2 40 74 74 06<br>
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a><br>
Institut GeM - UMR CNRS 6183<br>
École Centrale Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
- -------------------------------------<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
iQEcBAEBAgAGBQJU9IXSAAoJEE/fMfNgU9/DXNUIAJd5UqjbG2tj5Yaiun6fAcvQ<br>
iAkHUG6cPuRAxNW9mhvTQtjY57LoidZJ2Co0/rPtTEJSrLdJdAVhQNcrOATTkrHx<br>
QdojMW9R3Cv2/dB0T9zFQlQ4hhMnPCmXAX5af4XwHlCkVIX5blUNK6tpB1DAyYw/<br>
Htjt/qrBWpYphh9ea6eX1cRBwOBzk1RY6c7Ts2dtVhkGjb1vmCrqqa5WzKP/3VQy<br>
Flzj+10vVKHH2XKO/6pqxALDVWWcGlyzTGUkifEz504R6mu9w7cS5/Ro+QzlH4pp<br>
trYpjH0NrprvmavD0s23bTn3aGbOz+qnbnM4Q4iEaZaBKxyqHIz2PpkxxlyshME=<br>
=hCMQ<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>