Coverage for python/lsst/obs/cfht/cfhtFilters.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of obs_cfht.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (http://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
22__all__ = ("MEGAPRIME_FILTER_DEFINITIONS",)
24from lsst.obs.base import FilterDefinition, FilterDefinitionCollection
26# Filter specification comes from
27# https://www.cfht.hawaii.edu/Instruments/Filters/megaprimenew.html
29# With current afwFilter singleton we can not define abstract filters
30# properly since we are only allowed one u alias.
31MEGAPRIME_FILTER_DEFINITIONS = FilterDefinitionCollection(
32 FilterDefinition(physical_filter="u.MP9301",
33 band="u",
34 lambdaEff=374, lambdaMin=336, lambdaMax=412),
35 FilterDefinition(physical_filter="u.MP9302",
36 band="u",
37 afw_name="u2",
38 lambdaEff=354, lambdaMin=310, lambdaMax=397),
39 FilterDefinition(physical_filter="u.MP9303",
40 band="u",
41 afw_name="u3",
42 lambdaEff=395, lambdaMin=390, lambdaMax=400),
43 FilterDefinition(physical_filter="g.MP9401",
44 band="g",
45 lambdaEff=487, lambdaMin=414, lambdaMax=560),
46 FilterDefinition(physical_filter="g.MP9402",
47 band="g",
48 afw_name="g2",
49 lambdaEff=472, lambdaMin=396, lambdaMax=548),
50 FilterDefinition(physical_filter="g.MP9501",
51 band="g",
52 afw_name="g3",
53 lambdaEff=501, lambdaMin=495, lambdaMax=506),
54 FilterDefinition(physical_filter="g.MP9502",
55 band="g",
56 afw_name="g4",
57 lambdaEff=511, lambdaMin=506, lambdaMax=516),
58 FilterDefinition(physical_filter="r.MP9601",
59 band="r",
60 lambdaEff=628, lambdaMin=567, lambdaMax=689),
61 FilterDefinition(physical_filter="r.MP9602",
62 band="r",
63 afw_name="r2",
64 lambdaEff=640, lambdaMin=566, lambdaMax=714),
65 FilterDefinition(physical_filter="r.MP9603",
66 band="r",
67 afw_name="r3",
68 lambdaEff=659, lambdaMin=654, lambdaMax=664),
69 FilterDefinition(physical_filter="r.MP9604",
70 band="r",
71 afw_name="r4",
72 lambdaEff=672, lambdaMin=666, lambdaMax=677),
73 FilterDefinition(physical_filter="r.MP9605",
74 band="r",
75 afw_name="r5",
76 lambdaEff=611, lambdaMin=400, lambdaMax=821),
77 FilterDefinition(physical_filter="i.MP9701",
78 band="i",
79 lambdaEff=778, lambdaMin=702, lambdaMax=853,),
80 FilterDefinition(physical_filter="i.MP9702",
81 band="i",
82 afw_name="i2",
83 lambdaEff=764, lambdaMin=684, lambdaMax=845),
84 FilterDefinition(physical_filter="i.MP9703",
85 band="i",
86 afw_name="i3",
87 lambdaEff=776, lambdaMin=696, lambdaMax=857,),
88 FilterDefinition(physical_filter="z.MP9801",
89 band="z",
90 lambdaEff=1170, lambdaMin=827, lambdaMax=1514),
91 FilterDefinition(physical_filter="z.MP9901",
92 band="z",
93 afw_name="z2",
94 lambdaEff=926, lambdaMin=849, lambdaMax=1002),
95)