# Threshold with vector component

**URL:** https://discourse.paraview.org/t/threshold-with-vector-component/2866
**Category:** ParaView Support
**Created:** [October 29, 2019, 3:59am UTC](https://discourse.paraview.org/t/threshold-with-vector-component/2866 "2019-10-29T03:59:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![henry2004y](https://discourse.paraview.org/user_avatar/discourse.paraview.org/henry2004y/32/2296_2.png) [@henry2004y](https://discourse.paraview.org/u/henry2004y)
#### Post date: [October 29, 2019, 3:59am UTC](https://discourse.paraview.org/t/threshold-with-vector-component/2866/1 "2019-10-29T03:59:47Z")

</div>

Hi,

I am trying to apply the threshold filter, but it only allows scalar input as criterion. I want to use one component of a vector to set the criterion, and my current workaround is first use the calculator filter to create a new variable as a copy of one of the component of the vector, and then use that new variable to set the threshold. Is there a better way of doing this?

Thanks!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 29, 2019, 4:03am UTC](https://discourse.paraview.org/t/threshold-with-vector-component/2866/2 "2019-10-29T04:03:55Z")

</div>

You can enable the **Auto Convert Properties** option in the _Settings_ dialog box (available from the Edit -\> Settings menu item). This option exposes the individual vector components as arrays with suffix “\_X”, “\_Y”, “\_Z”. You can use one of these for the **Threshold** filter.

---

<div class="post-metadata">

### Author: ![henry2004y](https://discourse.paraview.org/user_avatar/discourse.paraview.org/henry2004y/32/2296_2.png) [@henry2004y](https://discourse.paraview.org/u/henry2004y)
#### Post date: [October 29, 2019, 4:48am UTC](https://discourse.paraview.org/t/threshold-with-vector-component/2866/3 "2019-10-29T04:48:53Z")

</div>

That works! Just a follow-up question: what if the criterion is a function of the coordinate, say, z \> 0? Is this the proper way?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 29, 2019, 2:22pm UTC](https://discourse.paraview.org/t/threshold-with-vector-component/2866/4 "2019-10-29T14:22:46Z")

</div>

Alas, no. **Calculator** works, as you know, but for simple thresholds like Z \> 0, you could instead use the **Clip** filter and set the clipping plain accordingly.
