-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support for Context Maps #239
Conversation
A quick note, AstroDrizzle does not support more than 32 images in a drizzle. So if this happens, print a warning and continue. |
Finally getting around to this. Could you rename the parameter controlling whether to output the context image And for the issue with more than 32 images, how about just wrapping the integer at 32? Since Finally, it looks like there are some debugging lines that are commented out and should be removed for clarity. Thanks! |
This is great feedback, I’ll get this implemented soon.
…On Mon, Sep 2, 2024 at 10:05 Gabe Brammer ***@***.***> wrote:
Finally getting around to this. Could you rename the parameter controlling
whether to output the context image out_ctx to write_context?
And for the issue with more than 32 images, how about just wrapping the
integer at 32? Since drizzle_array_groups is effectively calculating the
context anyway, you don't need to add logic whether or not to do it,
drizzle_array_groups can have the parameter default
drizzle_array_groups(first_uniqid=1) and then inside adrizzle.do_driz(...,
uniqid=((first_uniqid - 1 + i) % 32) + 1).
Finally, it looks like there are some debugging lines that are commented
out and should be removed for clarity.
Thanks!
—
Reply to this email directly, view it on GitHub
<#239 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEB6FNGRSK27NK45VJSJCUTZUQL5VAVCNFSM6AAAAABLFYG342VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGA4DANRUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've addressed the handling of ID assignment, as well as made the warning log use the grizli msg.log syntax. In addition, I properly implemented the in-progress sections that were commented out. |
Looking good.
|
Good suggestions, I've reformatted to write_ctx and fixed the last comment block. |
I've updated this commit to be merge-able after the most recent changes. |
The current grizli implementation of AstroDrizzle was not correctly computing context maps, since it was always setting the ID of the input image to 1, rather than incrementing it. This was fixed in 77412f6. I've also added the ability to optionally output context maps when creating mosaics for the direct and grism images.