Open-EO / openeo-geotrellis-extensions

Java/Scala extensions for Geotrellis, for use with OpenEO GeoPySpark backend.
Apache License 2.0
5 stars 3 forks source link

apply Sentinel-2 BOA_ADD_OFFSET / RADIO_ADD_OFFSET #172

Closed EmileSonneveld closed 1 year ago

EmileSonneveld commented 1 year ago

https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-2-msi/processing-baseline

Now the offset is hardcoded for all bands: https://github.com/Open-EO/openeo-geotrellis-extensions/issues/144 The offset should be read from the metadata xml and applied on only the relevant bands.

EmileSonneveld commented 1 year ago

@bossie Does this quickfix look ok to you? https://github.com/Open-EO/openeo-geotrellis-extensions/commit/bc485f92eb7bc3150e8c7d930d92642e42c09974