From b3b0e328b4b8517ce7d0718e7c436c130fecba74 Mon Sep 17 00:00:00 2001 From: Dustin Lang Date: Thu, 19 Oct 2023 06:44:07 -0700 Subject: [PATCH] suprime: use filter-specific, not filter*chip-specific color terms --- py/legacypipe/suprime.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/py/legacypipe/suprime.py b/py/legacypipe/suprime.py index b145aa16..f8553dad 100644 --- a/py/legacypipe/suprime.py +++ b/py/legacypipe/suprime.py @@ -152,6 +152,15 @@ def colorterm_ps1_to_observed(self, cat, band): gi = gmag - imag colorterm = np.zeros(len(gmag)) + coeffs = { + 'I-A-L427': [-0.7496, 0.8574,-0.1317], + 'I-A-L464': [-0.2358, 1.0048,-1.4035, 0.7257,-0.1200], + 'I-A-L484': [ 0.2545,-0.6517, 0.4007,-0.0664], + 'I-A-L505': [ 0.2422,-1.1041, 1.4401,-0.6947, 0.1103], + 'I-A-L527': [ 0.2007,-0.1745,-0.0020], + }[band] + + ''' coeffs = { ('I-A-L427', 'det0'): [-0.28424705, 0.82685339, -0.11524449], ('I-A-L427', 'det1'): [-0.75325532, 0.85490214, -0.12558040], @@ -209,7 +218,7 @@ def colorterm_ps1_to_observed(self, cat, band): ('I-A-L527', 'det9'): [ 0.18526426, -0.15797659, -0.003059741], }[band, self.ccdname] - + ''' colorterm = np.zeros(len(gmag)) for power,coeff in enumerate(coeffs): colorterm += coeff * gi**power