Skip to content
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

ArrayTile: wrong argument order in combineDouble + ConstantTile #3257

Closed
jdries opened this issue Jun 17, 2020 · 0 comments · Fixed by #3273
Closed

ArrayTile: wrong argument order in combineDouble + ConstantTile #3257

jdries opened this issue Jun 17, 2020 · 0 comments · Fixed by #3273
Labels

Comments

@jdries
Copy link
Contributor

jdries commented Jun 17, 2020

In ArrayTile, combineDouble looks like:

case ct: ConstantTile => ct.combineDouble(this)(f)

compare to combine:
case ct: ConstantTile => ct.combine(this)((z1, z2) => f(z2, z1))

So the argument order in combineDouble is (z1,z2). When using this in combination with the non-commutative 'Subtract' function, results are simply wrong. (So I believe this can be considered a pretty major issue.)

jdries added a commit to Open-EO/openeo-geopyspark-driver that referenced this issue Jun 17, 2020
@pomadchin pomadchin added the bug label Jun 17, 2020
jdries added a commit to Open-EO/openeo-geopyspark-driver that referenced this issue Jun 19, 2020
soxofaan added a commit to soxofaan/geotrellis that referenced this issue Jul 22, 2020
soxofaan added a commit to soxofaan/geotrellis that referenced this issue Jul 22, 2020
soxofaan added a commit to soxofaan/geotrellis that referenced this issue Jul 22, 2020
pomadchin added a commit that referenced this issue Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants