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

WIP: Wind direction modifications #1947

Closed
wants to merge 9 commits into from
Closed

Conversation

thbom001
Copy link
Contributor

Addresses #GitHubissuenum

Description

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

CLA

  • If a new developer, signed up to CLA

The simpler method takes about 65% the CPU time as the original
method (tested on a massive array of angles). Furthermore, the
original method introduces a tiny error for a very few angles near
0/360 degrees.
We blend wind direction data using the IMPROVER wind direction
functionality. We identify wind direction data by it having units
of degrees.

This identification of wind directions could be generalised to
any variabe which has units that can be converted to degrees, not
just degrees. For example, if the units were radians. But I've not
seen things like radians used in meteorology, so just restricting
the code to variables with units of "degrees" is OK for now.
This was introduced by me at the previous commit.
Test 1: 350->20 degrees, expect 5 degrees.
Test 2: 40->60 degrees, expect 50 degrees.
We assume that wind directions can be identified by the units
attribute being "degrees". If this is the case, we use the special
wind direction blending functionality to handle blending.
Initially we had direction blending in the wrong function. It
worked, as long as that function was called. If it wasn't then
direction blending didn't happen.
@thbom001 thbom001 added the BoM review required PRs opened by non-BoM developers that require a BoM review label Sep 28, 2023
@thbom001 thbom001 self-assigned this Sep 28, 2023
@thbom001 thbom001 closed this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BoM review required PRs opened by non-BoM developers that require a BoM review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant