Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotating u and v wind components to true n/E axis prior to calculating wind direction using wind.dirspeed #18

Open
gtyree01 opened this issue Jun 17, 2024 · 2 comments

Comments

@gtyree01
Copy link

Hello,

I want to use meteogrid::wind.dirspeed() to calculate wind direction. Does the meteogrid package have a function that will rotate the u and v wind components to a true n/E axis before calculating wind direction? If not, then do the package developers have a suggestion for how to do this in R? I am looking for a function in R that is equivalent to matplotlib.basemap.rotate_vector() in Python.

@andrew-MET
Copy link
Contributor

andrew-MET commented Jun 18, 2024

Set rotate_wind = TRUE in the call to wind.dirspeed(). Or you can use geowind to calculate the rotated u and v first. @adeckmyn Would you be able to add documentation for the rotate_wind argument to wind.dirspeed()?

@gtyree01
Copy link
Author

@andrew-MET Thank you for the guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants