-
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 #640 from MetOffice/639_surface_field_histogram_ex…
…tension_to_453 Surface field histogram
- Loading branch information
Showing
7 changed files
with
137 additions
and
32 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
cset-workflow/includes/deterministic_domain_histogram_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_HISTOGRAM_SERIES_FIELD %} | ||
[runtime] | ||
{% for model_field in MODEL_LEVEL_MODEL_FIELDS %} | ||
[[pre_process_deterministic_domain_histogram_series_{{model_field}}]] | ||
inherit = PARALLEL | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_histogram_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{UM_MODEL_LEVELS}}'" | ||
|
||
[[collate_deterministic_domain_histogram_series_{{model_field}}]] | ||
inherit = COLLATE | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_histogram_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{UM_MODEL_LEVELS}}'" | ||
{% endfor %} | ||
{% endif %} |
16 changes: 16 additions & 0 deletions
16
cset-workflow/includes/deterministic_domain_surface_histogram_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_SURFACE_HISTOGRAM_SERIES_FIELD %} | ||
[runtime] | ||
{% for model_field in SURFACE_MODEL_FIELDS %} | ||
[[pre_process_deterministic_domain_surface_histogram_series_{{model_field}}]] | ||
inherit = PARALLEL | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_surface_histogram_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}'" | ||
|
||
[[collate_deterministic_domain_surface_histogram_series_{{model_field}}]] | ||
inherit = COLLATE | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_surface_histogram_series.yaml" | ||
CSET_ADDOPTS = "--VARNAME='{{model_field}}'" | ||
{% 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
category: Quick Look | ||
title: $VARNAME Surface Level Histogram Plot | ||
description: | | ||
Extracts and plots the probability density of surface `$VARNAME`. It uses | ||
[`plt.hist`](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html) | ||
to plot the probability density so that the area under the histogram | ||
integrates to 1. stacked is set to True so the sum of the histograms is | ||
normalized to 1. | ||
parallel: | ||
- operator: read.read_cube | ||
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 | ||
pressure_level_constraint: | ||
operator: constraints.generate_level_constraint | ||
coordinate: pressure | ||
levels: [] | ||
|
||
- operator: write.write_cube_to_nc | ||
filename: intermediate/histogram | ||
|
||
|
||
collate: | ||
- operator: read.read_cube | ||
filename_pattern: intermediate/*.nc | ||
|
||
- operator: write.write_cube_to_nc | ||
overwrite: True | ||
|
||
- operator: plot.plot_histogram_series | ||
sequence_coordinate: time |
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