-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflow for single recipe case aggregation by lead time.
Fixes #1031
- Loading branch information
Showing
5 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
16 changes: 16 additions & 0 deletions
16
...ludes/deterministic_domain_mean_surface_time_series_case_study_aggregation_lead_time.cylc
This file contains 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,16 @@ | ||
{% if DOMAIN_MEAN_SURFACE_TIME_SERIES_CASE_AGGREGATION_LEAD_TIME|default(False) %} | ||
{% for field in SURFACE_MODEL_FIELDS %} | ||
{% for model in models %} | ||
[runtime] | ||
[[generic_surface_domain_mean_time_series_case_aggregation_by_lead_time_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_surface_domain_mean_time_series_case_aggregation_lead_time.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
This file contains 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 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
32 changes: 32 additions & 0 deletions
32
src/CSET/recipes/generic_surface_domain_mean_time_series_case_aggregation_lead_time.yaml
This file contains 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,32 @@ | ||
category: Time Series | ||
title: $MODEL_NAME Domain mean surface $VARNAME time series | ||
description: Plots a time series of the domain mean surface $VARNAME. | ||
|
||
steps: | ||
- operator: read.read_cubes | ||
constraint: | ||
operator: constraints.combine_constraints | ||
varname_constraint: | ||
operator: constraints.generate_var_constraint | ||
varname: $VARNAME | ||
cell_methods_constraint: | ||
operator: constraints.generate_cell_methods_constraint | ||
cell_methods: [] | ||
pressure_level_constraint: | ||
operator: constraints.generate_level_constraint | ||
coordinate: "pressure" | ||
levels: [] | ||
|
||
- operator: collapse.collapse | ||
coordinate: [grid_latitude, grid_longitude] | ||
method: MEAN | ||
|
||
- operator: collapse.collapse_by_lead_time | ||
method: MEAN | ||
|
||
# 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 |