Skip to content

Calculate wind vector speed and direction from U and V compts#2119

Open
Simon Osborne (mo-sro) wants to merge 26 commits into
mainfrom
wind_speed_direction_calculator
Open

Calculate wind vector speed and direction from U and V compts#2119
Simon Osborne (mo-sro) wants to merge 26 commits into
mainfrom
wind_speed_direction_calculator

Conversation

@mo-sro
Copy link
Copy Markdown
Contributor

@mo-sro Simon Osborne (mo-sro) commented May 12, 2026

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Ensure rose-suite.conf.example has been updated if new diagnostic added.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

Coverage

@mo-sro Simon Osborne (mo-sro) changed the title Created wind vector speed and direction from the U and V components Create wind vector speed and direction from the U and V components May 14, 2026
@mo-sro Simon Osborne (mo-sro) changed the title Create wind vector speed and direction from the U and V components Calculate wind vector speed and direction from U and V compts May 14, 2026
Copy link
Copy Markdown
Collaborator

@daflack David Flack (daflack) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, a few comments to think about for improving the operator, and some tests will be needed as well to show it works as expected.

Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Refactor calculate_vector_wind to calculate_vector_wind_from_list and update its handling of CubeList input. so that U and V are separate arguments.
Updated docstring to correct terminology and improve clarity.
Updated docstring formatting and improved readability.
Updated docstring to correct terminology and formatting.
Extract U and V components from CubeList.
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
Comment thread src/CSET/operators/wind.py Outdated
@mo-sro
Copy link
Copy Markdown
Contributor Author

Looking good, a few comments to think about for improving the operator, and some tests will be needed as well to show it works as expected.

set of 6 tests now in place for the new calculate_wind_vector function.

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

Successfully merging this pull request may close these issues.

2 participants