Skip to content

Broken R example? #700

@soxofaan

Description

@soxofaan

A CDSE user support request (CDSE-237) pointed me to this R example https://documentation.dataspace.copernicus.eu/APIs/openEO/R_Client/R.html#full-example which does not seem to work.

At some point there is a linear_scale_range from [-20, -5] to [0, 255]:

p$linear_scale_range(x=data, inputMin = -20,inputMax = -5, outputMin = 0, outputMax = 255)

which seems to be about rescaling decibel values to a PNG byte range.

However, I don't see where the S1 values are being log-converted to decibel, so the cube values are probably in a range [0, 1], which is all mapped/clamped to byte value 255, creating a quite useless image

(disclaimer: I haven't tried anything out myself yet here, this are just observations from handling the user support ticket)

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