Hi, I tried this. But the created object only contains the A data not the B data. I have created the data set by "Group Datasets" since A and B come from different files. (I am using Paraview 5.4.1 if there are differences) Best Regards, Moritz
Von: Favre Jean [mailto:jfa...@cscs.ch] Gesendet: Freitag, 25. Mai 2018 16:00 An: Huck, Moritz; paraview@public.kitware.com Betreff: RE: Filtering Data Set by Second Data Set The Find Data filter (under the Edit menu) will do exactly this suppose you have a dataset with two fields called "A" and "B" Use Find Data Create a Selection Find Cells from "<name of your grid in the pipeline browser>" Select "A" is >= x # (replace "x" by the numeric value click on "Run Selection Query" click on Extract Selection and a new object is created in the pipeline. ----------------------------------------------------------------------------------------------------------- Should you want to do this programmatically (using python), it is a far less obvious to figure out the right syntax, because the calls are not being traced. :-( Here is the code I would use: selection=SelectCells() selection.QueryString="scalar2 >= x" # (replace "x" by the numeric value selection.FieldType = 'CELL' selection.UpdatePipelineInformation() # create a new 'Extract Selection' # assuming your input object is called "grid" mySelection = ExtractSelection(Input=grid, Selection=selection) mySelection.UpdatePipeline() Show(mySelection) HTH ----------------- Jean/CSCS
_______________________________________________ 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://public.kitware.com/mailman/listinfo/paraview