Skip to content

Commit

Permalink
suprime: use filter-specific, not filter*chip-specific color terms
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Oct 19, 2023
1 parent 13e6e16 commit b3b0e32
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion py/legacypipe/suprime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b3b0e32

Please sign in to comment.