Unidata / netcdf-java

The Unidata netcdf-java library
https://docs.unidata.ucar.edu/netcdf-java/current/userguide/index.html
BSD 3-Clause "New" or "Revised" License
144 stars 70 forks source link

Use _ARRAY_DIMENSIONS to create shared, named dimensions in ZarrHeader #1325

Closed rschmunk closed 6 months ago

rschmunk commented 6 months ago

Description of Changes

This PR adds code to the ZarrHeader class to look for the xarray/geozarr _ARRAY_DIMENSIONS attribute and, if present, use it to name a variable's dimensions and to create shared dimensions with the variable's group.

This is a first effort to see how much code/effort was necessary and may not consider cases where this info should be explicitly be ignored, or if there are additional Exceptions that one needs to watch for.

PR Checklist