You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice that, if at Collection or Item level the datacube extension is present, the provided dimension names would be reflected in the final returned xarray object. Currently, the dimension names are always the default ones:
I understand that in the above example I'm passing STAC Items that do not contain the cube:dimensions field, which is provided only at Collection level.
Would it make sense to give the option for using the naming convention from the STAC itself?
The text was updated successfully, but these errors were encountered:
Support for datacube extension would be cool, but it's not just about spatial dimension names though, it's about dimensions other than time,x,y, it's about multiple variables present in the same hdf/zarr/netcdf-like asset, it's about units (duplicating raster extension) and "data variable type" that seems to be extending stac "role" to components of the asset being described, and other metadata like valid data range or a set of allowed values a particular data variable can hold that one would expect to be exposed as an attribute I guess.
Not to mention that those "hdf-like" data sources often have hard-to-support geo-registration strategies like arrays of pixel locations, as opposed to CRS + Linear Transform.
And as far as spatial dimension names go, having custom names can be more of a pain than advantage, I'm still annoyed that odc-stac uses longitude/latitude dimension names when data is in geographic coordinates and x,y when using projections (that's because of opendatacube/datacube legacy, I should at least add an option to force x,y names regardless of CRS being used).
It would be nice that, if at Collection or Item level the datacube extension is present, the provided dimension names would be reflected in the final returned xarray object. Currently, the dimension names are always the default ones:
Sample STAC Collection with datacube extension:
Result from odc-stac:
I understand that in the above example I'm passing STAC Items that do not contain the cube:dimensions field, which is provided only at Collection level.
Would it make sense to give the option for using the naming convention from the STAC itself?
The text was updated successfully, but these errors were encountered: