Skip to content

Commit

Permalink
Merge pull request #157 from lsst/u/jchiang/apcorr_and_photocal_sourc…
Browse files Browse the repository at this point in the history
…e_selection

Apply S/N cuts on sources used for aperture correction and zp calculation
  • Loading branch information
heather999 authored Jan 12, 2020
2 parents 999dc00 + ddf7922 commit c7f71cc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/imsim/processCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
config.calibrate.astrometry.referenceSelector.unresolved.minimum = None
config.calibrate.astrometry.referenceSelector.unresolved.maximum = 0.5

# Make sure galaxies are not used for zero-point calculation.
config.calibrate.photoCal.match.referenceSelection.doUnresolved = True
config.calibrate.photoCal.match.referenceSelection.unresolved.name = 'resolved'
config.calibrate.photoCal.match.referenceSelection.unresolved.minimum = None
config.calibrate.photoCal.match.referenceSelection.unresolved.maximum = 0.5

# DM-17043 and DM-16785
config.charImage.measurePsf.starSelector["objectSize"].doFluxLimit = False
config.charImage.measurePsf.starSelector["objectSize"].doSignalToNoiseLimit = True
Expand All @@ -38,3 +44,20 @@
# Discussed on Slack #desc-dm-dc2 with Lauren and set to 200 for Run2.1i
# For Run2.2i, setting to zero per https://github.com/LSSTDESC/ImageProcessingPipelines/issues/136
config.charImage.measurePsf.starSelector["objectSize"].signalToNoiseMax = 0

# S/N cuts for computing aperture corrections.
config.charImage.measureApCorr.sourceSelector['science'].doFlags = True
config.charImage.measureApCorr.sourceSelector['science'].doSignalToNoise = True
config.charImage.measureApCorr.sourceSelector['science'].flags.good = ['calib_psf_used']
config.charImage.measureApCorr.sourceSelector['science'].flags.bad = []
config.charImage.measureApCorr.sourceSelector['science'].signalToNoise.minimum = 150.0
config.charImage.measureApCorr.sourceSelector['science'].signalToNoise.maximum = None
config.charImage.measureApCorr.sourceSelector['science'].signalToNoise.fluxField = 'base_PsfFlux_instFlux'
config.charImage.measureApCorr.sourceSelector['science'].signalToNoise.errField = 'base_PsfFlux_instFluxErr'
config.charImage.measureApCorr.sourceSelector.name = 'science'

# S/N cuts for zero-point calculation
config.calibrate.photoCal.match.sourceSelection.doSignalToNoise = True
config.calibrate.photoCal.match.sourceSelection.signalToNoise.minimum = 150
config.calibrate.photoCal.match.sourceSelection.signalToNoise.fluxField = 'base_PsfFlux_instFlux'
config.calibrate.photoCal.match.sourceSelection.signalToNoise.errField = 'base_PsfFlux_instFluxErr'

0 comments on commit c7f71cc

Please sign in to comment.