-
Notifications
You must be signed in to change notification settings - Fork 25
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
Identifying coordinate variables #105
Comments
Turns out the way coordinates are specified in the kerchunk references format is as follows:
(None of this is actually described in the kerchunk references specification, I had to work this out by trial and error.) |
These are CF conventions and will/should be handled by Xarray. There's an open issue about implementing And for your first question, Zarr doesn't distinguish between coordinate and data variables. |
Oh okay, I didn't realise that. I'm struggling to find a self-contained description of this in the CF conventions doc but there is at least one example just above here.
Currently because we build the virtual dataset variable-by-variable, and already have to do some sneaky stuff with the coordinates to avoid accidentally creating indexes (inside
Found it: pydata/xarray#4412
So IIUC in a Zarr store coordinates would be specified to xarray in the same way, through this CF-convention format? |
The encode/decode machinery should not be creating indexes iiuc |
I'm a little unclear how xarray / netCDF coordinate variables are distinguished from data variables in the Zarr model.
Xarray follows the netCDF convention that 1-dimensional variables with the same name as their only dimension are to be treated as "coordinates", but it is also possible to have additional 1D or multi-dimensional coordinates (which netCDF calls "auxiliary coordinate variables").
I think at the very least we might need an additional line of code inside
open_virtual_dataset
that looks for any metadata attribute named'coordinates'
.The text was updated successfully, but these errors were encountered: