@aurelienchauvin I tried to take a look but was not able to make sense of your data. So the fist step would be to clearly define what data you have and what task should be done and provide an example that fits this description and where you can explain which outcome you would expect.
This is where I currently stand:
If you want to identify blocks and deal with them later you can take a look at this example: