It depends on what you want to do. For example, a low-pass filter is a poor solution for a study of storm surges, because they occur on short time-scales. However, it would be an acceptable solution if the goal is to explore seasonal variation.
I think most people use a harmonic-analysis tool to remove tides. In matlab you can use t-tide. In R you can use oce::tidem
I want to remove the diurnal and semi-diurnal signals from the data or the other signals due to the shallow water constituents from the hourly datasets.