Modelling tide to look for submersion tide
Show older comments
Hello, I need some help since I have just started using Matlab. I would like to build a model representing the tide in order to have a monthly submersion time. Anybody can suggest me the sinusoidal function to use please? thank you
1 Comment
Wayne King
on 27 Jan 2014
Can you please define what a monthly submersion time is with respect to tides?
Answers (2)
Kelly Kearney
on 27 Jan 2014
Edited: Kelly Kearney
on 27 Jan 2014
0 votes
Tides are a bit more complex than just a simple sinusoid. The t_tide toolbox can generate predicted tides at a given location, given a subset of harmonics ( http://www2.ocgy.ubc.ca/~rich/#T_Tide ). There seem to be several options on the File Exchange as well.
Image Analyst
on 27 Jan 2014
Let's say your data is in a variable called tideHeight. Let's say there is a particular object (a roadway, a signpost, a rock, a turtle's nest, or whatever) that is submerged when you tide height is more than 9. Then you can find elements where it's submerged by doing this
% A logical (true/false) vector 1,0,0,1,1,1,0,0,1,0,0,1,0 or whatever.
itsSubmerged = tideHeight >= 9;
% Find actual index numbers: 1,4,5,6,9,12
submergedIndexes = find(itsSubmerged);
Then you can look at diff(itsSubmerged) to find when it just starts being submerged:
starts = find(diff(itsSubmerged));
That will help you figure out what the period should be for your sine wave model.
Categories
Find more on Oceanography and Hydrology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!