Skip to content

Commit

Permalink
Merge pull request #746 from lsst/tickets/DM-45573
Browse files Browse the repository at this point in the history
DM-45573: Compute magnitude limit for exposure summary stats
  • Loading branch information
kadrlica authored Oct 10, 2024
2 parents a3b4243 + 73ea282 commit 7b55021
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/lsst/afw/image/_exposureSummaryStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ class ExposureSummaryStats(Storable):
effTimeZeroPointScale: float = float('nan')
"""Zeropoint scaling of the effective exposure time."""

magLim: float = float('nan')
"""Magnitude limit at fixed SNR (default SNR=5) calculated from psfSigma, skyBg,
zeroPoint, and readNoise.
"""

def __post_init__(self):
Storable.__init__(self)

Expand Down Expand Up @@ -405,6 +410,13 @@ def update_schema(cls, schema: Schema) -> None:
type="F",
doc="Zeropoint scaling of the effective exposure time."
)
schema.addField(
"magLim",
type="F",
doc="Magnitude limit at SNR=5 (M5) calculated from psfSigma, "
"skyBg, zeroPoint, and readNoise.",
units="mag",
)

def update_record(self, record: BaseRecord) -> None:
"""Write summary-statistic columns into a record.
Expand Down

0 comments on commit 7b55021

Please sign in to comment.