-
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
Compute bias instead of correlation in compare_salinity.py
#2642
Conversation
You can double check the code changes in the |
Thanks @sloosvel, this is very promising for a start. I see that some adjustments would be needed to get it in good shape.
|
Great, thanks for the feedback. I will get on the changes.
Yes, the datasets are specified in the recipe under the
|
Hi @portegam , Here you have the second batch of result, the plot limits were updated and the Mediterranean regions were removed: |
Great, thanks. I've checked here and there is another supported dataset of sos for ESMValTool: that is WOA. Can you see if you can load it instead of the V1 from ESA? |
Thanks @sloosvel. I think I understand now how the y-axis work. line 101> If it looks good enough, it might be the final version of the script |
Which version would you need? 2018 or 2013v2? Also it seems like it's a climatology value so I would only be able to plug it in the bias plots, but not the in timeseries ones. |
If it's a climatology then I think that it's better not to use it, because it won't be computed for the same period that we have used (that is the overlap between the obs and the model). The only other product with salinity data (3D instead of only surface) that I've found is PHC. Can you check with versions are available and if they provide time varying data or just a climatology? |
PHC also contains just one time point:
|
Thanks for checking @sloosvel. |
I would need to add a cmoriser script first |
|
|
Sure, no problem! What type of plot do you further need? |
It would be a similar plot, but instead of showing the bias (difference in mean states), it would show the ratio between the observed and the simulated standard deviation (calculated both over the overlap period). I will copy below the changes in the compare_salinity.py script that would need to be done to make that computation. The script for that could be called compare_salinity_std.py to differentiate it from the previous. |
So the main changes to do would be:
|
Very nice plots, thanks @sloosvel. Do you know if there is an option to plot the y-axis on a logarithmic basis? It might improve the visibility of the results because the interpretation of the values that are greater/lower than 1 is non linear. |
Thanks @sloosvel. It might work. Can you test it for the range 10^-2 to 10^2? (with ticks on 10^-1, 10^0 and 10^1)? |
I'd like also if you could repeat the plot in the linear (non-logaritmic) scale, using the same yticks "0, 0.25, 0.5, 1, 2, 4" and the range -2 to 5. |
I don't have access to jasmin, I'm afraid. Do you mind uploading here just that figure? |
Thanks a lot @sloosvel |
Hi @portegam, I did a small update to the documentation. Could you please check if that reads fine to you and if so just say that you give your scientific approval? Thanks in advance. |
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 technical approval was given in #1832 and the current updates do not affect the quality of the code, as all checks pass.
|
Then you would need to go to the |
I added 3 comments with suggested changes in the text (nothing was wrong, I just added a bit more detail).
I think I did it that way. Please let me know if it's not the case. |
I also have one question. Javi's recipe only computed one type of radar plot, and with our changes we are computing two. Are both computed by the same script? Or do we have two separate scripts? |
It's one script that loops over the |
Excellent, it's much better than way. Thanks for implementing it that way, it's much cleaner |
Hi @sloosvel, is there anything else needed from my side? I see that the required review appears to be still missing. |
Actually I think I don't have permissions to merge so if anyone from @ESMValGroup/esmvaltool-coreteam could do it that would be great. |
At the moment, merging is blocked because there is no review. |
@portegam, are you a member of ESMValGroup/esmvaltool-developmentteam ? |
@pepcos can you do us a favour and approve the changes? |
I'm not, I'm just the BSC person that has been providing the scientific guidanceEl 6 may. 2022 15:19, Klaus Zimmermann ***@***.***> escribió:
@portegam, are you a member of ESMValGroup/esmvaltool-developmentteam ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Ah, that's why Github didn't count your review. Was just wondering, thanks for clarifying. |
Thanks!! |
Description
Update sea surface salinity diagnostic for CMUG deliverable D5.4
@portegam @kserradell I am opening this as a draft PR to have a first look at the updated results.
Here are the updated figures that are generated when computing the bias instead of the correlation, as indicated:
Please let me know if that is what is expected
recipe_sea_surface_salinity
#2641Before 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.
- [ ] 🛠 The list of authors is up to date- [ ] 🛠 Any changed dependencies have been added or removed correctlyNew or updated recipe/diagnostic
To help with the number of pull requests: