Rasters with mixed dtypes
amaury.dehecq@...
Hello everyone, I was wondering if there are any good examples/reasons for having rasters that contain bands with mixed dtypes e.g. ('uint8', 'float32'). This seem to be mostly supported in rasterio, but functions like rasterio.open accept only one dtype. Furthermore, mixed dtypes are not supported in GTiff apparently: https://lists.osgeo.org/pipermail/gdal-dev/2010-August/025657.html I'm just wondering if I should make the effort to accept mixed dtypes in a library I'm developing, which is based upon rasterio. Thanks! Amaury |
|
Sean Gillies
Hi Amaury, Sorry for the late reply. Rasterio depends on GDAL and support for mixed data types in that library varies across the different format drivers. GeoTIFF is constrained, but others are not. I'm not aware of any comprehensive report of which formats do allow mixed types and which don't. HDF5 does, at least. Yours, On Thu, Jun 10, 2021 at 8:03 AM <amaury.dehecq@...> wrote:
--
Sean Gillies |
|