-
Notifications
You must be signed in to change notification settings - Fork 9
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
indexing of segments #222
Comments
Alternatively, I'd like to see a function that apply apply any function onto a specific row of a ragged array, perhaps called
So far, one needs to do
That's just too much. |
|
I like that suggestion @milancurcic, could you work on it? |
But in that case, this is using Matplotlib API ( |
I don't understand. Where does Matplotlib come in? |
Oh, Shane's example from the top. Yes, use it with Matplotlib at your own risk. |
I think for an |
I think this would be a good thing. For testing purposes I find myself wanting to use |
We can add a warning that using this for plotting is maybe not a good idea. |
Discussed in #208
Originally posted by selipot June 28, 2023
I am wondering if we could improve indexing within rows. Let's say we start from a ragged array dataset
ds
with a givenrowsize
, we first need to generate a row index, define a slice, then index that slice:How can we simply this to something like
ds.lon[j][n]
which is basically a syntax/functionality that is supported by awkward arrays but not xarray.Is one long haul solution to define new classes such
xarray.RaggedDataArray
andxarray.RaggedDataset
for which we could have.isel
and.sel
methods for double indexing (ds.lon[j][n]
)?The text was updated successfully, but these errors were encountered: