Skip to content

Commit

Permalink
Merge pull request #518 from lsst/tickets/DM-42747
Browse files Browse the repository at this point in the history
DM-42747: Fiducial values for summary stats for comCamSim
  • Loading branch information
kadrlica authored Mar 26, 2024
2 parents 7388221 + 6579b79 commit 04e5ce7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/comCamSim/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@
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

# Exposure summary stats
config.computeSummaryStats.load(os.path.join(configDir, "computeExposureSummaryStats.py"))
3 changes: 3 additions & 0 deletions config/comCamSim/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@
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

# Exposure summary stats
config.compute_summary_stats.load(os.path.join(config_dir, "computeExposureSummaryStats.py"))
26 changes: 26 additions & 0 deletions config/comCamSim/computeExposureSummaryStats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import os.path

config_dir = os.path.dirname(__file__)

# Fiducial values come from a set of 4334 visits generated in:
# repo='/repo/ops-rehearsal-3-prep'
# collection='u/homer/w_2024_10/DM-43228'
# Plots, including the median values used here, can be found on JIRA ticket DM-42747

config.fiducialPsfSigma = {
'g': 1.72,
'r': 1.60,
'i': 1.57,
}

config.fiducialSkyBackground = {
'g': 9.34,
'r': 19.58,
'i': 35.97,
}

config.fiducialZeroPoint = {
'g': 27.68,
'r': 27.56,
'i': 27.40,
}
6 changes: 6 additions & 0 deletions config/comCamSim/updateVisitSummary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python
import os.path

ObsConfigDir = os.path.dirname(__file__)

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

0 comments on commit 04e5ce7

Please sign in to comment.