Resampling point data to structured grid based on local maximum

Hi,

I have a point dataset of distribution of a parameter T in X,Y plane. Point data is unstructured and have some overlaps between data points as well. I am trying to resample the data to a structured grid (fast_uniform_grid) based on the local maximum within each grid cell. I tried using resample_with_dataset and point_dataset_interpolator filters but they seem not to work for this case. Any suggestions on how to tackle this? csv file is attached here.

Thank you

point_data.csv (668.7 KB)