Skip to content

Commit

Permalink
Merge pull request #1015 from lsst/tickets/DM-47932
Browse files Browse the repository at this point in the history
DM-47932: Remove the deprecated ScaleVarianceTask and associated code
  • Loading branch information
arunkannawadi authored Dec 5, 2024
2 parents 64d1601 + 7f9d96d commit 599934f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 110 deletions.

This file was deleted.

35 changes: 0 additions & 35 deletions python/lsst/pipe/tasks/coaddBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import lsst.geom as geom

from lsst.afw.geom import Polygon
from lsst.meas.algorithms import ScaleVarianceTask
from .selectImages import PsfWcsSelectImagesTask
from .coaddInputRecorder import CoaddInputRecorderTask

Expand Down Expand Up @@ -156,40 +155,6 @@ def makeSkyInfo(skyMap, tractId, patchId):
)


def scaleVariance(maskedImage, maskPlanes, log=None):
"""Scale the variance in a maskedImage
This is deprecated. Use the ScaleVarianceTask instead.
Parameters
----------
maskedImage : `lsst.afw.image.MaskedImage`
MaskedImage to operate on; variance will be scaled.
maskPlanes : `list`
List of mask planes for pixels to reject.
log : `Unknown`
Log for reporting the renormalization factor; or None.
Returns
-------
task.run : `Unknown`
Renormalization factor.
Notes
-----
The variance plane in a convolved or warped image (or a coadd derived
from warped images) does not accurately reflect the noise properties of
the image because variance has been lost to covariance. This function
attempts to correct for this by scaling the variance plane to match
the observed variance in the image. This is not perfect (because we're
not tracking the covariance) but it's simple and is often good enough.
"""
config = ScaleVarianceTask.ConfigClass()
config.maskPlanes = maskPlanes
task = ScaleVarianceTask(config=config, name="scaleVariance", log=log)
return task.run(maskedImage)


def reorderAndPadList(inputList, inputKeys, outputKeys, padWith=None):
"""Match the order of one list to another, padding if necessary
Expand Down
44 changes: 0 additions & 44 deletions python/lsst/pipe/tasks/scaleVariance.py

This file was deleted.

0 comments on commit 599934f

Please sign in to comment.