Skip to content

Conversation

@Anzerkhan27
Copy link
Contributor

@Anzerkhan27 Anzerkhan27 commented Oct 23, 2025

Title

Add CalculateWindChill plugin for cube-based wind chill calculation


Summary

This PR adds a new plugin class, CalculateWindChill, within
improver/temperature/feels_like_temperature.py.

The existing _calculate_wind_chill function (which operates on NumPy arrays) has been incorporated into a plugin-style class. This allows wind chill to be calculated directly from Iris cubes.

Modified calculate_feels_like_temperature to use the new plugin instead of calling _calculate_wind_chill directly.

Integration

The new plugin class is added in the IMPROVER API list as:

"CalculateWindChill": "improver.temperature.feels_like_temperature"

Copy link
Contributor

@mo-robert-purvis mo-robert-purvis left a comment

Choose a reason for hiding this comment

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

Some comments to consider.

Copy link
Contributor

@mo-robert-purvis mo-robert-purvis left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Contributor

@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

Thanks @Anzerkhan27. I've added some comments below.

I don't know if this PR relates to a specific issue/user story for you, so I'm not in a position to check whether this actually fulfills the requirement you have. I have reviewed the code within this PR though.

@Anzerkhan27 Anzerkhan27 force-pushed the EPPT-2783-wind-chill-improver-wrapper-function-for-calculate-wind-chill branch from 5fe0b61 to 6e03510 Compare November 3, 2025 16:22
Copy link
Contributor

@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

Thanks for making these changes @Anzerkhan27. I've added a small comment regarding the unit tests.

Copy link
Contributor

@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

Thanks @Anzerkhan27, I've added one final comment.

Copy link
Contributor

@brhooper brhooper left a comment

Choose a reason for hiding this comment

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

Thanks for all the changes @Anzerkhan27. I'm happy with this now.

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.

4 participants