Skip to content

Commit

Permalink
Merge pull request #569 from lsst/tickets/DM-47165
Browse files Browse the repository at this point in the history
DM-47165: Update astrom/photoCal for early ComCam data.
  • Loading branch information
ctslater authored Oct 27, 2024
2 parents a3f7bb9 + 72f1459 commit 2f81eaf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
7 changes: 7 additions & 0 deletions config/comCam/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
obsConfigDir = os.path.join(os.path.dirname(__file__))
config.photoRefObjLoader.load(os.path.join(obsConfigDir, "filterMap.py"))
config.connections.astromRefCat = "the_monster_20240904"

# Loosen maxOffset to account for early pointing model inaccuracy.
config.astrometry.matcher.maxOffsetPix=800
config.astromRefObjLoader.pixelMargin=800

# Loosened for early ComCam with large PSFs.
config.photoCal.match.sourceSelection.doUnresolved = False
7 changes: 7 additions & 0 deletions config/comCam/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@
config.photometry.photoCatName = "the_monster_20240904"

config.compute_summary_stats.load(os.path.join(config_dir, "computeExposureSummaryStats.py"))

# Loosen maxOffset to account for early pointing model inaccuracy.
config.astrometry.matcher.maxOffsetPix=800
config.astrometry_ref_loader.pixelMargin=800

# Loosened for early ComCam with large PSFs.
config.photometry.match.sourceSelection.doUnresolved = False
16 changes: 13 additions & 3 deletions config/comCam/filterMap.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Mapping of camera filter name: reference catalog filter name
# Mapping of camera band to reference catalog filter name
# This file is appropriate for the_monster


# This includes mappings for both filter and band, because photoCalTask
# switches between the two depending on whether color term corrections are
# enabled. Once that is fixed, this should be keyed by band as per RFC-976.
for source, target in [
# update left hand column with the filter names once we know them
("empty", "white"),
("empty", "monster_SynthLSST_r"),
("white", "monster_SynthLSST_r"),
("u_02", "monster_SynthLSST_u"),
("u_05", "monster_SynthLSST_u"),
("u_06", "monster_SynthLSST_u"),
Expand All @@ -14,5 +18,11 @@
("z_02", "monster_SynthLSST_z"),
("z_03", "monster_SynthLSST_z"),
("y_04", "monster_SynthLSST_y"),
("u", "monster_SynthLSST_u"),
("g", "monster_SynthLSST_g"),
("r", "monster_SynthLSST_r"),
("i", "monster_SynthLSST_i"),
("z", "monster_SynthLSST_z"),
("y", "monster_SynthLSST_y"),
]:
config.filterMap[source] = target

0 comments on commit 2f81eaf

Please sign in to comment.