Skip to content

load_stac: scale_and_offset #503

Open
@clausmichele

Description

@clausmichele

Proposed Process ID: load_stac
Proposed Parameter Name: scale_and_offset
Optional: yes, default: False

Context

Recently, after the introduction of the new Sentinel-2 processing baseline, an offset has been introduced (additionally to the scale, which was already present). Previously, since the conversion from digital number (DN) (the actual values in the S2 files) to reflectances was performed only by applying the scale factor, for many applications it was the same as using DN (in many indexes, the scale factor is being neglected).
Now, both have to be applied in order to obtain meaningful results.

Some GitHub issues discussing about this topic:
Element84/earth-search#9
Element84/earth-search#23
opendatacube/odc-stac#55

@jdries @dthiex How do you manage this for the SENTINEL2_L2A collections?

Description

if scale_and_offset is True, apply them automatically. They should be available in the raster:bands extension metadata.

Data Type

boolean

Additional changes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions