-
Notifications
You must be signed in to change notification settings - Fork 15
Various improvements to transect capability #1992
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
27 commits
Select commit
Hold shift + click to select a range
19d41b9
add cbar entry temp
jwarner8 4da271d
transect inset
jwarner8 2677058
add subarea
jwarner8 c66551b
tmp
jwarner8 9ae5968
revert mod to colorbar json
jwarner8 cad8ae0
fix varname
jwarner8 29d2dea
new aggregation recipe
jwarner8 b390fbb
adjust padding for transects
jwarner8 0955f44
add aggregate loader
jwarner8 3f40aaa
add gui entries
jwarner8 e1bee53
update conf example with aggregate options
jwarner8 8ac4040
change ordering of logic to prevent multiple models being loaded
jwarner8 924392e
extra attribute removal and fix forecast period units
jwarner8 9dd2e54
switch to using read_cubes, refine seq coord for plotting and title
jwarner8 8d57dfc
add all aggregation recipe
jwarner8 c3a864d
add lead time aggregation recipe
jwarner8 4aec34e
add valid time aggregation recipe
jwarner8 f4f1882
Merge branch 'main' into ml_transect
jwarner8 59c79fa
merge main
jwarner8 c8725fe
increase cbar range
jwarner8 70a3018
make options disappear
jwarner8 aadb95d
remove tmp files
jwarner8 0c434a0
remove debugging
jwarner8 5190d7b
tidy code
jwarner8 e1fbd08
Update src/CSET/operators/plot.py
jwarner8 26a4483
Update src/CSET/operators/plot.py
jwarner8 2a59872
reorder plotting of line/point
jwarner8 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
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
42 changes: 42 additions & 0 deletions
42
src/CSET/recipes/level_fields/transect_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,42 @@ | ||
| category: Transect | ||
| title: $MODEL_NAME Transect of $VARNAME Aggregation over all cases. | ||
| description: | | ||
| Extracts a $VERTICAL_COORDINATE transect for $VARNAME between two points and | ||
| plots it. | ||
|
|
||
| Start coordinate: `$START_COORDS` | ||
| End coordinate: `$FINISH_COORDS` | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| cell_method_constraint: | ||
| operator: constraints.generate_cell_methods_constraint | ||
| cell_methods: [] | ||
| var_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $VERTICAL_COORDINATE | ||
| levels: '*' | ||
| subarea_type: $SUBAREA_TYPE | ||
| subarea_extent: $SUBAREA_EXTENT | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: time | ||
| method: MEAN | ||
|
|
||
| - operator: transect.calc_transect | ||
| startcoords: $START_COORDS | ||
| endcoords: $FINISH_COORDS | ||
|
|
||
| - operator: plot.spatial_contour_plot | ||
| sequence_coordinate: time | ||
|
|
||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
41 changes: 41 additions & 0 deletions
41
src/CSET/recipes/level_fields/transect_case_aggregation_hour_of_day.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,41 @@ | ||
| category: Transect | ||
| title: $MODEL_NAME Transect of $VARNAME Aggregation by hour of day. | ||
| description: | | ||
| Extracts a $VERTICAL_COORDINATE transect for $VARNAME between two points and | ||
| plots it. | ||
|
|
||
| Start coordinate: `$START_COORDS` | ||
| End coordinate: `$FINISH_COORDS` | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| cell_method_constraint: | ||
| operator: constraints.generate_cell_methods_constraint | ||
| cell_methods: [] | ||
| var_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $VERTICAL_COORDINATE | ||
| levels: '*' | ||
| subarea_type: $SUBAREA_TYPE | ||
| subarea_extent: $SUBAREA_EXTENT | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse_by_hour_of_day | ||
| method: MEAN | ||
|
|
||
| - operator: transect.calc_transect | ||
| startcoords: $START_COORDS | ||
| endcoords: $FINISH_COORDS | ||
|
|
||
| - operator: plot.spatial_contour_plot | ||
| sequence_coordinate: hour | ||
|
|
||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
42 changes: 42 additions & 0 deletions
42
src/CSET/recipes/level_fields/transect_case_aggregation_lead_time.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,42 @@ | ||
| category: Transect | ||
| title: $MODEL_NAME Transect of $VARNAME Aggregation by lead time. | ||
| description: | | ||
| Extracts a $VERTICAL_COORDINATE transect for $VARNAME between two points and | ||
| plots it. | ||
|
|
||
| Start coordinate: `$START_COORDS` | ||
| End coordinate: `$FINISH_COORDS` | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| cell_method_constraint: | ||
| operator: constraints.generate_cell_methods_constraint | ||
| cell_methods: [] | ||
| var_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $VERTICAL_COORDINATE | ||
| levels: '*' | ||
| subarea_type: $SUBAREA_TYPE | ||
| subarea_extent: $SUBAREA_EXTENT | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse | ||
| coordinate: "forecast_reference_time" | ||
| method: MEAN | ||
|
|
||
| - operator: transect.calc_transect | ||
| startcoords: $START_COORDS | ||
| endcoords: $FINISH_COORDS | ||
|
|
||
| - operator: plot.spatial_contour_plot | ||
| sequence_coordinate: forecast_period | ||
|
|
||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
41 changes: 41 additions & 0 deletions
41
src/CSET/recipes/level_fields/transect_case_aggregation_validity_time.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,41 @@ | ||
| category: Transect | ||
| title: $MODEL_NAME Transect of $VARNAME Aggregation by validity time. | ||
| description: | | ||
| Extracts a $VERTICAL_COORDINATE transect for $VARNAME between two points and | ||
| plots it. | ||
|
|
||
| Start coordinate: `$START_COORDS` | ||
| End coordinate: `$FINISH_COORDS` | ||
|
|
||
| steps: | ||
| - operator: read.read_cubes | ||
| file_paths: $INPUT_PATHS | ||
| constraint: | ||
| operator: constraints.combine_constraints | ||
| cell_method_constraint: | ||
| operator: constraints.generate_cell_methods_constraint | ||
| cell_methods: [] | ||
| var_constraint: | ||
| operator: constraints.generate_var_constraint | ||
| varname: $VARNAME | ||
| level_constraint: | ||
| operator: constraints.generate_level_constraint | ||
| coordinate: $VERTICAL_COORDINATE | ||
| levels: '*' | ||
| subarea_type: $SUBAREA_TYPE | ||
| subarea_extent: $SUBAREA_EXTENT | ||
|
|
||
| - operator: aggregate.ensure_aggregatable_across_cases | ||
|
|
||
| - operator: collapse.collapse_by_validity_time | ||
| method: MEAN | ||
|
|
||
| - operator: transect.calc_transect | ||
| startcoords: $START_COORDS | ||
| endcoords: $FINISH_COORDS | ||
|
|
||
| - operator: plot.spatial_contour_plot | ||
| sequence_coordinate: time | ||
|
|
||
| - operator: write.write_cube_to_nc | ||
| overwrite: True |
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.