How to measure phase speed in Hovmoller
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luis Jesús Olvera Lazcano
am 27 Sep. 2023
Beantwortet: Luis Jesús Olvera Lazcano
am 16 Okt. 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 Kommentare
Sam Chak
am 10 Okt. 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.
Akzeptierte Antwort
Shubham
am 9 Okt. 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!!
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu AI for Signals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!