How to calculate Wind direction from uwind and vwind?












2












$begingroup$


How to calculate wind direction from uwind and vwind?

if uwind and vwind are -1.82 , -3.18 respectively










share|improve this question









$endgroup$












  • $begingroup$
    colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
    $endgroup$
    – gansub
    Jan 7 at 3:56


















2












$begingroup$


How to calculate wind direction from uwind and vwind?

if uwind and vwind are -1.82 , -3.18 respectively










share|improve this question









$endgroup$












  • $begingroup$
    colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
    $endgroup$
    – gansub
    Jan 7 at 3:56
















2












2








2





$begingroup$


How to calculate wind direction from uwind and vwind?

if uwind and vwind are -1.82 , -3.18 respectively










share|improve this question









$endgroup$




How to calculate wind direction from uwind and vwind?

if uwind and vwind are -1.82 , -3.18 respectively







meteorology oceanography






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 6 at 15:57









ThehalfarisedPheonixThehalfarisedPheonix

111




111












  • $begingroup$
    colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
    $endgroup$
    – gansub
    Jan 7 at 3:56




















  • $begingroup$
    colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
    $endgroup$
    – gansub
    Jan 7 at 3:56


















$begingroup$
colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
$endgroup$
– gansub
Jan 7 at 3:56






$begingroup$
colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv if you want more detail for the formula provided in the answer
$endgroup$
– gansub
Jan 7 at 3:56












1 Answer
1






active

oldest

votes


















5












$begingroup$

The base formula for the direction $theta$ is



$theta=atan2left(frac{text{uwind}}{text{vwind}}right)$



Where $atan2$ is the four quadrant inverse tangent. Note that if you used the normal inverse tangent your results will be all collapsed to the first quadrant (0° to 90°). Also note that depending on the platform the result can be in radians or degrees (most often in radians, some platforms have a function atan2d that return values in degrees).



If you get a negative value (which is the same direction but measured counterclockwise), you have to add 360° (or $2pi$ radians).



This will give you the direction the wind is coming from. For the direction is going to, you have to add/substract 180° (or $pi$ radians).



For the values you provide, the answer would be 210°.






share|improve this answer











$endgroup$













  • $begingroup$
    Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
    $endgroup$
    – Fred
    Jan 7 at 8:38










  • $begingroup$
    @Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
    $endgroup$
    – Camilo Rada
    Jan 7 at 16:14














Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "553"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fearthscience.stackexchange.com%2fquestions%2f15883%2fhow-to-calculate-wind-direction-from-uwind-and-vwind%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5












$begingroup$

The base formula for the direction $theta$ is



$theta=atan2left(frac{text{uwind}}{text{vwind}}right)$



Where $atan2$ is the four quadrant inverse tangent. Note that if you used the normal inverse tangent your results will be all collapsed to the first quadrant (0° to 90°). Also note that depending on the platform the result can be in radians or degrees (most often in radians, some platforms have a function atan2d that return values in degrees).



If you get a negative value (which is the same direction but measured counterclockwise), you have to add 360° (or $2pi$ radians).



This will give you the direction the wind is coming from. For the direction is going to, you have to add/substract 180° (or $pi$ radians).



For the values you provide, the answer would be 210°.






share|improve this answer











$endgroup$













  • $begingroup$
    Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
    $endgroup$
    – Fred
    Jan 7 at 8:38










  • $begingroup$
    @Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
    $endgroup$
    – Camilo Rada
    Jan 7 at 16:14


















5












$begingroup$

The base formula for the direction $theta$ is



$theta=atan2left(frac{text{uwind}}{text{vwind}}right)$



Where $atan2$ is the four quadrant inverse tangent. Note that if you used the normal inverse tangent your results will be all collapsed to the first quadrant (0° to 90°). Also note that depending on the platform the result can be in radians or degrees (most often in radians, some platforms have a function atan2d that return values in degrees).



If you get a negative value (which is the same direction but measured counterclockwise), you have to add 360° (or $2pi$ radians).



This will give you the direction the wind is coming from. For the direction is going to, you have to add/substract 180° (or $pi$ radians).



For the values you provide, the answer would be 210°.






share|improve this answer











$endgroup$













  • $begingroup$
    Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
    $endgroup$
    – Fred
    Jan 7 at 8:38










  • $begingroup$
    @Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
    $endgroup$
    – Camilo Rada
    Jan 7 at 16:14
















5












5








5





$begingroup$

The base formula for the direction $theta$ is



$theta=atan2left(frac{text{uwind}}{text{vwind}}right)$



Where $atan2$ is the four quadrant inverse tangent. Note that if you used the normal inverse tangent your results will be all collapsed to the first quadrant (0° to 90°). Also note that depending on the platform the result can be in radians or degrees (most often in radians, some platforms have a function atan2d that return values in degrees).



If you get a negative value (which is the same direction but measured counterclockwise), you have to add 360° (or $2pi$ radians).



This will give you the direction the wind is coming from. For the direction is going to, you have to add/substract 180° (or $pi$ radians).



For the values you provide, the answer would be 210°.






share|improve this answer











$endgroup$



The base formula for the direction $theta$ is



$theta=atan2left(frac{text{uwind}}{text{vwind}}right)$



Where $atan2$ is the four quadrant inverse tangent. Note that if you used the normal inverse tangent your results will be all collapsed to the first quadrant (0° to 90°). Also note that depending on the platform the result can be in radians or degrees (most often in radians, some platforms have a function atan2d that return values in degrees).



If you get a negative value (which is the same direction but measured counterclockwise), you have to add 360° (or $2pi$ radians).



This will give you the direction the wind is coming from. For the direction is going to, you have to add/substract 180° (or $pi$ radians).



For the values you provide, the answer would be 210°.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 6 at 16:22

























answered Jan 6 at 16:14









Camilo RadaCamilo Rada

13.9k54499




13.9k54499












  • $begingroup$
    Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
    $endgroup$
    – Fred
    Jan 7 at 8:38










  • $begingroup$
    @Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
    $endgroup$
    – Camilo Rada
    Jan 7 at 16:14




















  • $begingroup$
    Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
    $endgroup$
    – Fred
    Jan 7 at 8:38










  • $begingroup$
    @Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
    $endgroup$
    – Camilo Rada
    Jan 7 at 16:14


















$begingroup$
Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
$endgroup$
– Fred
Jan 7 at 8:38




$begingroup$
Query: maths & hence trigonometry uses a horizontal, x-direction, east-west line as it's reference & angles are measured anti-clockwise. Surveying and navigation uses the y-direction, north-south line as its reference & angles are measured clockwise. By simply using the atan2 function, would this give the answer using the mathematical reference line & if so would it then need to be adjusted for surveying/navigation reference?
$endgroup$
– Fred
Jan 7 at 8:38












$begingroup$
@Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
$endgroup$
– Camilo Rada
Jan 7 at 16:14






$begingroup$
@Fred You are right about the differences in the reference frame, but this formula does not know where does point the reference line the angle is measured from. In the math world uwind would be X, and vwind would be Y and you would consider the resulting angle as measured clockwise from the direction the positive X axis points to. But in the geographical world you can just use the same output angle and simply consider it as measured clockwise from the north arrow.
$endgroup$
– Camilo Rada
Jan 7 at 16:14




















draft saved

draft discarded




















































Thanks for contributing an answer to Earth Science Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fearthscience.stackexchange.com%2fquestions%2f15883%2fhow-to-calculate-wind-direction-from-uwind-and-vwind%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

To store a contact into the json file from server.js file using a class in NodeJS

Redirect URL with Chrome Remote Debugging Android Devices

Dieringhausen