-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostic for calculating Lamb Weathertypes #3691
Open
thomaskroi1996
wants to merge
39
commits into
main
Choose a base branch
from
weathertyping_wegc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
74ad3a1
weathertyping scripts
e548c1c
weathertyping scripts
4e4053d
weathertyping
thomaskroi1996 88cfed7
weathertyping
thomaskroi1996 682e2a5
weathertyping
thomaskroi1996 fea116e
weathertyping module
thomaskroi1996 65d406a
weathertyping module
thomaskroi1996 f1f8dea
weathertyping
thomaskroi1996 05afc1b
weathertyping
thomaskroi1996 a780ff4
reformatted code, added anomaly and std plots
thomaskroi1996 66d524c
reformatted coe, added anomaly and std plots
thomaskroi1996 085e4f2
update
thomaskroi1996 507434f
added predefined_slwt
thomaskroi1996 a90da22
mainly doc, also rewrite functions
thomaskroi1996 6363728
Merge branch 'main' into weathertyping_wegc
thomaskroi1996 4b7c412
code reformatting, documentation, bugfixes
thomaskroi1996 e48c391
reformat
thomaskroi1996 2afe014
Merge branch 'main' into weathertyping_wegc
thomaskroi1996 b2255db
bugfix
thomaskroi1996 e5a0f9c
bugfix
thomaskroi1996 aa47dc3
add recipes for CMIP5, CORDEX and seasonal occurence plot
thomaskroi1996 afd343c
add seasonal occurence plot
thomaskroi1996 7e57854
new recipes
thomaskroi1996 6acb3f5
doc update, added ensemble to plot names
thomaskroi1996 836a6c8
commenting models
mwjury a6928c8
bugfix
thomaskroi1996 b781eee
predefined wt
thomaskroi1996 07d9a5a
Merge branch 'main' into weathertyping_wegc
valeriupredoi 97eea08
minor corrections
thomaskroi1996 9c7c6ad
add era5 to recipe_weathertyping.rst
thomaskroi1996 4246910
added timerange, fixed prov, more bugfixes
thomaskroi1996 240bd6e
area
thomaskroi1996 599dc38
renamed vars
thomaskroi1996 5caf817
bugfixes
thomaskroi1996 14ae2b3
even more whitespaces
thomaskroi1996 d3f22d3
whitespace missing in feedback_parameters.py
thomaskroi1996 fb6dc32
bugfix
thomaskroi1996 7356b75
here we go again
thomaskroi1996 e33b4ad
...
thomaskroi1996 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+93.8 KB
doc/sphinx/source/recipes/figures/weathertyping/ERA5__lwt_rel_occurrence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
doc/sphinx/source/recipes/figures/weathertyping/correlation_matrix_E-OBS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+106 KB
doc/sphinx/source/recipes/figures/weathertyping/lwt_1_ERA5_psl_mean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+103 KB
doc/sphinx/source/recipes/figures/weathertyping/lwt_1_TaiESM1_psl_mean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.7 KB
doc/sphinx/source/recipes/figures/weathertyping/slwt_EOBS_4_ERA5_psl_mean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,113 @@ | ||
.. _recipes_weathertyping: | ||
|
||
Lamb Weathertypes | ||
===== | ||
|
||
Overview | ||
-------- | ||
|
||
A diagnostic to calculate Lamb weathertypes over a given region. Furthermore, | ||
correlations between weathertypes and precipitation patterns over a given area can be calculated | ||
and 'combined' or 'simplified' weathertypes can be derived. Additionally, mean fields, as well as | ||
anomalies and standard deviations can be plotted. | ||
|
||
|
||
Available recipes and diagnostics | ||
--------------------------------- | ||
|
||
Recipes are stored in esmvaltool/recipes/ | ||
|
||
* recipe_weathertyping.yml | ||
|
||
Diagnostics are stored in esmvaltool/diag_scripts/weathertyping/ | ||
|
||
* weathertyping.py: calculate lamb and simplified WT, plot mean, anomalies and std for each WT for psl, tas, pr | ||
|
||
|
||
User settings in recipe | ||
----------------------- | ||
|
||
#. weathertyping.py | ||
|
||
*Required settings for script* | ||
|
||
*Optional settings for script* | ||
|
||
* correlation_threshold: correlation threshold for selecting similar WT pairs, only needed if automatic_slwt==True and predefined_slwt==False. default=0.9 | ||
* rmse_threshold: rmse threshold for selecting similar WT pairs, only needed if automatic_slwt==True and predefined_slwt==False. default=0.002 | ||
* plotting: if true, create plots of means, anomalies and std for psl, tas, prcp | ||
* automatic_slwt: if true, automatically combine WT with similar precipitation patterns over specified area (via thresholds of correlation and rmse OR via predefined_slwt) | ||
* predefined_slwt: dictionary of mappings between weathertypes | ||
|
||
.. note:: | ||
|
||
predefined_slwt can be a dictionary where keys are slwt and the values are arrays of lwt OR where keys are lwt and values are slwt | ||
|
||
*Required settings for variables* | ||
|
||
*Optional settings for variables* | ||
|
||
*Required settings for preprocessor* | ||
|
||
*Optional settings for preprocessor* | ||
|
||
*Color tables* | ||
|
||
|
||
Variables | ||
--------- | ||
|
||
* psl (atmos, day, time longitude latitude) | ||
* tas (atmos, day, time longitude latitude) | ||
* tp (atmos, day, time longitude latitude) | ||
* pr (atmos, day, time longitude latitude) | ||
|
||
|
||
Observations and reformat scripts | ||
--------------------------------- | ||
|
||
*Note: (1) obs4MIPs data can be used directly without any preprocessing; | ||
(2) see headers of reformat scripts for non-obs4MIPs data for download | ||
instructions.* | ||
|
||
* E-OBS: European Climate Assessment & Dataset gridded daily precipitation sum | ||
* ERA5: ECMWF reanalysis | ||
|
||
References | ||
---------- | ||
|
||
* Maraun, D., Truhetz, H., & Schaffer, A. (2021). Regional climate model biases, their dependence on synoptic circulation biases and the potential for bias adjustment: A process-oriented evaluation of the Austrian regional climate projections. Journal of Geophysical Research: Atmospheres, 126, e2020JD032824. https://doi.org/10.1029/2020JD032824 | ||
* Jones, P.D., Hulme, M. and Briffa, K.R. (1993), A comparison of Lamb circulation types with an objective classification scheme. Int. J. Climatol., 13: 655-663. https://doi.org/10.1002/joc.3370130606 | ||
|
||
Example plots | ||
------------- | ||
|
||
.. _fig_weathertyping_1: | ||
.. figure:: /recipes/figures/weathertyping/lwt_1_ERA5_psl_mean.png | ||
:align: center | ||
|
||
PSL mean map of Lamb WT 1 for ERA5. | ||
|
||
.. _fig_weathertyping_2: | ||
.. figure:: /recipes/figures/weathertyping/lwt_1_TaiESM1_psl_mean.png | ||
:align: center | ||
|
||
PSL mean map of Lamb WT 1 for TaiESM1. | ||
|
||
.. _fig_weathertyping_3: | ||
.. figure:: /recipes/figures/weathertyping/slwt_EOBS_4_ERA5_psl_mean.png | ||
:align: center | ||
|
||
PSL mean map of slwt_EOBS 4 for ERA5 (in this case combined Lamb WT 24 and 23). | ||
|
||
.. _fig_weathertyping_4: | ||
.. figure:: /recipes/figures/weathertyping/correlation_matrix_E-OBS.png | ||
:align: center | ||
|
||
Heatmap of correlation values for Lamb WTs 1-27. | ||
|
||
.. _fig_weathertyping_5: | ||
.. figure:: /recipes/figures/weathertyping/ERA5__lwt_rel_occurrence.png | ||
:align: center | ||
|
||
Stackplot of seasonal relative occureences of each WT for ERA5. |
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 |
---|---|---|
|
@@ -286,6 +286,11 @@ authors: | |
name: Juckes, Martin | ||
institute: BADC, UK | ||
orcid: | ||
jury_martin: | ||
name: Jury, Martin | ||
institute: WEGC, Austria | ||
e-mail: [email protected] | ||
orcid: https://orcid.org/0000-0003-0590-7843 | ||
kadygrov_nikolay: | ||
name: Kadygrov, Nikolay | ||
institute: IPSL, France | ||
|
@@ -315,6 +320,12 @@ authors: | |
name: Krasting, John | ||
institute: NOAA, USA | ||
orcid: https://orcid.org/0000-0002-4650-9844 | ||
kroissenbrunner_thomas: | ||
name: Kroissenbrunner, Thomas | ||
institute: WEGC, Austria | ||
email: [email protected] | ||
github: thomaskroi1996 | ||
orcid: | ||
kuehbacher_birgit: | ||
name: Kuehbacher, Birgit | ||
institute: DLR, Germany | ||
|
@@ -793,6 +804,7 @@ projects: | |
trr181: DFG Project TRR-181, Energy transfers in Atmosphere and Ocean | ||
ukesm: UKESM, UK Earth System Model project (NERC) | ||
usmile: ERC Synergy Grant USMILE | ||
preval: PREVAL ÖKS | ||
|
||
|
||
realms: | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.