[Paraview] Annotate time filter - regard real time

Madalena S. Malhadas nenasantos at hotmail.com
Mon Mar 2 10:49:15 EST 2015


Thank you very much! I will test now.
Kind regards

Date: Mon, 2 Mar 2015 16:46:32 +0100
From: felipe.bordeu at ec-nantes.fr
CC: paraview at paraview.org
Subject: Re: [Paraview] Annotate time filter - regard real time


  
    
  
  
    

    -----BEGIN PGP SIGNED MESSAGE-----

    Hash: SHA1

    

    to generate a string from you field data (using a
    ProgrammableFilter):

    

    script:

    

    pdo = self.GetOutput();

    pdo.ShallowCopy(self.GetInput());

    a = self.GetInput().GetInformation().Get(pdo.DATA_TIME_STEP());

    # this is your convertion routine

    time_label = "Days from 12/12/1800 = " + str(a*100)  + ":" +
    str((a*100)%2) + " ...days"

    label = vtk.vtkStringArray();

    label.SetNumberOfComponents(1);

    label.Resize(1);

    label.SetName("TimeLabel");

    label.SetValue(0,time_label);

    pdo.GetFieldData().AddArray(label)

    

    del label

    

    then you use a AnnotateGlobalData Filter.

    

    Done

    

    

    

    

    Le 02/03/2015 15:07, Madalena S. Malhadas a écrit :

    > But how do I do it? Can you
      explain the steps please?

      >

      > Regards

      > Madalena

      >

      > -------------------------

      > From: felipe.bordeu at ec-nantes.fr

      > Date: Mon, 2 Mar 2015 14:18:06 +0100

      > CC: paraview at paraview.org

      > Subject: Re: [Paraview] Annotate time filter - regard real
      time

      >

      > you can use the python programable filter to create a field
      data with the date (in string) and use a annotate field data
      filter.

      >

      > Felipe

      > Le 27 févr. 2015 à 14:50, Madalena S. Malhadas
      <nenasantos at hotmail.com
      <mailto:nenasantos at hotmail.com>> a écrit :

      >

      >

      >     Dear paraview users,

      >

      >     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

      >     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

      >     4-8-2003, 00:00 etc. and it shows big number like 19521,
      19522. 

      >

      >     Does anyone have some idea how to solve the problem?

      >

      >     Thanks a lot!

      >

      >     Madalena

      >     _______________________________________________

      >     Powered by www.kitware.com
      <http://www.kitware.com/>

      >

      >     Visit other Kitware open-source projects at
      http://www.kitware.com/opensource/opensource.html

      >

      >     Please keep messages on-topic and check the ParaView Wiki
      at: http://paraview.org/Wiki/ParaView

      >

      >     Search the list archives at:
      http://markmail.org/search/?q=ParaView

      >

      >     Follow this link to subscribe/unsubscribe:

      >     http://public.kitware.com/mailman/listinfo/paraview

      >

      >

      >

      > _______________________________________________ Powered by
      www.kitware.com Visit other Kitware open-source projects at
      http://www.kitware.com/opensource/opensource.html Please keep
      messages on-topic and check the ParaView Wiki at:
      http://paraview.org/Wiki/ParaView Search the list archives at:
      http://markmail.org/search/?q=ParaView Follow this link to
      subscribe/unsubscribe:
      http://public.kitware.com/mailman/listinfo/paraview

    

    

    - -- 

    Felipe Bordeu Weldt

    Ingénieur de Recherche

    - -------------------------------------

    Tél. : 33 (0)2 40 37 16 57

    Fax. : 33 (0)2 40 74 74 06

    Felipe.Bordeu at ec-nantes.fr

    Institut GeM - UMR CNRS 6183

    École Centrale Nantes

    1 Rue de La Noë, 44321 Nantes, FRANCE

    - -------------------------------------

    -----BEGIN PGP SIGNATURE-----

    Version: GnuPG v1

    

    iQEcBAEBAgAGBQJU9IXSAAoJEE/fMfNgU9/DXNUIAJd5UqjbG2tj5Yaiun6fAcvQ

    iAkHUG6cPuRAxNW9mhvTQtjY57LoidZJ2Co0/rPtTEJSrLdJdAVhQNcrOATTkrHx

    QdojMW9R3Cv2/dB0T9zFQlQ4hhMnPCmXAX5af4XwHlCkVIX5blUNK6tpB1DAyYw/

    Htjt/qrBWpYphh9ea6eX1cRBwOBzk1RY6c7Ts2dtVhkGjb1vmCrqqa5WzKP/3VQy

    Flzj+10vVKHH2XKO/6pqxALDVWWcGlyzTGUkifEz504R6mu9w7cS5/Ro+QzlH4pp

    trYpjH0NrprvmavD0s23bTn3aGbOz+qnbnM4Q4iEaZaBKxyqHIz2PpkxxlyshME=

    =hCMQ

    -----END PGP SIGNATURE-----

    

  


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150302/1e93edc4/attachment.html>


More information about the ParaView mailing list