esheldon / mdet-lsst-sim

Run metacalibration on the lsst simulations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix mask frac calc

esheldon opened this issue · comments

The stamp size is erroneously included, making the area used for this calculation to small

trim = trim_pixels + stamp_size // 2

If anything this should be

trim = trim_pixels - stamp_size // 2

because that area is used for measurement, even though objects are trimmed if their center is in that area