-
Notifications
You must be signed in to change notification settings - Fork 63
ROT accuracy issue #1909
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
Comments
Thank you for this important bug report. I am sad that such an important bug was not detected before :( |
Let me know if I can help - I'll take a stab at |
((I don't understand why we never realized that this code, which is big a complex, never gave problem before !)) OK, I found one problem in the
I also realized that we have no systematic tests related to that part of code (TBD) |
I've looked at it. There are indeed at lot of cases where the result is different, @dinsmoro 's one is only the tip of the iceberg. |
BTW, IMHO there is no fault in the current code. It just does not behave as IDL does, but only because there was a different choice (or absence of) on the float-to-integer truncation when it comes to tell which pixel is whom. But we have to reproduce the IDL results. |
…language#1909 (Use Floats for coordinates) 3) much improved speed ! rewrite congrid to use poly_2d similarly to IDL. Removed all tentatives to 'do better' (with dimensions). separate poly_2d from math_fun_jmg add poly_2d basic test
Will be solved as soon as #1919 is merged. |
I noticed that
ROT
doesn't give the right outputs:I tried some other older
ROT
functions from NASA personnel, but they performed the same which I suspect points to thepoly_2d
call (perwe use the c++ internal POLY_2D code to do the job
comment). I can't find that call in the repo, though.This issue has popped up before, maybe system-dependent?:
https://cow.physics.wisc.edu/~craigm/idl/archive/msg03150.html
And IDL on a separate computer does give the expected values:
The text was updated successfully, but these errors were encountered: