-
Notifications
You must be signed in to change notification settings - Fork 44
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
Unhelpful error when alignging (large) nan-padded arrays #77
Comments
I see, |
I can't only be due to the NaNs though, as some of the padded frames did align, and some gave the (normal) |
I think you have several issues going on and it's hard for me to pinpoint what's not working for you. I'll try to advice you as much as I can, but I suggest you try to reduce the problem to the smallest that reproduce the error.
If you want, you can send me a (1) problem image pair and the code you used and I'll try to figure out what's wrong. |
My code is:
The target is with I have uploaded the files in zip folder here: https://drive.google.com/file/d/1O_mr10SEndYwsTKag0Y7GugyzjFKyUUz/view?usp=sharing |
I have 4656x3520 arrays from fits files that I have padded with numpy.nan to be 13968x10560 (a bit excessive, but I wanted to be sure there would be enough space). Minimum example that gives the error for aligning the images:
I want to combine the images into a mosaic, so my idea was to pad them with NaNs, and then align and stack the images, and then trimming excess NaNs.
And this is what I get from running the code above:
Any help with solving my problem would be appreciated.
I can provide the fits files if necessary.
Edit: The type error is probably because of the NaNs, so I think that that is not the main problem.
Edit2: I have tried increasing the detection sigma upto 10, and still got the same error, and then my other images didn't align.
I have multiple images that I want to align, and they should all overlap the target I'm using. Some work, some give MaxIterError (possibly due to them not overlapping), but a lot give this error.
The text was updated successfully, but these errors were encountered: