GeoZarr conventions not recognized by xarray (CRS, bounds, coordinates, ...) #11295
Replies: 3 comments 1 reply
|
However, libraries like cc @dcherian, @maxrjones, @benbovy |
|
What do you mean by "bounds" here?
|
|
To summarize the replies in the other threads, there is already support for GeoZarr conventions and/or transform-backed coordinates in 3rd-party Xarray libraries like Rioxarray and Rasterix. What we still miss is better interoperability between those libraries as well as better discoverability. One way to solve the latter may be in Xarray to expose an API that allows plugging in custom "coders" (e.g., variable -> variable, dataset -> dataset) that can be passed via |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I’m currently experimenting with creating a GeoZarr dataset following the official GeoZarr conventions.
As far as I can tell, the dataset is valid:
However, when I try to open and explore the dataset using
xarray(andrioxarray), the geospatial metadata does not seem to be recognized:This feels counterintuitive, since the GeoZarr conventions are supposed to encode this information in the metadata already.
Additionally, I noticed that workflows often require explicitly storing
xandycoordinate arrays. This also seems redundant to me, since:should already be sufficient to derive spatial coordinates.
This leads me to suspect that
xarray(andrioxarray) are currently not making use of the GeoZarr conventions.So my questions are:
xarraycurrently support GeoZarr conventions at all?Thanks in advance for any clarification!
All reactions