Skip to content

Commit

Permalink
Set mag limits for refcat loading in LSSTComCamSim
Browse files Browse the repository at this point in the history
These have been selected to more than span the expected magnitude
range for the icSrc catalog sources (those available for the
calibrations).  Loading in reference sources outside of this range
is undesirable for a few reasons, including wasting time on objects
that are not acutally in contention for matcing and, more importantly,
leaving a danger of the fit getting "lost" by locking onto the
"superfluous" reference catalog objects (we saw this happen in
photoCal for 3 of 25935 dataIds in the first round Ops Rehearsal 3
dataset).
  • Loading branch information
laurenam committed Mar 6, 2024
1 parent b701f65 commit a6ae7ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/comCamSim/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@
config.photoRefObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.astromRefObjLoader.anyFilterMapsToThis = None
config.photoRefObjLoader.anyFilterMapsToThis = None

config.astrometry.referenceSelector.doMagLimit = True
config.astrometry.referenceSelector.magLimit.fluxField = "lsst_r_flux"
config.astrometry.referenceSelector.magLimit.minimum = 14.0
config.astrometry.referenceSelector.magLimit.maximum = 22.0

config.photoCal.match.referenceSelection.doMagLimit = True
config.photoCal.match.referenceSelection.magLimit.fluxField = "lsst_r_flux"
config.photoCal.match.referenceSelection.magLimit.minimum = 14.0
config.photoCal.match.referenceSelection.magLimit.maximum = 22.0
10 changes: 10 additions & 0 deletions config/comCamSim/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@
config.photometry_ref_loader.load(os.path.join(configDir, "filterMap.py"))
config.astrometry_ref_loader.anyFilterMapsToThis = None
config.photometry_ref_loader.anyFilterMapsToThis = None

config.astrometry.referenceSelector.doMagLimit = True
config.astrometry.referenceSelector.magLimit.fluxField = "lsst_r_flux"
config.astrometry.referenceSelector.magLimit.minimum = 14.0
config.astrometry.referenceSelector.magLimit.maximum = 22.0

config.photometry.match.referenceSelection.doMagLimit = True
config.photometry.match.referenceSelection.magLimit.fluxField = "lsst_r_flux"
config.photometry.match.referenceSelection.magLimit.minimum = 14.0
config.photometry.match.referenceSelection.magLimit.maximum = 22.0

0 comments on commit a6ae7ab

Please sign in to comment.