sweverett / Balrog-GalSim

Modules for GalSim that will be useful for DES images in conjunction with Balrog.
MIT License
5 stars 5 forks source link

Grab chip zeropoints and correctly scale flux #11

Closed sweverett closed 6 years ago

sweverett commented 6 years ago

Currently injections are all (incorrectly) assuming zeropoints of 30, which is consistent with the input catalog. See Brian's slack comment:

For example for tile DES0347-5540, there's a list file here: /data/des71.a/data/kuropat/balrog_test/y3v02/DES0347-5540/lists/DES0347-5540_r_nullwt-flist-y3v02.dat The first line of this file is: /data/des71.a/data/kuropat/balrog_test/y3v02/DES0347-5540/nullwt-r/D00253910_r_c54_r2366p01_immasked_nullwt.fits 31.70017433166504 So for any r-band flux laid down on expnum 253910 ccnum=54, that flux should be multiplied by pow(10,(31.70017-30)/2.5) = 4.787 and so forth.

This means we need the following changes:

sweverett commented 6 years ago

Progress has been made but doesn't align with the above check-boxes. Instead we have:

Now the easiest path moving forward will likely be to use the scale_flux parameter in the gal field, as outlined in GalSim demo 11. scale_flux can be calculated and set in the chip init.