-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add longitude_bnds
and latitude_bnds
to cmip_renaming_dict
#300
Conversation
Thank you very much for adding these @JoranAngevaare. |
Ok I am fairly confident that the above issue is fixed by jbusecke/xarrayutils#162, since the |
Ok I got it all sorted. Thanks for your patience @JoranAngevaare. |
for more information, see https://pre-commit.ci
@jbusecke thanks a lot for all the fixes! I see that numpy 1.24.0 drop of deprecated I added a trivial test eff95dc, however, that lead me to notice that |
I am not sure I follow this. I do intent to rename the |
xmip/preprocessing.py
Outdated
@@ -27,7 +27,7 @@ def cmip6_renaming_dict(): | |||
"x": ["i", "ni", "xh", "nlon"], | |||
"y": ["j", "nj", "yh", "nlat"], | |||
"lev": ["deptht", "olevel", "zlev", "olev", "depth"], | |||
"bnds": ["bnds", "axis_nbounds", "d2"], | |||
"bnds": ["axis_nbounds", "d2"], |
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.
Hi @JoranAngevaare again sorry for the delay (the amount of times I have typed this today 😆). I am not quite following myself from the past TBH. I now completely agree that renaming "bnds" to "bnds" is nonsensical. Sorry for the back and forth. Could you restore that change? Ill get this moving right after the tests pass. |
I would also like to add you to the CITATION.cff for the contributions you made here. |
@JoranAngevaare finally getting around to merging this. Again sorry for the delay. I have opened #358 to track the addition to the CITATION file. |
hi @jbusecke sorry for the delay on my side - I missed these previous comments. |
Add
longitude_bnds
andlatitude_bnds
tocmip_renaming_dict
, this allows renaming for example renaming bounds for'ScenarioMIP.UA.MCM-UA-1-0.ssp585.r1i1p1f2.Amon.gn.none.tas'
.pre-commit run --all-files
pytest
whats-new.rst