-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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]:
documentation/APIs/openEO/R_Client/R.qmd
Line 334 in 7e7a1de
| 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)