convert wind direction in true North to Math convention
Afficher commentaires plus anciens
Hi all,
I am very confused about how to convert wind direction in true North to math convention (Trigonometric style). Could anyone offer some help?
Thanks
1 commentaire
Geoff Hayes
le 16 Fév 2018
tanq - do you have any examples or can you provide some context? If the wind is coming from the north (0 degrees), is the "math convention" just
0 + 180 = 180 degrees
and then you convert that into radians? I'm assuming that the compass is like
N
^
|
W < - - > E
|
S
And so a wind coming from the north has a direction towards the south i.e. 180 degrees along the y-axis. Likewise, a wind from the west is blowing to the east and so its direction would be
270 + 180 = 450 = 90 degrees
I suppose that given this angle you may want to determine the x- and y-components. Since the angle is relative to true north, then for wind coming from the north with speed ws
theta = 180 (degrees)
x = ws * sind(theta)
y = ws * cosd(theta)
Or the above is wrong and isn't what you are looking for...
Réponse acceptée
Plus de réponses (2)
Mayra
le 9 Juil 2019
I have been struggling with the same problem and I found an easy way to deal with this.
First you should convert your original data (direction with true north, i.e. clockwise and 0° at the top and wind intensity, I will call Direction and Wind) to cartesian coordinates.
[u,v] = pol2cart(deg2rad(Direction),Wind);
Then you convert it againd to polar coordinates but swaping u and v
[theta,rho]=cart2pol(v,u);
Now theta is the wind direction in polar coordinates, i.e. counterclockwise and 0° at right.
wave_buoys
le 17 Fév 2018
Modifié(e) : wave_buoys
le 17 Fév 2018
0 votes
1 commentaire
Image Analyst
le 17 Fév 2018
OK, what about it? What do you want to do with it? I have no idea.
Catégories
En savoir plus sur Weather and Atmospheric Science 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!