This is "the crowning glory" so far of my "Pointless processing of the Newlyn tide-gauge 2022 data".
Tide data gratefully received from the British Oceanographic Data Centre (BODC) [external link].
Two things here:
Sample from BODC's Newlyn all 2022 tide data:
Cycle Date Time ASLVBG02 Residual Number yyyy mm dd hh mi ssf f f ... 29998) 2022/11/09 11:15:00 1.224 0.172 29999) 2022/11/09 11:30:00 1.206 0.176 30000) 2022/11/09 11:45:00 1.240 0.193 30001) 2022/11/09 12:00:00 1.310 0.206 30002) 2022/11/09 12:15:00 1.419 0.216 ...of which the 4th column is the measured sea water height above LAT (Lowest Astronomical Tide), ie above nautical chart datum.
This sample is selected because it can be seen graphed around datapoint 30000 here (in webpage Newlyn 2022 tide cycles samples ).
Seeking to find the highest point of the high tides:
awk ' BEGIN {dpcnt=0; dpval=0} { if ($4 > dpval && $4 < 6.2 && $4 > 2) {dpcnt=NR; dpval=$4} else if (NR > dpcnt + 32) {print dpcnt, dpval; dpcnt=NR; dpval=0} } '
Seeking to find the lowest point of the low tides:
awk ' BEGIN {dpcnt=0; dpval=3.5} { if ($4 < dpval && $4 < 3.5 && $4 > 0) {dpcnt=NR; dpval=$4} else if (NR > dpcnt + 32) {print dpcnt, dpval; dpcnt=NR; dpval=3.5} } '
Where, as best I can be bothered to explain:
... the plot of all the 2022 Newlyn measured sea height data-points.
Thanks go to Reddaway's cider of Luton, Devon [external links: (Facebook) (ciderexpert) (ratebeer) ] for assistance with my thought processes. My recommendation "Very Dry" which after overcoming digestive malady (about 2 days) is the real natural authentic cider (add honey (eg half-teaspoon) at time of drinking if the cider is too tart to be drinkable).
(R. Smith, 28Apr2023 to 29Apr2023, 30Apr2023 (eds.))