opendatacube / odc-geo

GeoBox and geometry utilities extracted from datacube-core
https://odc-geo.readthedocs.io/en/latest/
Apache License 2.0
80 stars 12 forks source link

data_resolution_and_offset no longer works on netcdf4.Dimension objects #169

Open SpacemanPaul opened 3 months ago

SpacemanPaul commented 3 months ago

Previously odc.geo.math.data_resolution_and_offset() worked on netCDF4.Dimension objects. This is used e.g. in the develop-1.9 branch of datacube-core.

From v0.4.4 (as a result of #150) this no longer works - an attribute error is raised as values is not defined on the Dimension object.

Seems this is for detecting dask wrapped objects - is there a more tightly dask-focused way to do this check?