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

Model side by side plotting #530

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions cset-workflow/includes/plot_spatial_stash_field.cylc
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{% if PLOT_SPATIAL_STASH_FIELD %}
{% for stash in STASH_CODES %}
[scheduling]
[[graph]]
PT1H = """
install_website_skeleton[^] & install_local_cset[^] => FETCH_DATA:succeed-all =>
stash_surface_spatial_plot_sequence_{{stash}} =>
process_finish => housekeeping_raw
process_finish[-PT1H] => process_finish
"""

[runtime]
[[stash_surface_spatial_plot_sequence_{{stash}}]]
[[parallel_stash_surface_spatial_plot_sequence_{{stash}}]]
inherit = PARALLEL
[[[environment]]]
CSET_RECIPE_NAME = "stash_surface_spatial_plot_sequence.yaml"
CSET_ADDOPTS = "--STASH={{stash}}"

[[collate_stash_surface_spatial_plot_sequence_{{stash}}]]
inherit = COLLATE
[[[environment]]]
CSET_RECIPE_NAME = "stash_surface_spatial_plot_sequence.yaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Extracts and plots the surface $VARNAME from a file.

parallel:
- operator: read.read_cube
filename: um*
constraint:
operator: constraints.combine_constraints
varname_constraint:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Extracts and plots the surface $VARNAME from a file.

parallel:
- operator: read.read_cubes
filename_pattern: lfric*
constraint:
operator: constraints.combine_constraints
varname_constraint:
Expand Down
10 changes: 10 additions & 0 deletions src/CSET/recipes/stash_surface_spatial_plot_sequence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Extracts and plots STASH $STASH from a file.

parallel:
- operator: read.read_cube
filename_pattern: um*
constraint:
operator: constraints.combine_constraints
stash_constraint:
Expand All @@ -17,6 +18,15 @@ parallel:
time_start: $VALIDITY_TIME

- operator: write.write_cube_to_nc
filename: intermediate/surface_field

collate:
- operator: read.read_cube
filename_pattern: intermediate/*.nc

# TODO: Figure out how to get plotting into the parallel steps.
- operator: plot.spatial_contour_plot
sequence_coordinate: time

- operator: write.write_cube_to_nc
overwrite: True