# Temporal interpolator screws up Resample with dataset

**URL:** https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194
**Category:** ParaView Support
**Created:** [May 10, 2021, 1:02pm UTC](https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194 "2021-05-10T13:02:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Massimiliano\_Leoni](https://discourse.paraview.org/user_avatar/discourse.paraview.org/massimiliano_leoni/32/376_2.png) [@Massimiliano\_Leoni](https://discourse.paraview.org/u/Massimiliano_Leoni)
#### Post date: [May 10, 2021, 1:02pm UTC](https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194/1 "2021-05-10T13:02:10Z")

</div>

Hello, I ran into some quite disturbing behaviour using ParaView 5.9.0 on a Linux machine.  
My solution file contains a flow field from Navier-Stokes, time-dependent. I want to compute fluxes across a given surface over time, so I put together a pipeline like so:

1. extract the relevant blocks
2. append them
3. generate surface
4. generate surface normals
5. use Calculator to compute the fluxes
6. resample with dataset to the surface I’m interested into
7. integrate variables

Long-story short: I thought it was cool to add temporal interpolator to sample data at regular times since I use adaptive time stepping, but then I realised that something was off.  
Upon closer inspection, I saw that using a temporal interpolator somehow messes up with the whole pipeline, most likely with the Resample with dataset filter.  
The symptom is that some time steps contain garbage data, but not always: if I go back and forth, it will give different results [possibly the correct one].

I attach a clip to show the issue. [demo.mkv](https://discourse.paraview.org/uploads/short-url/u4HPhPwOhAwjCe8Frl7Rdo7i652.mkv) (1.0 MB)

Massimiliano

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 11, 2021, 7:11am UTC](https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194/2 "2021-05-11T07:11:00Z")

</div>

Are you able to identify which timesteps fails and reproduce it without using time at all ?  
What if you add the temporal interpolator after the resample ?

---

<div class="post-metadata">

### Author: ![Massimiliano\_Leoni](https://discourse.paraview.org/user_avatar/discourse.paraview.org/massimiliano_leoni/32/376_2.png) [@Massimiliano\_Leoni](https://discourse.paraview.org/u/Massimiliano_Leoni)
#### Post date: [May 11, 2021, 7:21am UTC](https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194/3 "2021-05-11T07:21:00Z")

</div>

It’s not a single time step that fails, it’s all of them, at random. In fact, I plotted data over time and from the resulting plot I could see that around 30/40% of the data points were garbage.

I haven’t tried interpolating after resampling, I can try that and report back.

---

<div class="post-metadata">

### Author: ![Massimiliano\_Leoni](https://discourse.paraview.org/user_avatar/discourse.paraview.org/massimiliano_leoni/32/376_2.png) [@Massimiliano\_Leoni](https://discourse.paraview.org/u/Massimiliano_Leoni)
#### Post date: [May 11, 2021, 8:27am UTC](https://discourse.paraview.org/t/temporal-interpolator-screws-up-resample-with-dataset/7194/4 "2021-05-11T08:27:36Z")

</div>

Adding a temporal interpolator only to the resample with dataset filter at the end of the pipeline seems to work as expected.
