Modelling tide to look for submersion tide
Mostrar comentarios más antiguos
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 comentario
Wayne King
el 27 de En. de 2014
Can you please define what a monthly submersion time is with respect to tides?
Respuestas (2)
Kelly Kearney
el 27 de En. de 2014
Editada: Kelly Kearney
el 27 de En. de 2014
0 votos
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 comentario
chiamag
el 27 de En. de 2014
Image Analyst
el 27 de En. de 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.
Categorías
Más información sobre Oceanography and Hydrology en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!