Open clausmichele opened 7 months ago
@clausmichele I believe the reason stackstac and odc-stac are providing "time", "band", "y", "x" because these are the conventions from rasterio isn't it? And I'm afraid stackstac is designed to support rasterio supported file format
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 stackstac:
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?
Same issue opened also for odc-stac, which has also default names: https://github.com/opendatacube/odc-stac/issues/136