Add band-dependent Double-sersic/Catalog-Source color gradients - #438
Add band-dependent Double-sersic/Catalog-Source color gradients#438FerroYx wants to merge 6 commits into
Conversation
|
Still in progress; currently revising the HST section and adding a fallback option to Double Service in case there is no match in the HST source. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #438 +/- ##
========================================
Coverage 98.69% 98.69%
========================================
Files 108 109 +1
Lines 8627 8831 +204
========================================
+ Hits 8514 8716 +202
- Misses 113 115 +2
🚀 New features to boost your workflow:
|
…organize some methods to Util
|
@FerroYx I am in the process of refactoring the Deflector() class to have access to all the Source() class features. So might not all be needed here for the deflectors. |
|
@sibirrer No problem, I'll wait till you update that part and make necessary modification.
|
|
@FerroYx we have merged a major PR for deflector re-factoring. So now, you only need the Source() classes to be updated to have this enabled. Let me know in case there are any issues with the merge conflict |
Intro
Based on MegaMorph we know that galaxy structural parameters and flux distribution can vary smoothly with wavelength.
And On the shear estimation bias induced by the spatial variation of
colour across galaxy profiles displays that Spatial color gradients cause differences in the effective morphology across different bands and affect chromatic PSF and shear measurements.
So far,
Slsim's color gradient is a simple model fixed for any band. And it's similar for Catalog Source (HST), which only offer single band images.To achieve color gradients that more closely reflect reality, I will update the Double Sersic and Catalog Source modules to provide band-dependent color gradients.
Model
For a reference-band component weight
w0, the first-component weight in bandbis defined as[
w_0(b) =
\mathrm{sigmoid}\left[
\mathrm{logit}(w_0) +
s \left(p(b) - p(b_{\rm ref})\right)
\right],
]
where
p(b)is the normalized position of the band in wavelength space andsiscolor_gradient["strength"]. The second-component weight isw1(b) = 1 - w0(b).This form was chosen as a phenomenological parameterization because it:
w0andw1in the reference band;relatively redder (
strength > 0) or bluer (strength < 0);central wavelengths.
This is not intended to be a physical component-SED model or a direct fit to
a particular observed colour-gradient relation. It provides a controlled
first-order model for multi-band simulation and sensitivity tests.