Coverage for config / colorterms.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.13.2, created at 2026-02-21 01:45 -0800

1"""Set color terms for MegaCam""" 

2 

3from lsst.pipe.tasks.colorterms import Colorterm, ColortermDict 

4 

5# 2018-09-04: Michael Wood-Vasey: 

6# The color terms should translate between the photometric reference catalog 

7# and the system transmission of MegaCam. 

8# I've added a set of color terms here for the PS1 reference catalog 

9# assuming that the PS1 catalog is on the AB system. 

10config.data = { 

11 "ps1*": ColortermDict( 

12 data={ 

13 "u.MP9301": Colorterm(primary="u", secondary="g", c0=0.0, c1=-0.241), 

14 "g.MP9401": Colorterm(primary="g", secondary="r", c0=0.0, c1=-0.153), 

15 "r.MP9601": Colorterm(primary="r", secondary="g", c0=0.0, c1=0.024), 

16 "i.MP9701": Colorterm(primary="i", secondary="r", c0=0.0, c1=0.085), 

17 "z.MP9801": Colorterm(primary="z", secondary="i", c0=0.0, c1=-0.074), 

18 } 

19 ), 

20 "e2v": ColortermDict( 

21 data={ 

22 "u.MP9301": Colorterm(primary="u", secondary="g", c0=0.0, c1=-0.241), 

23 "g.MP9401": Colorterm(primary="g", secondary="r", c0=0.0, c1=-0.153), 

24 "r.MP9601": Colorterm(primary="r", secondary="g", c0=0.0, c1=0.024), 

25 "i.MP9701": Colorterm(primary="i", secondary="r", c0=0.0, c1=0.085), 

26 "z.MP9801": Colorterm(primary="z", secondary="i", c0=0.0, c1=-0.074), 

27 } 

28 ), 

29}