# Threshold by Part ID/Convert Field Array to Cell Array

**URL:** https://discourse.paraview.org/t/threshold-by-part-id-convert-field-array-to-cell-array/1486
**Category:** ParaView Support
**Created:** [March 18, 2019, 8:30pm UTC](https://discourse.paraview.org/t/threshold-by-part-id-convert-field-array-to-cell-array/1486 "2019-03-18T20:30:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [March 18, 2019, 8:30pm UTC](https://discourse.paraview.org/t/threshold-by-part-id-convert-field-array-to-cell-array/1486/1 "2019-03-18T20:30:46Z")

</div>

Hello,

I would like to threshold by part ID, however I see that one can only do so by point/cell data scalars.  
Is there a way to convert field array data (part IDs) to cell arrays?

Thanks,  
Theodore

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [March 20, 2019, 12:46am UTC](https://discourse.paraview.org/t/threshold-by-part-id-convert-field-array-to-cell-array/1486/2 "2019-03-20T00:46:43Z")

</div>

If your data is a multiblock dataset, the easiest way to do it may be to use the **Block Scalars** filter.

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [March 20, 2019, 2:59pm UTC](https://discourse.paraview.org/t/threshold-by-part-id-convert-field-array-to-cell-array/1486/3 "2019-03-20T14:59:30Z")

</div>

I see that this filter adds a scalar field, but one that only pertains to block indices. I’m looking for a way to get a scalar field that relates directly to part IDs.

I understand that I could build and append a partID cell data array to each of my lowest level blocks through a programmable filter.

Alternatively, I will probably attach a partID array to my data as it is written. It’s coming out of a custom solver.

Thank you for your suggestion, though.
