New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FRACTIONAL_SNOW_COVER: how to escape from signed bytes? #601
Closed
soxofaan opened this issue
Dec 6, 2023
· 2 comments
· Fixed by Open-EO/openeo-geotrellis-extensions#245
Closed
FRACTIONAL_SNOW_COVER: how to escape from signed bytes? #601
soxofaan opened this issue
Dec 6, 2023
· 2 comments
· Fixed by Open-EO/openeo-geotrellis-extensions#245
Comments
The multiply by float can probably be made to work in org.openeo.geotrellis.OpenEOProcessScriptBuilder#xyFunction
|
jdries
added a commit
to Open-EO/openeo-geotrellis-extensions
that referenced
this issue
Dec 8, 2023
…igned and unsigned, also force celltype conversion in every xyfunction Open-EO/openeo-geopyspark-driver#601
Fixed on openeo-dev, I get the expected values. |
jdries
added a commit
that referenced
this issue
Feb 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
original issue: https://discuss.eodc.eu/t/passing-user-defined-parameters-to-an-udf/658
user wants to use FRACTIONAL_SNOW_COVER and remap the snow cover values:
currently she manages to do this with a UDF, but instead this should be possible with simple band math.
However, you get stuck in signed byte space, which wraps around the 205 value to -51
Minimal reproduction example:
resulting netcdf file has values 0, 100 and -51 instead of desired 0, 100 and 205. For example (-51=blue in plot):
Note the explicit float multiplications to attempt triggering float conversions, without effect however.
The text was updated successfully, but these errors were encountered: