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
[Processing] Rescale Raster gives bad results. #41084
Comments
@roya0045 can you attach it here? |
This should be sufficient. Data placement has been altered. |
With the normalisation formula in the raster calculator the output is fine. |
-1 as the minimum value seems to be the cause. I tried but offsetting the values by 1, it works fine, and with an offset or -3, making the minimum -4, its also fine. |
@gioman Did you had the chance to test and is the behavior the same on Linux? |
Thank Gio! @alexbruy simple ping to inform you of this issue. |
…is not Float32 (fixes qgis#41084)
…is not Float32 (fixes #41084)
The Rescale Raster tool gives nonsensical results in some instances.
I have a raster (float64) whose value are ranging from -1 to 255.
As those should represent a direction (originally from r.terraflow ) I want to turn them into quadrants.
When I process the data to rescale the values between 0 and 7 or 1 and 8.
In the resulting layer I seem to get an overflow and values are either between e-20 and 0 while some others are up in 7e+37
Tested on 3.16.1 and 3.16.3 ( the alg is inchanged so any change would be surprisig).
Works fine on raster with a positive range.
The text was updated successfully, but these errors were encountered: