Skip to content

Commit

Permalink
Merge pull request #583 from lsst/tickets/DM-46991
Browse files Browse the repository at this point in the history
DM-46991: switch to calibrateImage
  • Loading branch information
TallJimbo authored Nov 26, 2024
2 parents 4141b55 + eaaa5e0 commit 66e634d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion config/comCam/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
config_dir = os.path.dirname(__file__)

config.connections.photometry_ref_cat = "the_monster_20240904"
config.connections.astrometry_ref_cat = "the_monster_20240904"

config.photometry_ref_loader.load(os.path.join(config_dir, "filterMap.py"))

config.photometry.match.referenceSelection.magLimit.fluxField = "monster_SynthLSST_r_flux"
Expand All @@ -17,7 +19,6 @@
maximum=2.0
)


config.photometry.applyColorTerms = False
config.photometry.photoCatName = "the_monster_20240904"

Expand Down
16 changes: 4 additions & 12 deletions config/lsstCam/calibrateImage.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import os.path

from lsst.meas.algorithms import ColorLimit # Configure the photometry to use atlas_refcat2.
config_dir = os.path.dirname(__file__)

config.connections.photometry_ref_cat = "atlas_refcat2_20220201"
config.photometry_ref_loader.load(os.path.join(config_dir, "filterMap.py"))

config.photometry.match.referenceSelection.magLimit.fluxField = "r_flux"
colors = config.photometry.match.referenceSelection.colorLimits
colors["g-r"] = ColorLimit(primary="g_flux", secondary="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.connections.photometry_ref_cat = "the_monster_20240904"
config.connections.astrometry_ref_cat = "the_monster_20240904"
config.photometry_ref_loader.load(os.path.join(config_dir, "filterMap.py"))
config.compute_summary_stats.load(os.path.join(config_dir, "computeExposureSummaryStats.py"))

0 comments on commit 66e634d

Please sign in to comment.