-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
All dimmensions become coordinates? #722
Comments
This is definitely intended behavior: if you don't supply a coordinate to label points along a dimension, a default coordinate (equivalently to |
Thank you! I was just wondering how you know then, which one is an "actual" coordinate and which one is an indexed ("default") coordinate? xarray seem to know this. Example:
And then
As |
Yes, xarray checks for "trivial indexes" that are equivalent to what it would create automatically when it writes a file to disk: |
I'm closing since #1017 has moved us past this question. |
I have a netcdf file that looks like this (ncdump):
When opening it in xray (xarray) I therefore expect
dim1
to be a dimension andcoor1
to be a coordinate, becausecoor1
is also a variable,coor1(coor1)
? But when opening the dataset in xray, I get the following:That is, both
coor1
anddim1
becomes coordinate variables. I expected onlycoor1
to become a coordinate variable, and notdim1
.Am I wrohg, or is it meant to be like this?
The text was updated successfully, but these errors were encountered: