Replies: 4 comments 18 replies
-
@acordonez FYI |
Beta Was this translation helpful? Give feedback.
-
Hey Jiwoo, I thought more about your suggestion. The main benefit I see is that the explicit naming convention for the utility functions might be helpful for some users, specifically former CDAT users. The trade-off is that we are duplicating functionality by wrapping simple xCDAT APIs in other xCDAT APIs. This results in more code to maintain and test, and more APIs options for the same functionalities which might confuse users. Also the xCDAT APIs are purposely written with general configurations and to follow Xarray terminology. Unless there is a big enough friction with the existing APIs, I currently lean towards users learning the existing xCDAT APIs. They can extend these APIs if they really want/need to (like in your case). Happy to hear thoughts from others! @xCDAT/core-developers Examples of duplication:
# https://cf-xarray.readthedocs.io/en/latest/coord_axes.html#using-the-repr
airds.cf
Coordinates:
CF Axes: * X: ['lon']
* Y: ['lat']
* T: ['time']
Z: n/a
CF Coordinates: * longitude: ['lon']
* latitude: ['lat']
* time: ['time']
vertical: n/a
Cell Measures: area: ['cell_area']
volume: n/a
Standard Names: * latitude: ['lat']
* longitude: ['lon']
* time: ['time']
Bounds: n/a
Grid Mappings: n/a
Data Variables:
Cell Measures: area, volume: n/a
Standard Names: air_temperature: ['air']
Bounds: n/a
Grid Mappings: n/a An alternative that might be worth considering is providing general functions that return mapping tables ( |
Beta Was this translation helpful? Give feedback.
-
I am just hitting similar issues defining a generic Z coord for CMIP6 ocean data, this includes |
Beta Was this translation helpful? Give feedback.
-
I have went through this thread again, and I like of course any utility function (or simple wrapper) that will help beginning or in-a-hurry user easily find the information/data they need. I also understand the need for making the code easy to maintain. I think it is nice if a user can start typing Now, once we have a time axis, is there an intuitive way of checking the absolute time values, or should there also be a handy function similar to |
Beta Was this translation helpful? Give feedback.
-
Below is for the functions I have made for the PMP, which I found it is pretty handy to have. If any interest to host this capability in the xCDAT, I'd be happy to help! Any feedback also would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions