# Remove Partial Datasets in OverlappingAMR Dataset

**URL:** https://discourse.paraview.org/t/remove-partial-datasets-in-overlappingamr-dataset/6652
**Category:** ParaView Support
**Tags:** python
**Created:** [March 9, 2021, 6:01am UTC](https://discourse.paraview.org/t/remove-partial-datasets-in-overlappingamr-dataset/6652 "2021-03-09T06:01:28Z")
**Posts on this page:** 1
**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 9, 2021, 6:01am UTC](https://discourse.paraview.org/t/remove-partial-datasets-in-overlappingamr-dataset/6652/1 "2021-03-09T06:01:28Z")

</div>

For one project I’m currently stuck using PV v5.6 and I need to use the Calculator on a vtkOverlappingAMR dataset with partial datasets. This doesn’t work, as has been previously mentioned [here](https://discourse.paraview.org/t/calculator-does-not-work-with-partial-dataset/1599).

I know that this has been fixed at least as of 5.9, but bear with me…

What’s the simplest way to programmatically (Python) remove partial datasets/to extract the lowest-level AMR cells?

I’ve found I can either:

1. Apply a `Threshold` filter using any scalar and set the min/max to the actual scalar min/max
2. Apply an `ExtractAMRBlocks` filter and generate the `SelectedDataSets` value for the lowest level

Anything more straight-forward than those?
