-
Notifications
You must be signed in to change notification settings - Fork 2
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
Better global tas database and warming level methods #270
Conversation
do we want to add the source to the original data in the csv ? but maybe it needs to be in the csv also? (while we are here anyway) |
Good idea! |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Last commits are a rewrite of See changes of the warming level notebook for most explanations. And edit on the root comment. |
@sarahclaude Should I use this PR to add the global tas average for non-r1i1p1f1 models ? Will you need that ? |
I might need it in the future but we are not dealing with warming levels yets, so not on short-term. |
PR prête pour la revue. J'ai laissé faire les membres non-r1i1p1f1 pour le moment. Les modèles ajoutés sont essentiellement ceux qui manquaient de ESPO-G6. |
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.
Looks pretty good!
Co-authored-by: RondeauG <[email protected]>
for more information, see https://pre-commit.ci
There's |
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.
great!
xscen/extract.py
Outdated
output: {'selected', 'requested'} | ||
When `realization` is a sequence. | ||
If "requested", the function returns a list of the same length as `realization`. | ||
If "selected", the function returns a dict, keys are the models selected in the database. |
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 am fine with a breaking change, returning only a list and removing the output
arg.
Warming level dataset. | ||
xr.Dataset or None | ||
Warming level dataset, or None if `ds` can't be subsetted for the requested warming level. | ||
The dataset will have a new dimension `warminglevel` with `wl_dim` as coordinates. |
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.
what's the point of keeping the fake time axis ?
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.
Maybe I don't understand the question, but as get_warming_level
does not perform any statistical computation, there's a N year window for each warming level. The only way to have a multidimensional dataset with time
and wl_dim
, is to have some sort of time axis that is not the actual horizon (which is different for each warming level and simulation).
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.
my mistake. I forgot that the mean wasn't calculated on the window in that function.
Docs are failing because a file only in this branch isn't present in main. Let me know if you want me to bypass protections to push to main! |
Pull Request Checklist:
number
) and pull request (:pull:number
) has been added.What kind of change does this PR introduce?
Addition of:
to
xscen/data/IPCC_annual_global_tas.csv
.get_warming_level
, output as those or list.subset_warming_level
.Does this PR introduce a breaking change?
Yes, if
get_warming_level
is called with a sequence of models, the output is now a list of the same length. The dictionary can be retrieved by passingoutput='selected'
. I found it way more useful this way!Other information:
The new global tas were computed with the following code:
See issue #268 for discussion of small differences between this and the official IPCC-provided data.