Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-46918 update config/ComCam to use the_monster as a refcat #564

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/comCam/analysisToolsPhotometricCatalogMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.doApplyColorTerms = False

config.connections.refCatalog = "atlas_refcat2_20220201"
config.connections.refCatalog = "the_monster_20240904"
2 changes: 1 addition & 1 deletion config/comCam/analysisToolsPhotometricCatalogMatchVisit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))

config.connections.refCatalog = "atlas_refcat2_20220201"
config.connections.refCatalog = "the_monster_20240904"
config.referenceCatalogLoader.doApplyColorTerms = False
18 changes: 11 additions & 7 deletions config/comCam/calibrateImage.py
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"))
23 changes: 11 additions & 12 deletions config/comCam/filterMap.py
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
2 changes: 1 addition & 1 deletion config/comCam/measureCoaddSources.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import os.path

config.match.refObjLoader.load(os.path.join(os.path.dirname(__file__), "filterMap.py"))
config.connections.refCat = "atlas_refcat2_20220201"
config.connections.refCat = "the_monster_20240904"
3 changes: 3 additions & 0 deletions config/latiss/refCatObjectPhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
objectConfig = TransformObjectCatalogConfig()
objectConfig.load(os.path.join(os.path.dirname(__file__), "transformObjectCatalog.py"))
config.bands = objectConfig.outputBands

config.connections.refCatalog = "the_monster_20240904"
config.connections.outputName = "objectTable_tract_the_monster_20240904_match_photom"
Loading