Skip to content

Data binning based on variable instead of x, y, z? #1139

Answered by cyrush
BenWibking asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BenWibking yes this is supported.

One constraint is that the binning vars must have the same centering (or association) to the mesh.

So you may need to add a recenter pipeline filter if your centerings differ.

We did not have tests that exercise or demonstrate this, so I created the following PR:

#1140

If the details of the PR are too dense, here is the equivalent yaml example for a binning query with a recentered input:

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "recenter"
        params: 
          field: "braid"
          association: "element"
- 
  action: "add_queries"
  queries: 
    q2: 
      params: 
        expression: "binning('radial','ma…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BenWibking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants