How to measure phase speed in Hovmoller
6 views (last 30 days)
Show older comments
Luis Jesús Olvera Lazcano
on 27 Sep 2023
Answered: Luis Jesús Olvera Lazcano
on 16 Oct 2023
I have this Hovmoller plot of OLR anomalies with longitude x time, only showing the negative anomalies:
I want to know if theres a way to calculate the phase speed of this anomaly. That is, following the OLR minima over the time and then do a linear least square fit and obtain the quantity. Also, show the points and the fit in the same plot :)
Thank you, Ive been stucked with this for weeks
4 Comments
Sam Chak
on 10 Oct 2023
Thank you, @Luis Jesús Olvera Lazcano. I'm looking forward to seeing your code in your answer. By the way, it is meaningful to help others, and it is absolutely fine to 'click-accept' your self-discovered solution.
Accepted Answer
Shubham
on 9 Oct 2023
I understand that you want to calculate the phase speed of the anomalies.
You can try finding the minima points from the data. You can refer to the “islocalmin” function. The function returns a logical array representing the indices for the local minimum.
After extracting the minima points you can fit a linear curve between them. You can use the “polyfit” function to get a linear fit.
You can use the coefficients returned by the “polyfit” function and use them to show the points and the fit in the same plot.
For the phase speed you can try using the coefficient of the linear fit itself.
Hope this helps!!
More Answers (1)
See Also
Categories
Find more on AI for Signals 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!