Skip to content

Commit

Permalink
Merge pull request #466 from lsst/tickets/DM-42080
Browse files Browse the repository at this point in the history
DM-42080: Add effTime to computeExposureSummaryStats
  • Loading branch information
kadrlica committed Jan 31, 2024
2 parents 05bd352 + 704c83d commit 76011c9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@

config.measurement.plugins.names |= ["base_Jacobian", "base_FPPosition"]
config.measurement.plugins["base_Jacobian"].pixelScale = 0.168

# Exposure summary stats
config.computeSummaryStats.load(os.path.join(ObsConfigDir, "computeExposureSummaryStats.py"))
3 changes: 3 additions & 0 deletions config/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
colors["g-r"] = ColorLimit(primary="g_flux", secondary="r_flux", minimum=0.0)
colors["r-i"] = ColorLimit(primary="r_flux", secondary="i_flux", maximum=0.5)
config.photometry.colorterms.load(os.path.join(config_dir, 'colorterms.py'))

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

config_dir = os.path.dirname(__file__)

# Derived from HSC PDR2 reprocessing v24.1.0 (DM-39132)
# These are the median values of quality-selected exposures.

config.fiducialPsfSigma = {
'u': 2.0,
'g': 2.04,
'r': 1.86,
'i': 1.51,
'z': 1.75,
'y': 1.88,
'N387': 1.84,
'N816': 1.82,
'N921': 1.70,
}
config.fiducialSkyBackground = {
'u': 1.0,
'g': 2.84,
'r': 6.26,
'i': 13.03,
'z': 11.44,
'y': 22.07,
'N387': 0.07,
'N816': 0.50,
'N921': 1.01,
}
config.fiducialZeroPoint = {
'u': 26.0,
'g': 27.05,
'r': 27.10,
'i': 26.94,
'z': 26.07,
'y': 25.63,
'N387': 22.24,
'N816': 23.94,
'N921': 24.09,
}

6 changes: 6 additions & 0 deletions config/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 76011c9

Please sign in to comment.