Coverage for python / lsst / multiprofit / plotting / reference_data.py: 100%
3 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-14 23:46 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-14 23:46 +0000
1# This file is part of multiprofit.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (https://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 <https://www.gnu.org/licenses/>.
22__all__ = [
23 "abs_mag_sol_lsst",
24 "bands_weights_lsst",
25]
27# See Wilmer 2018 (https://iopscience.iop.org/article/10.3847/1538-4365/aabfdf)
28# LSST ugrizy ABmags are:
29abs_mag_sol_lsst = {
30 "y": 4.50,
31 "z": 4.51,
32 "i": 4.52,
33 "r": 4.64,
34 "g": 5.06,
35 "u": 6.27,
36}
37# fluxes = u.ABmag.to(u.nanojansky, list(abs_mag_sol_lsst.values()))
38# # = ['5.754e+10', '5.702e+10', '5.649e+10',
39# # '5.058e+10', '3.436e+10', '1.127e+10']
40# weights = 6*(1/fluxes)/np.sum(1/fluxes)
42bands_weights_lsst = {
43 "y": 0.5481722621482569,
44 "z": 0.553244437640313,
45 "i": 0.5583635453943578,
46 "r": 0.6236157227514114,
47 "g": 0.9181572253205194,
48 "u": 2.798446806745142,
49}