Re: [Paraview] extract location of minimum

2011-03-21 Thread Eelco van Vliet
Just to answer my own questions. Indeed it is possible to skip ProgrammableFilter if you are programming in pvbatch. The data can be accessed in the following way (which was my question). Below is much more efficient, because there is no need for writing data to file. Well, hopefully this

Re: [Paraview] extract location of minimum

2011-03-15 Thread Eelco van Vliet
For those interested, I will give here my script how to extract the minimum value and its location in a serie of time steps, write it to file and put spheres on the local minimum. Since my knowledge of VTK is quite limited, I didn't know how to access the data, so I use some tricking to get it.

Re: [Paraview] extract location of minimum

2011-03-04 Thread Eelco van Vliet
Hi David, Many thanks for you suggestions. I was away for a while but had some time to look at this points this week again. The using the Python calculator brought me on the trail of using The Programmable Pythonscript filter. My quest: I want to extrate the minimum value and its position for a

Re: [Paraview] extract location of minimum

2011-02-11 Thread David E DeMarle
I suggest replacing the Calculator and DescriptiveStatistics filters with one python programmable filter (or python calculator if you are using 3.10). That way the data type isn't changed and Fetch will do what you expect it to - produce a standard vtkDataSet with 1 point/cell. The python

[Paraview] extract location of minimum

2011-02-10 Thread Eelco van Vliet
Dear Paraviewers, I would like to extract the location of a minimum value from a data set in pvbatch I were able to find the value of the minimum with mm=MinMax(Uzcomponent) mm.Operation=MIN mindata=sm.Fetch(Uzcomponent,mm,mm)

Re: [Paraview] extract location of minimum

2011-02-10 Thread David E DeMarle
The min max filter unfortunately doesn't keep track of which tuple and processor it found the min in so you can't get back to the particular point or cell it came from. Instead of using fetch and minmax, try using a values selection. Set the value to be that minimum value. Once you extract the