Skip to content

Commit

Permalink
Rewrite recipe and include file in modern way
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrost-mo committed May 24, 2024
1 parent 57c2f8e commit 80282cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 47 deletions.
51 changes: 9 additions & 42 deletions cset-workflow/includes/deterministic_plot_inflow_properties.cylc
Original file line number Diff line number Diff line change
@@ -1,45 +1,12 @@
[scheduling]
[[graph]]
P1 = """
recipe_start => deterministic_plot_inflow_layer_properties => recipe_finish
"""

{% if DETERMINISTIC_PLOT_INFLOW_PROPERTIES %}
[runtime]
[[deterministic_plot_inflow_layer_properties]]
script = rose task-run -v --app-key=run_cset_recipe
execution time limit = PT15M
[[parallel_inflow_layer_properties]]
inherit = PARALLEL
[[[environment]]]
CSET_RECIPE = """
title: Inflow properties plot
description: |
Extracts data required for, and calculates the Inflow properties diagnostic, plotting on a map.
steps:
- operator: read.read_cubes
- operator: convection.inflow_layer_properties
EIB:
operator: filters.filter_cubes
constraint:
operator: constraints.generate_stash_constraint
stash: m01s20i119
BLheight:
operator: filters.filter_cubes
constraint:
operator: constraints.generate_stash_constraint
stash: m01s00i025
Orography:
operator: filters.filter_cubes
constraint:
operator: constraints.generate_stash_constraint
stash: m01s00i033
CSET_RECIPE_NAME = "inflow_layer_properties_plot.yaml"

- operator: filters.filter_cubes
constraint:
operator: constraints.generate_time_constraint
time_start: 2022-10-28T06:00Z
- operator: plot.spatial_contour_plot
- operator: write.write_cube_to_nc
"""
[[collate_inflow_layer_properties]]
inherit = COLLATE
[[[environment]]]
CSET_RECIPE_NAME = "inflow_layer_properties_plot.yaml"
{% endif %}
16 changes: 11 additions & 5 deletions src/CSET/recipes/inflow_layer_properties_plot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: |
parallel:
- operator: read.read_cubes
constraint:
operator: constraints.generate_time_constraint
time_start: $VALIDITY_TIME

- operator: convection.inflow_layer_properties
EIB:
Expand All @@ -22,11 +25,14 @@ parallel:
operator: constraints.generate_stash_constraint
stash: m01s00i033

- operator: filters.filter_cubes
constraint:
operator: constraints.generate_time_constraint
time_start: 2022-10-28T06:00Z
- operator: write.write_cube_to_nc
filename: intermediate/inflow_layer

- operator: plot.postage_stamp_contour_plot
collate:
- operator: read.read_cube
filename: intermediate/*.nc

- operator: write.write_cube_to_nc
overwrite: True

- operator: plot.postage_stamp_contour_plot

0 comments on commit 80282cc

Please sign in to comment.