different results from find_transform and estimate_transform #73
Replies: 5 comments 1 reply
-
I honestly don't know much about endian issues and the FITS standard to know exactly what's going on, but this trick fixed the issue:
I'll look more into this issue, but for now that should be a quick fix. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. By the way, this is a new issue and your reply is for the previous issue. Best Regards |
Beta Was this translation helpful? Give feedback.
-
Just for your information. I don't think it is a bug of astroalign.
The dtype is already 32-bit float before executing np.array(imdata1, dtype="<f4"), but it needs to be "converted" to '<f4' to run aa.register. |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing that out. I've been thinking last weekend and this might be related to the FITS standard. This is what they say in the PDF file:
But most computers are actually in little endian.
I don't really know if the creators of FITS files take this into consideration when dumping binary data to the file (or if they should care). I'm not sure if astropy should flip the endianness of arrays to match the cpu either. |
Beta Was this translation helpful? Give feedback.
-
I changed this into a discussion because I want to dig deeper into this issue. |
Beta Was this translation helpful? Give feedback.
-
I expected that the followings give the same results, but a bit different, although it is acceptable.
Do find_transform and estimate_transform use different clipping algorithms or parameters?
For this example, repeated executions give the same results.
So I don't think RANSAC's nature accounts for it.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions