-
Couldn't load subscription status.
- Fork 142
Thermosteric sea-level rise patterns #4047
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
base: main
Are you sure you want to change the base?
Conversation
|
I know that I need a scientific and technical reviewer, I am on the hunt for both :) |
|
Hey @valeriupredoi! Was wondering if you could give me a hand with some CircleCI tests failing... it's not clear whether it has anything to do with my code or not. Cheers 😊 |
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.
Many thanks for your contribution @mo-gregmunday! 🥳
| @@ -0,0 +1,96 @@ | |||
| # (C) Crown Copyright 2022-2025, Met Office. | |||
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.
The code in this module looks very similar to what was included via #2785! Would it be possible to add a single copy of this code to esmvaltool/diag_scripts/shared and use the functions for both recipes, please? 😊
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.
Would this require two additional PR's? One for adding the module to the shared folder and another for updating the other recipe? Or can I just do it in this PR?
| fig.savefig( | ||
| Path(plot_path) | ||
| / f'detrended_{zostoga.attributes["source_id"]}.png', dpi=150) |
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.
Could esmvaltool.diag_scripts.shared.save_figure be used here? 😊
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.
(there are other uses of this in this module!)
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.
For consistency with UKCP18 and AR5, it looks like a quadratic fit is needed for the drift correction
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.
@ehogan The save_figure function definitely could be used here but I think saving provenance for each of these figures is overkill, especially since none of them relate to any previously published work.
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.
@mo-jenniferweeks I think we've discussed this and we agreed to linear drift correction was the correct technique here - let me know if I'm mistaken!
| np.save( | ||
| Path(work_path) | ||
| / f"zos_regression_{scenario}_{model}.npy", slopes) | ||
| np.save(Path(work_path) / f"zos_mask_{scenario}_{model}.npy", mask) |
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.
Could esmvaltool.diag_scripts.shared.save_data be used here? 😊
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.
(there are other uses of this in this module!)
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.
I think the function is designed to save iris cubes instead of NumPy arrays!
@mo-gregmunday, run the following command in the directory containing your branch and commit the changes: 😊 |
|
To download (almost all!) the required data for this recipe, I needed to use a specific ESGF node, which I did by creating a I did this both at DKRZ and at the MO 👍 |
|
Currently missing data: |
|
I have opened #4117 for the data issue 👍 |
|
I tried again today to download data and I was able to download the data from LLNL 🥳 The recipe runs at the Met Office (using ESMValTool v2.12.0): However, there are no plots visible via the I'm getting a failure on DKRZ: @mo-gregmunday any thoughts? 🤔 |
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.
Should the title be sterodynamic sea level patterns? Or thermosteric and sterodynamic sea level change?
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.
Would a figure like Figure 2 in Palmer et al., (2020) be possible? https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2019EF001413
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.
Add something on applying the methods of Palmer et al., (2020) which are rooted in AR5 methods. Could add something about Hermans et al., (2021) also using CMIP6 models with these models to project global mean sea level change and refer to that for the reader to explore the differences? Although, Hermans use a least squares quadratic fit for drift correction - same as Palmer et al. (2020)?
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.
Could add what scenarios are available?
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.
I've updated the title and added the available scenarios.
In theory a figure like Fig. 2 of Palmer et al., (2020) would be possible but I'd need to get historical data from all the models to calculate the 1986-2005 baseline. This would add quite a lot of extra processing and time for this particular PR. However it could definitely be added in the future if that's something you'd like to do :)
I'll get back to you on the references tomorrow :)
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.
@mo-jenniferweeks I've added a note on Palmer et al., (2020) but I'll leave it to you to add in any other references and context you think might be relevant in another PR which should be easy to do! If you'd like to send me anything offline I can add it in here as well of course.
|
Hej @mo-gregmunday, the freeze for the new release 2.13 is slowly approaching. Do you think you will have time to adress all the remaining comments and issues in the coming 1-2 weeks or should I bump this to the next release? :) |
Hi @jlenh, I probably won't unfortunately so should probably be bumped to the next release, thanks for checking in! |
…nto steric_patterns
I've sorted this out :) |
I've tried this and pushed the resulting changes up but it's still failing the 'commit' and 'ci/circleci: run_tests'... |
|
Thank you so much for both of your very thorough reviews! I've addressed each of your comments as best I can. Please let me know if you'd like to see anything else from me :) |
|
@gregrmunday I have just ruff-ed the diag for you (hope you don't mind!). The unofficial way is to run the command |
Thanks @valeriupredoi !! This is useful to know, I'll keep this in mind for next time :) |
Description
This PR calculates and evaluates patterns of thermometric sea-level rise from global thermal expansion and local sea-level changes for a range of CMIP6 models and scenarios.
Systematic calculation and evaluation of these patterns will allow for quick and easy pattern creation for future CMIP generations, and allows the patterns to be used in various sea-level rise emulation models.
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
New or updated recipe/diagnostic