-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39cfc67
commit 0dca673
Showing
6 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
import os | ||
|
||
from lsst.meas.algorithms import ColorLimit # Configure the photometry to use atlas_refcat2. | ||
from lsst.meas.algorithms import ColorLimit # Configure the photometry to use the_monster. | ||
|
||
# Configure the photometry to use atlas_refcat2. | ||
config_dir = os.path.dirname(__file__) | ||
|
||
config.connections.photometry_ref_cat = "atlas_refcat2_20220201" | ||
config.connections.photometry_ref_cat = "the_monster_20240904" | ||
config.photometry_ref_loader.load(os.path.join(config_dir, "filterMap.py")) | ||
|
||
config.photometry.match.referenceSelection.magLimit.fluxField = "r_flux" | ||
config.photometry.match.referenceSelection.magLimit.fluxField = "monster_SynthLSST_r_flux" | ||
colors = config.photometry.match.referenceSelection.colorLimits | ||
colors["g-r"] = ColorLimit(primary="g_flux", secondary="r_flux", minimum=0.4, maximum=2.0) | ||
colors["g-r"] = ColorLimit( | ||
primary="monster_SynthLSST_g_flux", | ||
secondary="monster_SynthLSST_r_flux", | ||
minimum=0.4, | ||
maximum=2.0 | ||
) | ||
|
||
|
||
# TODO: Turn color terms back on when they are available | ||
config.photometry.applyColorTerms = False | ||
config.photometry.photoCatName = "atlas_refcat2_20220201" | ||
config.photometry.colorterms.load(os.path.join(config_dir, "colorterms.py")) | ||
config.photometry.photoCatName = "the_monster_20240904" | ||
|
||
config.compute_summary_stats.load(os.path.join(config_dir, "computeExposureSummaryStats.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
# Mapping of camera filter name: reference catalog filter name | ||
# This file is appropriate for ATLAS Refcat2. | ||
# This file is appropriate for the_monster | ||
|
||
for source, target in [ | ||
# update left hand column with the filter names once we know them | ||
("empty", "white"), | ||
("u_02", "u"), | ||
("u_05", "u"), | ||
("u_06", "u"), | ||
("g_01", "g"), | ||
("g_07", "g"), | ||
("r_03", "r"), | ||
("i_06", "i"), | ||
("z_02", "z"), | ||
("z_03", "z"), | ||
# ATLAS Refcat2 does not have y band. | ||
("y_04", "z"), | ||
("u_02", "monster_SynthLSST_u"), | ||
("u_05", "monster_SynthLSST_u"), | ||
("u_06", "monster_SynthLSST_u"), | ||
("g_01", "monster_SynthLSST_g"), | ||
("g_07", "monster_SynthLSST_g"), | ||
("r_03", "monster_SynthLSST_r"), | ||
("i_06", "monster_SynthLSST_i"), | ||
("z_02", "monster_SynthLSST_z"), | ||
("z_03", "monster_SynthLSST_z"), | ||
("y_04", "monster_SynthLSST_y"), | ||
]: | ||
config.filterMap[source] = target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters