Eliminating minor crests/troughs in a tidal curve

20 Views Asked by At

I have some tidal data, I only have the turning points of the curve.

I want to eliminate the minor troughs/crests so I only get the high and low tide without the minor variations.

The curve

Is there a good method for this?

My curve is not a fixed length or amplitude and its important I keep the actual high and lows.

I will be trying implementing it in code to filter the data