-
Notifications
You must be signed in to change notification settings - Fork 4
Index aliasing for xarray dataarrays #108
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
Comments
Eventually I think we can use custom xarray indices not just for |
from the xarray person doing the majority of index-relating development
|
After a bit more reading, it seems like the recommended pattern here is to store grid/time in a custom xarray index. (The index is the place for extra state that should be preserved with dataset operations). The index then adds some extra "discretization-awareness" on top of what the data tree already knows about its shape. Specific functionality (e.g. plotting) can be built on the index and exposed with accessors if needed. |
I sketched out how we might attach custom indices to xattree components in modflowpy/xattree@fdfa082. Rough and dead simple but I think it might work? Will soon try it here.. |
think it's working with modflowpy/xattree@14e2531.
|
Instead of getting data with
ncol=5, nrow=10
, we want to usej=5, i=10
.We should be able to set aliases on the xarray labels.
The text was updated successfully, but these errors were encountered: