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
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.
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
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
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)
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