The programmable filter just runs the Python script you give it. Use Python to 
iterate over all the fields in your dataset. Augmenting the example in the 
email you reference, use something like this to iterate over all the fields:

for field in inputs[0].PointData.keys():
    data0 = inputs[0].PointData[field]
    data1 = inputs[1].PointData[field]
    output.PointData.append(data0-data1, field + '-diff')

-Ken


From: ParaView [mailto:[email protected]] On Behalf Of John Haase
Sent: Friday, March 24, 2017 2:11 PM
To: ParaView <[email protected]>
Subject: [EXTERNAL] [Paraview] Difference in dataset for multiple variables

Hello Paraviewers,

I want to make sure my multivariable cyclic simulation has reached "steady 
state" so I am trying to match the corresponding timesteps and get the R^2 
error. To take the difference between the two datasets, I was thinking of 
following the method laid out here

http://paraview.markmail.org/search/?q=difference#query:difference+page:1+mid:lc6a4ss2j5hi37ps+state:results

and using the ProgrammableFilter to take the difference. That works great for a 
single variable. However, is there a way to take the difference of all the 
variables in the data set? Or do I just have to have a ProgrammableFilter for 
each variable?

Thank you for the advice

Regards,

John
_______________________________________________
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

Reply via email to