Coverage for python/lsst/obs/cfht/cfhtFilters.py: 100%
3 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-25 10:31 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-25 10:31 +0000
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 FilterDefinition(physical_filter="u.MP9302",
35 band="u",
36 afw_name="u2"),
37 FilterDefinition(physical_filter="u.MP9303",
38 band="u",
39 afw_name="u3"),
40 FilterDefinition(physical_filter="g.MP9401",
41 band="g"),
42 FilterDefinition(physical_filter="g.MP9402",
43 band="g",
44 afw_name="g2"),
45 FilterDefinition(physical_filter="g.MP9501",
46 band="g",
47 afw_name="g3"),
48 FilterDefinition(physical_filter="g.MP9502",
49 band="g",
50 afw_name="g4"),
51 FilterDefinition(physical_filter="r.MP9601",
52 band="r"),
53 FilterDefinition(physical_filter="r.MP9602",
54 band="r",
55 afw_name="r2"),
56 FilterDefinition(physical_filter="r.MP9603",
57 band="r",
58 afw_name="r3"),
59 FilterDefinition(physical_filter="r.MP9604",
60 band="r",
61 afw_name="r4"),
62 FilterDefinition(physical_filter="r.MP9605",
63 band="r",
64 afw_name="r5"),
65 FilterDefinition(physical_filter="i.MP9701",
66 band="i"),
67 FilterDefinition(physical_filter="i.MP9702",
68 band="i",
69 afw_name="i2"),
70 FilterDefinition(physical_filter="i.MP9703",
71 band="i",
72 afw_name="i3"),
73 FilterDefinition(physical_filter="z.MP9801",
74 band="z"),
75 FilterDefinition(physical_filter="z.MP9901",
76 band="z",
77 afw_name="z2"),
78)