-
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 branch 'main' into 694_enable_spatial_fields_on_full_and_half_l…
…evels
- Loading branch information
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
cset-workflow/includes/plot_spatial_mlevel_model_field.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_MODEL_LEVEL_MODEL_FIELD %} | ||
[runtime] | ||
{% for model_field in MODEL_LEVEL_MODEL_FIELDS %} | ||
{% for mlevel in UM_MODEL_LEVELS %} | ||
[[process_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]] | ||
inherit = PARALLEL | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_mlevel_spatial_plot_sequence.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{mlevel}}'" | ||
|
||
[[collate_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]] | ||
inherit = COLLATE | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_mlevel_spatial_plot_sequence.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{mlevel}}'" | ||
{% 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_mlevel_spatial_plot_sequence.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: Quick Look | ||
title: $VARNAME $MLEVEL Level Spatial Plot | ||
description: | | ||
Extracts ands plots the $VARNAME from a file at model level $MLEVEL. | ||
parallel: | ||
- operator: read.read_cubes | ||
constraint: | ||
operator: constraints.combine_constraints | ||
variable_constraint: | ||
operator: constraints.generate_var_constraint | ||
varname: $VARNAME | ||
validity_time_constraint: | ||
operator: constraints.generate_time_constraint | ||
time_start: $VALIDITY_TIME | ||
model_level_constraint: | ||
operator: constraints.generate_level_constraint | ||
coordinate: "model_level_number" | ||
levels: $MLEVEL | ||
|
||
- operator: write.write_cube_to_nc | ||
filename: intermediate/model_level_field | ||
|
||
collate: | ||
- operator: read.read_cube | ||
filename_pattern: intermediate/*.nc | ||
|
||
- operator: plot.spatial_contour_plot | ||
sequence_coordinate: time | ||
|
||
- operator: write.write_cube_to_nc | ||
overwrite: True |