-
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.
Adds recipe and includes files, updates rose-meta.conf in diagnostics…
… for hour of day aggregation. Fixes #1032
- Loading branch information
Showing
15 changed files
with
424 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...des/deterministic_domain_mean_surface_time_series_case_study_aggregation_hour_of_day.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,18 @@ | ||
{% if DOMAIN_MEAN_SURFACE_TIME_SERIES_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in SURFACE_MODEL_FIELDS %} | ||
{% for model in models %} | ||
[runtime] | ||
[[generic_surface_domain_mean_time_series_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_surface_domain_mean_time_series_case_aggregation_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
18 changes: 18 additions & 0 deletions
18
...c_domain_mean_vertical_model_level_profile_series_case_study_aggregation_hour_of_day.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,18 @@ | ||
{% if DOMAIN_MEAN_VERTICAL_PROFILE_MODEL_LEVEL_SERIES_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in MODEL_LEVEL_MODEL_FIELDS %} | ||
{% for model in models %} | ||
[runtime] | ||
[[generic_mlevel_domain_mean_vertical_profile_series_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_mlevel_domain_mean_vertical_profile_series_case_aggregation_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
18 changes: 18 additions & 0 deletions
18
...stic_domain_mean_vertical_pressure_profile_series_case_study_aggregation_hour_of_day.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,18 @@ | ||
{% if DOMAIN_MEAN_VERTICAL_PROFILE_SERIES_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in PRESSURE_LEVEL_MODEL_FIELDS %} | ||
{% for model in models %} | ||
[runtime] | ||
[[generic_plevel_domain_mean_vertical_profile_series_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_plevel_domain_mean_vertical_profile_series_case_aggregation_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
21 changes: 21 additions & 0 deletions
21
...workflow/includes/plot_spatial_mlevel_model_field_case_study_aggregation_hour_of_day.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,21 @@ | ||
{% if PLOT_SPATIAL_MODEL_LEVEL_MODEL_FIELD_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in MODEL_LEVEL_MODEL_FIELDS %} | ||
{% for model in models %} | ||
{% for mlevel in UM_MODEL_LEVELS %} | ||
[runtime] | ||
[[generic_mlevel_spatial_plot_sequence_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}_lv{{sanitise_task_name(mlevel)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_mlevel_spatial_plot_sequence_case_aggregation_mean_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MLEVEL='{{mlevel}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
21 changes: 21 additions & 0 deletions
21
...workflow/includes/plot_spatial_plevel_model_field_case_study_aggregation_hour_of_day.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,21 @@ | ||
{% if PLOT_SPATIAL_PRESSURE_LEVEL_MODEL_FIELD_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in PRESSURE_LEVEL_MODEL_FIELDS %} | ||
{% for model in models %} | ||
{% for plevel in PRESSURE_LEVELS %} | ||
[runtime] | ||
[[generic_plevel_spatial_plot_sequence_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}_lv{{sanitise_task_name(plevel)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_plevel_spatial_plot_sequence_case_aggregation_mean_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--PLEVEL='{{plevel}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
18 changes: 18 additions & 0 deletions
18
...orkflow/includes/plot_spatial_surface_model_field_case_study_aggregation_hour_of_day.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,18 @@ | ||
{% if PLOT_SPATIAL_SURFACE_MODEL_FIELD_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
{% for field in SURFACE_MODEL_FIELDS %} | ||
{% for model in models %} | ||
[runtime] | ||
[[generic_spatial_plot_time_series_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_surface_spatial_plot_sequence_case_aggregation_mean_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--MODEL_NAME='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = {{model["id"]}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
22 changes: 22 additions & 0 deletions
22
cset-workflow/includes/spatial_surface_difference_case_study_aggregation_hour_of_day.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,22 @@ | ||
{% if SPATIAL_SURFACE_DIFFERENCE_CASE_AGGREGATION_HOUR_OF_DAY|default(False) %} | ||
# Models are listed in order, so model 1 is the first element. | ||
{% set base_model = models[0] %} | ||
# As we use model 1 as the base model we skip it here. | ||
{% for model in models[1:] %} | ||
{% for field in SURFACE_MODEL_FIELDS %} | ||
[runtime] | ||
[[spatial_surface_difference_case_aggregation_by_hour_of_day_m{{model["id"]}}_{{sanitise_task_name(field)}}]] | ||
inherit = PROCESS_CASE_AGGREGATION | ||
[[[directives]]] | ||
--mem=5000 | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "surface_spatial_difference_case_aggregation_mean_hour_of_day.yaml" | ||
CSET_ADDOPTS = """ | ||
--VARNAME='{{field}}' | ||
--BASE_MODEL='{{base_model["name"]}}' | ||
--OTHER_MODEL='{{model["name"]}}' | ||
""" | ||
MODEL_IDENTIFIERS = '1 {{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
34 changes: 34 additions & 0 deletions
34
...ipes/generic_mlevel_domain_mean_vertical_profile_series_case_aggregation_hour_of_day.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,34 @@ | ||
category: Profiles | ||
title: $MODEL_NAME Domain horizontal mean $VARNAME vertical profile as series case aggregation by hour of day | ||
description: | | ||
Plots a time series of vertical profiles for the domain mean $VARNAME using a | ||
`model_level_number` coordinate. This recipe aggregates over all cases using a | ||
consistent hour of day. | ||
steps: | ||
- operator: read.read_cubes | ||
constraint: | ||
operator: constraints.combine_constraints | ||
variable_constraint: | ||
operator: constraints.generate_var_constraint | ||
varname: $VARNAME | ||
pressure_level_constraint: | ||
operator: constraints.generate_level_constraint | ||
coordinate: model_level_number | ||
levels: "*" | ||
|
||
- operator: collapse.collapse | ||
coordinate: [grid_latitude, grid_longitude] | ||
method: MEAN | ||
|
||
- operator: collapse.collapse_by_hour_of_day | ||
method: MEAN | ||
|
||
# Plot the vertical line series. | ||
- operator: plot.plot_vertical_line_series | ||
series_coordinate: model_level_number | ||
sequence_coordinate: hour | ||
|
||
# Make a single NetCDF with all the data inside it. | ||
- operator: write.write_cube_to_nc | ||
overwrite: True |
27 changes: 27 additions & 0 deletions
27
src/CSET/recipes/generic_mlevel_spatial_plot_sequence_case_aggregation_mean_hour_of_day.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,27 @@ | ||
category: Model Level Spatial | ||
title: $MODEL_NAME $VARNAME $MLEVEL Level Spatial Plot case aggregation by hour of day | ||
description: | | ||
Extracts ands plots the $VARNAME from a file at model level $MLEVEL. The cases | ||
are aggregated together by keeping the hour of day consistent. | ||
steps: | ||
- operator: read.read_cubes | ||
constraint: | ||
operator: constraints.combine_constraints | ||
variable_constraint: | ||
operator: constraints.generate_var_constraint | ||
varname: $VARNAME | ||
model_level_constraint: | ||
operator: constraints.generate_level_constraint | ||
coordinate: "model_level_number" | ||
levels: $MLEVEL | ||
|
||
- operator: collapse.collapse_by_hour_of_day | ||
method: MEAN | ||
|
||
- operator: plot.spatial_contour_plot | ||
sequence_coordinate: hour | ||
stamp_coordinate: realization | ||
|
||
- operator: write.write_cube_to_nc | ||
overwrite: True |
34 changes: 34 additions & 0 deletions
34
...ipes/generic_plevel_domain_mean_vertical_profile_series_case_aggregation_hour_of_day.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,34 @@ | ||
category: Profiles | ||
title: $MODEL_NAME Domain horizontal mean $VARNAME vertical profile as series case aggregation by hour of day | ||
description: | | ||
Plots a time series of vertical profiles for the domain mean $VARNAME using a | ||
log pressure coordinate. Multiple cases are aggregated together keeping the | ||
hour of day consistent. | ||
steps: | ||
- operator: read.read_cubes | ||
constraint: | ||
operator: constraints.combine_constraints | ||
variable_constraint: | ||
operator: constraints.generate_var_constraint | ||
varname: $VARNAME | ||
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_hour_of_day | ||
method: MEAN | ||
|
||
# Plot the vertical line series. | ||
- operator: plot.plot_vertical_line_series | ||
series_coordinate: pressure | ||
sequence_coordinate: hour | ||
|
||
# Make a single NetCDF with all the data inside it. | ||
- operator: write.write_cube_to_nc | ||
overwrite: True |
Oops, something went wrong.