-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cell Boundary aware operations #10
Comments
Based on the examples in the README, it sounds like |
@andersy005 I'm not sure if I am remembering this correctly, but my memory tells me that we envisioned that the |
xarray has CZI funding to make good progress on explicit indexes this year, so some answers to the above points should be available in the next few months. However, should cf-xarray provide an interim solution? If so, I'd favour an explicit opt-in |
Personally, since I think we have an interim solution already, I like the idea of the |
I agree. But since all the other wrapped functions just rewrite the arguments, I think it would be good to make the use of |
Ah. Yes. Agree. 👍 |
Will this generate new bounds as well or will it just use existing bounds? In other words, with |
New bounds would be a good idea IMO. |
This discussion also lines up with the "Climatological Statistics" section of the conventions: http://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#climatological-statistics This seems like a useful feature under the |
I'm concerned about colliding namespaces. Is it fair to say that we could implement functionality in |
As far as I can tell, |
Ok. I guess I need to look more closely at |
If cf-array implemented climatological operations that enforce CF-Conventions, this is something we would certainly be interested in integrating. See Ouranosinc/xclim#74 for some related work that has stalled. |
@malmans2 what do you think about this issue? |
The code in xgriddedaxis is really small (!) so I think it's OK to copy it over. I like the Under-the-hood, i think this should do weights = cfxr.resample_weights(input, output, freq)
obj.weighted(weights).resample(time=freq) which would require solving pydata/xarray#3937 first. We'd also have to test out using We'd have to add a We can explore upstreaming the weighting during discussions of the new xarray indexing API. |
I've started here with |
For the last few months, I've been working on xgriddedaxis, a tool for working with one-dimensional axes with their respective cell boundaries information. xgriddedaxis was motivated by the fact that xarray is not aware of cell boundary variables when performing operations such as resampling along the
time
coordinate. The main objective of xgriddedaxis is to provide a set of utilities that enables fluid translation between data at different intervals while being aware of the cell boundary variables.Is this something that falls within
cf-xarray
's scope? If so, I am happy to help out with the implementation for this incf-xarray
.Ccing @kmpaul, @matt-long
The text was updated successfully, but these errors were encountered: