Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-20548: Update HSC's camera geometry to use units of millimeters #84

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/lsst/pipe/drivers/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ class FocalPlaneBackgroundConfig(Config):
"""
xSize = Field(dtype=float, doc="Bin size in x")
ySize = Field(dtype=float, doc="Bin size in y")
pixelSize = Field(dtype=float, default=1.0, doc="Pixel size in same units as xSize/ySize")
minFrac = Field(dtype=float, default=0.1, doc="Minimum fraction of bin size for good measurement")
mask = ListField(dtype=str, doc="Mask planes to treat as bad",
default=["BAD", "SAT", "INTRP", "DETECTED", "DETECTED_NEGATIVE", "EDGE", "NO_DATA"])
Expand Down Expand Up @@ -728,7 +729,8 @@ def getStatsImage(self):
"""
values = self._values.clone()
values /= self._numbers
thresh = self.config.minFrac*self.config.xSize*self.config.ySize
thresh = (self.config.minFrac*
(self.config.xSize/self.config.pixelSize)*(self.config.ySize/self.config.pixelSize))
isBad = self._numbers.getArray() < thresh
if self.config.doSmooth:
array = values.getArray()
Expand Down