Modelling tide to look for submersion tide
Afficher commentaires plus anciens
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 commentaire
Wayne King
le 27 Jan 2014
Can you please define what a monthly submersion time is with respect to tides?
Réponses (2)
Kelly Kearney
le 27 Jan 2014
Modifié(e) : Kelly Kearney
le 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.
1 commentaire
chiamag
le 27 Jan 2014
Image Analyst
le 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.
Catégories
En savoir plus sur Oceanography and Hydrology dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!