Datatype handling is now limited due to some assumptions that are not always true:
we assume all bands have same datatype, not true for Sentinel-2 SCL vs reflectance bands
we assume that the celltype of the first datasource can be used for entire cube, so datatype is constant. Not true for Sentinel-2 with mix of processing baselines.
Inspecting datatype of all datasources is problematic, because it would involve first reading all sources to determine cube metadata. So breaks lazy behaviour.
The solution is that the metadata in (STAC) catalogs provide data type information, which we can then use to determine a correct datatype for the cube.
Datatype handling is now limited due to some assumptions that are not always true:
Inspecting datatype of all datasources is problematic, because it would involve first reading all sources to determine cube metadata. So breaks lazy behaviour.
The solution is that the metadata in (STAC) catalogs provide data type information, which we can then use to determine a correct datatype for the cube.