cogeotiff / rio-tiler

User friendly Rasterio plugin to read raster datasets.
https://cogeotiff.github.io/rio-tiler/
BSD 3-Clause "New" or "Revised" License
502 stars 106 forks source link

Feat/set profile in imagedata #688

Open iferencik opened 5 months ago

iferencik commented 5 months ago

@vincentsarago

This PR adds an optional profile attribute to ImageData in case the reader that created it was requested to unscale the data.

as per https://github.com/developmentseed/titiler/discussions/803

The profile attr will contain the scales and offsets, which at this point are not part of the profile attribute of the rio DatasetReader

This is to accomodate a specific use case when the reader is not STAC or Mosaic.