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

919 plot vertical line series and plot scatter plot add cubelist handling #1100

Open
wants to merge 66 commits into
base: main
Choose a base branch
from

Conversation

Sylviabohnenstengel
Copy link
Contributor

@Sylviabohnenstengel Sylviabohnenstengel commented Jan 29, 2025

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.

Sylviabohnenstengel and others added 30 commits January 22, 2025 18:25
This handles globbing anywhere in the input path, moves to treating the
provided patterns as strings rather than paths before they have been
resolved, and generally makes the path and file loading more
consistently handled.

Also included is marking the first path loaded as comparison base, which
will be used by difference operators to know what to compare against.
In practice this will translate to the first model in the GUI being used
as the base.
This reflects the non-sequential nature of the variable, and how it will soon
contain multiple values.
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/.

One of the biggest changes is the move to a simple list for model fields
instead of the complicated table affair we had before.

Fixes #667
Fixes #808
Fixes #817
Fixes #859

Update example rose-suite.conf
This will cause it to be marked as such on GitHub, and not clutter up
pull request diffs.
This allows comparing different variables from the same plot.
Most of the time this is what you want. You only need to set the offset
if data isn't output on the first timestep.
Use PT1H as that is what a lot of data is output at. Urban data is often
15 minutely, but is sufficiently niche to require changing an accessible
setting.
Also tweak a few help descriptions.
into a new operator as now needed in multiple operators
due to collapsing over wrong time coordinate
jfrost-mo and others added 14 commits January 29, 2025 10:51
This required adding some LFRic test data. This is a small cutout
over Exeter from an LFRic_apps vn1.1 run valid for 20220101T0000Z.
We instead just use the order of the latitude coordinate, which is
what we care about anyway.
We no longer need it, and ideally want code to be model agnostic.
This adds a number of new variables taken from UKEP Plot's def_atm_vars.py.
This also includes a large number of difference ranges.

The existing range values have been preserved where they were difference
with the exception of cloud base height, which has been increased to a more
reasonable sounding 1000m.
This fixes the flaky tests that have come from caplog picking up a
different tests logs now we are running under pytest-xdist.
@Sylviabohnenstengel Sylviabohnenstengel self-assigned this Jan 29, 2025
@Sylviabohnenstengel Sylviabohnenstengel added the enhancement New feature or request label Jan 29, 2025
@Sylviabohnenstengel
Copy link
Contributor Author

In order to get the plot operator working with lfric data I had to change the recipe for plotting on mlevels. this rquired changing the coordinate set to full_levels

Copy link
Contributor

github-actions bot commented Jan 29, 2025

Coverage

@Sylviabohnenstengel
Copy link
Contributor Author

Due to rebasing main and then merging in those changes into my branch there are a lot of changes to review. the main change is in def _plot_and_save_vertical_line_series(

@Sylviabohnenstengel
Copy link
Contributor Author

Updating branch as this might help.

@Sylviabohnenstengel Sylviabohnenstengel changed the title 919 plot vertical line series add cubelist handling 919 plot vertical line series and plot scatter plot add cubelist handling Jan 30, 2025
@Sylviabohnenstengel
Copy link
Contributor Author

used GitHub Copilot to include cubelists in zip function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants