Skip to content

load_stac : apply rescale and offset or not? #182

Closed
@clausmichele

Description

@clausmichele

@ValentinaHutter @GeraldIr @SerRichard
The stackstac library allows to automatically rescale the data if the raster extension is provided and if the scale and offset values are set:
https://github.com/gjoseph92/stackstac/blob/694c68646a685abc8f3455d6b28fe121e18ae775/CHANGELOG.md?plain=1#L4

like here: https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a/items/S2A_32TPS_20230602_0_L2A

After the latest update, rescale is True by default and therefore it changed the values I was expecting to get.

Would we have better to set rescale=False by default?

@jdries do you apply scale and offset in load_stac at VITO?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions