-
Notifications
You must be signed in to change notification settings - Fork 12
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
What is the meaning of the "arbitrary indexing within dimension is not yet supported" warning? #94
Comments
Ah, sorry for the terrible wording! It means that we can't slice out arbitrary levels. I.e. if we have an axis
It has to be a contiguous range. Does that make sense? (I see it's not in the documentation for It's definitely possible to do it, but ensuring efficiency could be pretty tough - read the whole range and subset, or iterate over elements - without an obvious way to know what's better. This is related to the "chunking" (tiling in other contexts) concept NetCDF has, and how seeking data in batches is handled. |
But apparently it works, so it's possible but it's not efficient, isn't it? |
Oh right, forgot it was not an error, it finds the range, the warning is that you will get everything in between although you asked for specific slices |
Ah...and now I realise that it is not getting everything but rather messing up the data :(
Let me show only the dimensions to avoid confusion:
So (sorry for the complicate example, trust me about that last
Then:
And then apparently it works:
As you can see there is something wrong, look:
Do you have in mind a workaround? |
Any chance you can share a file? I think it will be a struggle without a reprex |
You are right, I apologise. The NetCDF is here: https://send.firefox.com/download/e7f5bedfbc665528/#mhoAoncZZBWUSWdasVp7TA The 'u' field represents the name of a power plant and its name include also the country where is located, then "FI_Hydro reservoir" should be in Finland (FI) and not in Italy (IT) as after the subsetting. |
I apologise for the question that looks naive, but I reading the code I couldn't understand the meaning of this warning. Given that I am going to use
tidync
heavily to analyse complex NetCDFs (15 dimensions, 27 grids) I would like to have everything under control.I do something like:
And I get that warning. This is not happens if I use other operators, for example,
==
.The text was updated successfully, but these errors were encountered: