Re: [Paraview] ParaView - Variables and different Time Steps

2018-01-11 Thread Utkarsh Ayachit
Carolin,

Check this post out:
https://blog.kitware.com/improved-vtk-numpy-integration-part-5/

The input to your filter as a vtkMultiBlockDataSet with each block
being a timestep, you can access individual arrays as described in the
post or you can use the following approach:

from paraview.vtk.numpy_interface import dataset_adapter as dsa
dataset_time0 = dsa.WrapDataObject(inputs[0].GetBlock(0))
dataset_time1 = dsa.WrapDataObject(inputs[0].GetBlock(1))

etc.

Utkarsh

On Thu, Jan 11, 2018 at 5:34 AM, Carolin Helbig <carolin.hel...@ufz.de> wrote:
> Dear Utkarsh,
>
> thank you very much for your help. It looks like it would work for my case,
> but I have some more question. How can I access the different time steps in
> the programmable filter? I thought they are the inputs (inputs[0],
> inputs[1], ...), but that doesn't work.
>
> Thanks again!
>
> Carolin.
>
>
>
> Am 10.01.2018 um 16:06 schrieb Utkarsh Ayachit:
>>
>> The easiest way to do such a thing is as follows:
>>
>> 1. Apply Extract TimeSteps filter to your reader/source to choose the
>> timesteps of interest.
>> 2. Apply Group TimeSteps filter to it to group the timesteps extracted
>> in (1) into a mutliblock dataset with 1 block for each selected
>> timestep in order.
>> 3. Now add your programmable filter to (2) and you can access all
>> timesteps of interest as blocks in your input.
>>
>> You can skip (1) if you want to use all timesteps, and not just a subset.
>>
>> Utkarsh
>>
>> On Wed, Jan 10, 2018 at 4:56 AM, Carolin Helbig <carolin.hel...@ufz.de>
>> wrote:
>>>
>>> Dear ParaView team,
>>>
>>> I read a post at the ParaView website concerning variables and different
>>> time steps (see
>>> https://public.kitware.com/pipermail/paraview/2014-May/031054.html). I
>>> have
>>> a similar problem and I want to access values from different time steps
>>> using the programmable filter with multiple inputs. I unfortunately have
>>> no
>>> idea how to access other time steps using the programmable filter. Could
>>> you
>>> give me some advice or a hint where I can find detailed information about
>>> that issue? I would be very happy if you could help me.
>>>
>>> Best regards,
>>> Carolin.
>>>
>>> --
>>> Dr. Carolin Helbig
>>>   Department Umweltinformatik
>>> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
>>> Permoserstraße 15 I 04318 Leipzig
>>> Tel.: +49 341 235 - 1032
>>> Email: carolin.hel...@ufz.de
>>> WWW: http://www.ufz.de
>>>   https://www.ufz.de/index.php?en=31616
>>>
>>>
>>> Sitz der Gesellschaft
>>> Registergericht: Amtsgericht Leipzig
>>> Handelsregister Nr.: B 4703
>>> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
>>> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
>>> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>>>
>>> ___
>>> 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:
>>> https://paraview.org/mailman/listinfo/paraview
>
>
> --
> Dr. Carolin Helbig
>  Department Umweltinformatik
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstraße 15 I 04318 Leipzig
> Tel.: +49 341 235 - 1032
> Email: carolin.hel...@ufz.de
> WWW: http://www.ufz.de
>  https://www.ufz.de/index.php?en=31616
>
>
> Sitz der Gesellschaft
> Registergericht: Amtsgericht Leipzig
> Handelsregister Nr.: B 4703
> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParaView - Variables and different Time Steps

2018-01-10 Thread Utkarsh Ayachit
The easiest way to do such a thing is as follows:

1. Apply Extract TimeSteps filter to your reader/source to choose the
timesteps of interest.
2. Apply Group TimeSteps filter to it to group the timesteps extracted
in (1) into a mutliblock dataset with 1 block for each selected
timestep in order.
3. Now add your programmable filter to (2) and you can access all
timesteps of interest as blocks in your input.

You can skip (1) if you want to use all timesteps, and not just a subset.

Utkarsh

On Wed, Jan 10, 2018 at 4:56 AM, Carolin Helbig <carolin.hel...@ufz.de> wrote:
> Dear ParaView team,
>
> I read a post at the ParaView website concerning variables and different
> time steps (see
> https://public.kitware.com/pipermail/paraview/2014-May/031054.html). I have
> a similar problem and I want to access values from different time steps
> using the programmable filter with multiple inputs. I unfortunately have no
> idea how to access other time steps using the programmable filter. Could you
> give me some advice or a hint where I can find detailed information about
> that issue? I would be very happy if you could help me.
>
> Best regards,
> Carolin.
>
> --
> Dr. Carolin Helbig
>  Department Umweltinformatik
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstraße 15 I 04318 Leipzig
> Tel.: +49 341 235 - 1032
> Email: carolin.hel...@ufz.de
> WWW: http://www.ufz.de
>  https://www.ufz.de/index.php?en=31616
>
>
> Sitz der Gesellschaft
> Registergericht: Amtsgericht Leipzig
> Handelsregister Nr.: B 4703
> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>
> ___
> 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:
> https://paraview.org/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:
https://paraview.org/mailman/listinfo/paraview


[Paraview] ParaView - Variables and different Time Steps

2018-01-10 Thread Carolin Helbig

Dear ParaView team,

I read a post at the ParaView website concerning variables and different 
time steps (see 
https://public.kitware.com/pipermail/paraview/2014-May/031054.html). I 
have a similar problem and I want to access values from different time 
steps using the programmable filter with multiple inputs. I 
unfortunately have no idea how to access other time steps using the 
programmable filter. Could you give me some advice or a hint where I can 
find detailed information about that issue? I would be very happy if you 
could help me.


Best regards,
Carolin.

--
Dr. Carolin Helbig
 
Department Umweltinformatik

Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstraße 15 I 04318 Leipzig
Tel.: +49 341 235 - 1032
Email: carolin.hel...@ufz.de
WWW: http://www.ufz.de
 https://www.ufz.de/index.php?en=31616

 


Sitz der Gesellschaft
Registergericht: Amtsgericht Leipzig
Handelsregister Nr.: B 4703
Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann  

___
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:
https://paraview.org/mailman/listinfo/paraview