-
Notifications
You must be signed in to change notification settings - Fork 12
Add summary statistic (mean, max, min,...) plots and introduce additional aggregation options #1377
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
Merged
Merged
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
98158e8
Update cset-workflow logic for mlevel changes
ukmo-huw-lewis 1be1a19
Further rationalisation of includes files - merging surface, plevel and
ukmo-huw-lewis faf4314
Consolidate generic recipes for pressure level and model level, ensuring
ukmo-huw-lewis b3f22ee
Update recipes to add generic level type in output titles and webpage
ukmo-huw-lewis 39f4bbd
long plot labels
ukmo-huw-lewis 67fd9e0
Merge remote-tracking branch 'origin/main' into 1317-fix-mlevel-plot-…
ukmo-huw-lewis de46a6d
Tidy workflow family settings for #1317, to ensure families not created
ukmo-huw-lewis 613502d
Push update to stats branch
ukmo-huw-lewis 2143746
Update example recipe file
ukmo-huw-lewis bd7f38d
Merge branch 'main' into 1317-fix-mlevel-plot-options
ukmo-huw-lewis cdebfbe
Updated changeset for #1285, introducing $METHOD env variable to general
ukmo-huw-lewis 42d7d94
Add new aggregation over all data outputs
ukmo-huw-lewis 4b7de2d
Merge remote-tracking branch 'origin/HEAD' into 1285-add-summary-stat…
ukmo-huw-lewis 313c0a5
Update to add statistic changes, including switch ordering for diff
ukmo-huw-lewis e52847f
Merge branch 'main' into 1285-add-summary-statistic-plots
ukmo-huw-lewis 75bef1b
Remove redundant histogram aggregation file. Now replaced with
ukmo-huw-lewis d6bebf1
Add time processing options for profile and histogram plotting within
ukmo-huw-lewis 56f96a1
Merge branch 'main' into 1285-add-summary-statistic-plots
ukmo-huw-lewis 3b93d4f
Add missing runtime statement
ukmo-huw-lewis dbf06a0
Interim update ahead of main merge
ukmo-huw-lewis 3bc579b
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis d336ede
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis b092770
2 changes to enable time-statistics for UM vs LFRic comparisons: a)
ukmo-huw-lewis a43e8a3
Add non-impacted forcast period cubes back into cubelist (otherwise
ukmo-huw-lewis 9ab832d
Move time0 treatement to preprocessing (i.e. only called from
ukmo-huw-lewis 404bb01
Additional functionality for preprocess relevant variables only, to
ukmo-huw-lewis 2973d4a
Add local changes to include files
ukmo-huw-lewis d4c6915
Updated plot.py, local commit
ukmo-huw-lewis a67d6e3
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis bd15543
Remove local 'old' directory from repo
ukmo-huw-lewis a2f54ee
Update plot.py
ukmo-huw-lewis b7a73f3
Update histogram recipe files for cutout
ukmo-huw-lewis f322257
Add local code changes [note not all tied to MEAN changes]
ukmo-huw-lewis a817dfa
Add local changes
ukmo-huw-lewis c537713
Commit local changes keeping track with #1403 for testing
ukmo-huw-lewis 851702a
Bugfixes for creating DimCoord
ukmo-huw-lewis 1c738be
Bugfixes to creation DimCoord
ukmo-huw-lewis 13d1a58
Further lat-lon testing
ukmo-huw-lewis 845dc60
Local commit
ukmo-huw-lewis 143ec13
Code dump for unpicking further variable/aggregation plotting gaps for
ukmo-huw-lewis 98ad4ce
Update plot titles in generic recipes
ukmo-huw-lewis bdd0273
Update checking for valid subarea cutout + tidy ymin,ymax ranges
ukmo-huw-lewis a1b7750
Typo
ukmo-huw-lewis 5c784fb
Update preproc checks
ukmo-huw-lewis 3f77d44
Updates for running across cases
ukmo-huw-lewis 322f40e
Update for lat-lon wrapping
ukmo-huw-lewis 120c8f7
Update lat/lon wrapping
ukmo-huw-lewis 2e67f51
Update for plot range changes
ukmo-huw-lewis 02fea12
Update treatment of new DimCoord attributes
ukmo-huw-lewis c1b0f31
Add update for control of histogram plot ranges for auto variables
ukmo-huw-lewis 3add315
Update
ukmo-huw-lewis 51ba178
Update um_radtime callback
ukmo-huw-lewis 19e42bb
Adding gridcell cutout method
ukmo-huw-lewis 6ed8b19
new function
jwarner8 c128188
Update src/CSET/operators/collapse.py
jwarner8 406dfbf
remove common time points func
jwarner8 8eb9012
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 16764df
Updates to other PR in development to address testing failures
ukmo-huw-lewis 767cd75
Update for misc testing
ukmo-huw-lewis 3f88a33
Update for SELECT_AREA by trim cells
ukmo-huw-lewis 95a2555
Updates to stay in line with #1429
ukmo-huw-lewis 40aded5
Update rose meta in line with #1433
ukmo-huw-lewis 2a770f0
Updates for a) fix to aggregate by hour_of_day; b) update cutout by
ukmo-huw-lewis eb78138
Dropping code changes related to issues/PR ahead. Required for CSET
ukmo-huw-lewis 6aae4d9
Tracking changes in #1433
ukmo-huw-lewis 5ee78c0
Commit local changes
ukmo-huw-lewis 33e37f3
Updating to follow #1450 and re-test
ukmo-huw-lewis a8c52de
Time processing update
ukmo-huw-lewis 0c58fc9
Add prototype for: RANGE method
ukmo-huw-lewis a2b9571
Add prototype RANGE method + other fixes in line with #1450
ukmo-huw-lewis dbb6a9c
Update for radiation forecast_period
ukmo-huw-lewis ff95b25
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 201ce44
Update for aggregation_by_hour
ukmo-huw-lewis 1d578e5
Updated collapse.py - enables PR testing to succeed
ukmo-huw-lewis f09a24a
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 6875aaf
Remove draft codes
ukmo-huw-lewis a3c3bc0
Tidy spatial difference recipes
ukmo-huw-lewis 53cea51
Update tests in line with code changes
ukmo-huw-lewis 19e54f3
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 4077316
Add prototype for cell_method
ukmo-huw-lewis b455585
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 5085e9f
Update optional varname in constraints
ukmo-huw-lewis 6267a88
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 65203a1
Rationalise differences relative to latest main
ukmo-huw-lewis f627dbf
Merge branch 'main' into 1285-add-summary-statistic-plots
ukmo-huw-lewis d864dfd
Equalise attributes to fix cube merging
ukmo-huw-lewis 3bce673
Update attribute test - fails if no cubes
ukmo-huw-lewis 3391f32
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis dacfd0e
Merge remote-tracking branch 'origin/main' into 1285-add-summary-stat…
ukmo-huw-lewis 8ce9f44
Revert colobar to main
ukmo-huw-lewis c150bc8
Updates to reduce changes relative to main.
ukmo-huw-lewis 1c827cb
Update new ALL recipes to catchup with cell_methods and model_name
ukmo-huw-lewis ae56379
Tidying up cube merging - all workflow tasks succeeding except for
ukmo-huw-lewis 6d5eb7c
Use the "SEQ" collapse method in time_series_case_aggregation_all to
ukmo-huw-lewis c31b628
Update RAL3LFRIC config defaults
ukmo-huw-lewis f560b7e
Update aggregate timeseries all for level fields
ukmo-huw-lewis 5dd48d6
Update rose-meta for averaging
ukmo-huw-lewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/CSET/recipes/generic_level_domain_mean_time_series_case_aggregation_all.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| category: $LEVELTYPE Level Time Series | ||
| title: "$VARNAME $LEVEL domain mean time series\n Aggregation over all cases" | ||
| description: Plots a time series of the domain mean $VARNAME at $LEVELTYPE $LEVEL by using all available times. | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| model_names: $MODEL_NAME | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| varname_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $LEVELTYPE | ||
| levels: $LEVEL | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: [grid_latitude, grid_longitude] | ||
| method: MEAN | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse_by_validity_time | ||
| method: SEQ | ||
|
|
||
| # Make a single NetCDF with all the data inside it. | ||
| - operator: write.write_cube_to_nc | ||
| overwrite: True | ||
|
|
||
| # Plot the data. | ||
| - operator: plot.plot_line_series | ||
| series_coordinate: time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/CSET/recipes/generic_level_domain_mean_vertical_profile_series_case_aggregation_all.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| category: Profiles | ||
| title: "Domain mean $VARNAME vertical profile\n Aggregation over all cases" | ||
| description: | | ||
| Plots a vertical profile for the domain horizontal mean $VARNAME using a | ||
| $LEVELTYPE coordinate. Multiple cases are aggregated together for all available times. | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| model_names: $MODEL_NAME | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| variable_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $LEVELTYPE | ||
| levels: "*" | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: [grid_latitude, grid_longitude] | ||
| method: MEAN | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: [time] | ||
| method: MEAN | ||
|
|
||
| # Plot the vertical line series. | ||
| - operator: plot.plot_vertical_line_series | ||
| series_coordinate: $LEVELTYPE | ||
| sequence_coordinate: time | ||
|
|
||
| # Make a single NetCDF with all the data inside it. | ||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CSET/recipes/generic_level_histogram_series_case_aggregation_all.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/CSET/recipes/generic_level_spatial_plot_sequence_case_aggregation_mean_all.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| category: $LEVELTYPE Level Spatial | ||
| title: "$MODEL_NAME $VARNAME $LEVELTYPE$LEVEL\n Aggregation over all cases" | ||
| description: | | ||
| Extracts ands plots the $VARNAME from $MODEL_NAME at $LEVELTYPE level $LEVEL. | ||
| Multiple cases are aggregated together for all available times. | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| variable_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $LEVELTYPE | ||
| levels: $LEVEL | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: time | ||
| method: MEAN | ||
|
|
||
| - operator: plot.spatial_contour_plot | ||
| sequence_coordinate: time | ||
|
|
||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.