-
Notifications
You must be signed in to change notification settings - Fork 11
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
Real galaxies1 galsim #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is a really nice PR, thank you Rémy for all the work on this issue. I have made a few comments on some details which should be looked at but otherwise I think this can be merged.
Co-authored-by: thuiop <thuiop@hotmail.fr>
Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com>
Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com>
Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com>
Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com>
Hello everyone, thanks for your work in reviews in this PR. I wrote down any outstanding issues I noticed and the ones raised from your comments in #82. We should address them in a later PR but for now I just want to go ahead and merge this one. |
* * fix up min_snr in draw_blends.py * fixed some names in the obs_conditions.py * start new Galsim class with Remy's functions. * small error * added past Remy's class GalsimRealDraw * added template for Francois * avoid pixel scale clash * fix get psf sky in the utils.py * added code for Remy, in case it's helpful as reference * starting to add functionality for COSMOS catalog * revamped infrastructure for reading multiple catalogs * started template for sampling functions to make compatibility with catalogs explicit * small changes to catalog.py, etc. to be more explicit. * more changes to enforce catalog compatibility * cnosistent naming of table vs. catalog in sampling functions * som more progress in moving the PSF stuff * update and cleanup after rebase * remove verbose Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * name simplify Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Refactor the Catalog objects (#62) * refactor Catalog class * update btk input script * use new catalog factory * update tests * fix variable name * update notebook with Catalog obj * Update btk/sampling_functions.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/sampling_functions.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * use psf as galsim object not drawing it Co-authored-by: Rémy Joseph <remyjoseph@ymail.com> * small formatting changes * Fix the 'size' problem for now * Fix typos in the generator (#65) * Make compatible_catalogs a class attribute (#64) * Fix abstract method call order (#63) * simplifying obs conditions for Remy * Refix the size problem with the improved compatible_catalogs * fixing obs_conditions.py, check Remy? * fixing obs_conditions.py, check Remy? * Use astropy Column to feed size * Add a check to avoid missing columns * Add tests for Catalog obj * Real galaxies1 galsim (#75) * Survey refactoring+CosmosCatalog * Minor refactoring before drawing galsim images * Forgot the .py files * Working drw_single for cosmos * improve type error message related to Surveys Co-authored-by: thuiop <thuiop@hotmail.fr> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * Update btk/catalog.py Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * response to review comments Co-authored-by: Ismael Mendoza <11745764+ismael-mendoza@users.noreply.github.com> Co-authored-by: thuiop <thuiop@hotmail.fr> Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> * black * black * Rubin survey was flipped in its order of bands. * deleted some deprecated tests, everything should pass now * no need for galsim_draw Co-authored-by: Alexandre Boucaud <3065310+aboucaud@users.noreply.github.com> Co-authored-by: Rémy Joseph <remyjoseph@ymail.com> Co-authored-by: Thomas Sainrat <thomas.sainrat@student-cs.fr> Co-authored-by: Alexandre Boucaud <boucaud.alexandre@gmail.com> Co-authored-by: thuiop <thuiop@hotmail.fr>
Behold the first galsim real images generated with BTK!
There is still a long way to go. Now all the functionalities for generating images are there, but it looks like the draw_blend and draw_single don't talk to each other that well. Namely, the fluxes are off, as well as the. position and I had to put a few random number to generate the image at this point. I think I know how to solve most of these issues, but I think we are safe pulling this branch now and solving the rest later or even in a completely different PR.