Hi,
I have a database of tidal data, i.e. the time with corresponding tide level, every 5 min a day. If you plot this data, you get a sinusoidal curve. I would like to be able to input a certain day + tide level and get the times back in which the tide is lower than this level. For example;
input: 09/09/14; 2.4m
output: from 0:05 to 9:25 and from 12:00 to 21:20
So this means that between 0:05 and 9:25 the tide is lower than 2.4m and between 12:00 and 21:20 the tide is again lower than 2.4m.
Since there are 2 high tides a day, I should always get 2 time intervals... I will also sometimes get 2.5 time intervals (e.g. if the tide is low again at midnight).
Help on this one would be greatly appreciated...
Thanks!
Marie
I have a database of tidal data, i.e. the time with corresponding tide level, every 5 min a day. If you plot this data, you get a sinusoidal curve. I would like to be able to input a certain day + tide level and get the times back in which the tide is lower than this level. For example;
input: 09/09/14; 2.4m
output: from 0:05 to 9:25 and from 12:00 to 21:20
So this means that between 0:05 and 9:25 the tide is lower than 2.4m and between 12:00 and 21:20 the tide is again lower than 2.4m.
Since there are 2 high tides a day, I should always get 2 time intervals... I will also sometimes get 2.5 time intervals (e.g. if the tide is low again at midnight).
Help on this one would be greatly appreciated...
Thanks!
Marie