-
Notifications
You must be signed in to change notification settings - Fork 131
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
Cmorize eobs #1554
Cmorize eobs #1554
Conversation
I'm getting the data. |
Co-Authored-By: Mattia Righi <mattia.righi@dlr.de>
Co-Authored-By: Mattia Righi <mattia.righi@dlr.de>
Co-Authored-By: Mattia Righi <mattia.righi@dlr.de>
@mattiarighi The conflict is due to a inconsistency in fix_coordinates, which in its old form can not handle asymmetrical longitudes (i.e. not centered at zero). |
There is still a conflit in |
@valeriupredoi I need your review on the changes in |
@valeriupredoi I tested a few datasets to make sure the changes in |
@valeriupredoi can I have an approval please! 🍻 |
One sec, on it, a bit late in work today - trying to catch a slightly emptier bus to 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.
I reviewed only the technical bits I assume @mattiarighi you've seen the data provenance stuff. Please have a look at the two important comments that transform longitude points, the other two bits are pythonic stuff 🍺
|
||
# Run the cmorization | ||
ver = cfg['attributes']['version'] | ||
for res in cfg['attributes']['resolution'].values(): |
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 res in cfg['attributes']['resolution'].values(): | |
for _, res in cfg['attributes']['resolution'].items(): |
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.
Why would you want to change this? It looks fine as it is?
Co-authored-by: Valeriu Predoi <valeriu.predoi@gmail.com>
@valeriupredoi I noticed that Codacy is complaining about importing private functions (i.e. starting with |
funny, this is not like accessing a protected member from outside the class, but meh, yes I'll do it! 🍺 |
actually - can we skip it and tell Codacy to go hike? It's an absolute monster to change all the cmorizer scripts, plus, I don't feel like writing documentation for each of these funcs and publishing it, it's something that it's prob best to stay private. What do you think @bouweandela |
I agree about not writing the documentation, that would be too much work for very few users, because these functions are only used by people writing cmorizer scripts. However, I think that renaming them without the leading underscore shoudn't be that much work, just use something like
and carefully look at the git diff before committing to make sure you didn't accidentally change other stuff. |
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.
@mattiarighi Looks good to me, can you please test and merge?
@mattiarighi here for E-OBS tas, tasmin, tasmax, pr, psl.
Again with additional monthly means.
I had to fix fix_coords in utilities.py so it can handle asymmetrical longitudes (i.e. not centered at zero).