-
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.
Merge pull request #697 from MetOffice/658_extend_um_vertical_plottin…
…g_to_modellevel Extend UM vertical plotting to model level
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
cset-workflow/includes/deterministic_domain_mean_vertical_profile_modellevel_series.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_VERTICAL_PROFILE_MODELLEVEL_SERIES %} | ||
[runtime] | ||
{% for model_field in MODEL_LEVEL_MODEL_FIELDS %} | ||
[[pre_process_domain_mean_vertical_profile_series_{{model_field}}]] | ||
inherit = PARALLEL | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_domain_mean_vertical_profile_modellevel_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{UM_MODEL_LEVELS}}'" | ||
|
||
[[collate_domain_mean_vertical_profile_series_{{model_field}}]] | ||
inherit = COLLATE | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_domain_mean_vertical_profile_modellevel_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{UM_MODEL_LEVELS}}'" | ||
{% 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
42 changes: 42 additions & 0 deletions
42
src/CSET/recipes/generic_domain_mean_vertical_profile_modellevel_series.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,42 @@ | ||
category: Quick Look | ||
title: Domain mean $VARNAME vertical profile as series | ||
description: Plots a time series of vertical profiles for the domain mean $VARNAME using a `model_level_number` coordinate. | ||
|
||
# Pre-processing steps. | ||
parallel: | ||
- operator: read.read_cube | ||
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: $MLEVEL | ||
validity_time_constraint: | ||
operator: constraints.generate_time_constraint | ||
time_start: $VALIDITY_TIME | ||
|
||
- operator: collapse.collapse | ||
coordinate: [grid_latitude, grid_longitude] | ||
method: MEAN | ||
|
||
# Save domain meaned variable to a file per validity time. | ||
- operator: write.write_cube_to_nc | ||
filename: intermediate/model_level_level_domain_mean | ||
|
||
# Collation steps. | ||
# Reads in intermediate cube and plots it. | ||
collate: | ||
- operator: read.read_cube | ||
filename_pattern: intermediate/*.nc | ||
|
||
# plot the vertical line series | ||
- operator: plot.plot_vertical_line_series | ||
series_coordinate: model_level_number | ||
sequence_coordinate: time | ||
|
||
# Make a single NetCDF with all the data inside it. | ||
- operator: write.write_cube_to_nc | ||
overwrite: True |