Skip to content

Commit

Permalink
Persisting magnitude limit calculated in exposure summary stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadrlica committed Oct 10, 2024
1 parent a3b4243 commit 73ea282
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 73ea282

Please sign in to comment.