Skip to content

Adds differentiation operator#1979

Merged
David Flack (daflack) merged 5 commits into
mainfrom
1959_differentiation
Apr 8, 2026
Merged

Adds differentiation operator#1979
David Flack (daflack) merged 5 commits into
mainfrom
1959_differentiation

Conversation

@daflack
Copy link
Copy Markdown
Collaborator

@daflack David Flack (daflack) commented Mar 17, 2026

This is a simple differentiation operator that acts as a wrapper around iris.analysis.calculus.differentiate. Spherical coordinate differentiation is not possible with this operator.

This is an enabling PR which will allow extreme rainfall diagnostics to be calculated, but will also allow be useful for other areas. No recipes are included as it is likely to form part of recipes in the future.

Fixes #1959

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.

@daflack David Flack (daflack) self-assigned this Mar 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 17, 2026

Coverage

@daflack David Flack (daflack) changed the title Adds a differentiation operator Adds differentiation operator Mar 17, 2026
Comment thread src/CSET/operators/misc.py Outdated
Copy link
Copy Markdown
Member

@jfrost-mo James Frost (jfrost-mo) left a comment

Choose a reason for hiding this comment

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

Looks like a sensible operator; happy to approve.

I've left a small suggestion on adding an extra check, but I'm not 100% sure it wouldn't cause false positives, so I'll leave it up to you to decide on including it.

Comment thread src/CSET/operators/misc.py
@daflack David Flack (daflack) merged commit 9db3abe into main Apr 8, 2026
8 checks passed
@daflack David Flack (daflack) deleted the 1959_differentiation branch April 8, 2026 13:53
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.

Cube differentiation operator (cartesian)

2 participants