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

Difference plots and other stuff #1025

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

jfrost-mo
Copy link
Member

@jfrost-mo jfrost-mo commented Jan 9, 2025

This PR will be broken into multiple, then closed.

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.
  • 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.

@jfrost-mo
Copy link
Member Author

Todo:

  • Add colorbar definitions for all variables.
  • Plumb through to workflow.
  • Fix errors.
  • Add tests.

@jfrost-mo jfrost-mo force-pushed the difference_plots_and_other_stuff branch from e1b8444 to ace063a Compare January 13, 2025 12:58
Not all spatial plots are contour plots nowdays.
Non-matching attributes are removed.
Still WIP, as doesn't yet support UM.
It isn't in any hot paths, and makes inspecting it much nicer.
It now removes coordinates that are not present on all cubes.
Currently can't do UM-LFRic plots correctly, as the arrays are flipped.
This allows having a unique colour bar range for each difference type.
We only need it for the array flipping, so it would be best to not
make it unnecessarily accessible.
This reflects the non-sequential nature of the variable, and how it will soon
contain multiple values.
This syntax has been avaliable since python 3.9, which is beyond our
minimum supported version of python 3.10, therefore it can all be removed.
As they may contain glob patterns, Paths don't really work.
This is more compatible for saving into a file than boolean.
This also makes paths and file loading more consistently handled.
@jfrost-mo jfrost-mo force-pushed the difference_plots_and_other_stuff branch from ace063a to 5ecb159 Compare January 13, 2025 16:55
Copy link
Contributor

github-actions bot commented Jan 13, 2025

Coverage

The lead time functionality is a subset, so we only need the one mode.
This change switches to a generated rose-meta.conf, so it is much easier to
maintain. It also removes a number of obsolete keys, updates descriptions,
makes analysis_offset and analysis_period per-model, and removes the
s/crimes against rose edit/mapping between model and fieldname/.
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.

1 participant