From d15d16fa739fcb80d1d3c9876ee1e13ab2a1fd11 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Mon, 28 Oct 2019 16:21:55 -0700 Subject: [PATCH] Deprecate distorted WCS method This was replaced with a system that uses the camera geometry when raw files are read in, which is more reliable. --- python/lsst/afw/geom/wcsUtils/wcsUtilsContinued.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/lsst/afw/geom/wcsUtils/wcsUtilsContinued.py b/python/lsst/afw/geom/wcsUtils/wcsUtilsContinued.py index ddb36faac1..56541d8fac 100644 --- a/python/lsst/afw/geom/wcsUtils/wcsUtilsContinued.py +++ b/python/lsst/afw/geom/wcsUtils/wcsUtilsContinued.py @@ -22,6 +22,8 @@ __all__ = ["getSipMatrixFromMetadata", "makeDistortedTanWcs", "computePixelToDistortedPixel"] +from deprecated.sphinx import deprecated + import lsst.geom from ..transformFactory import linearizeTransform, makeTransform from ..skyWcs import makeModifiedWcs @@ -59,6 +61,8 @@ def getSipMatrixFromMetadata(metadata, name): return arr +@deprecated(reason="Camera geometry-based SkyWcs are now set when reading raws. To be removed after v20.", + category=FutureWarning) def makeDistortedTanWcs(tanWcs, pixelToFocalPlane, focalPlaneToFieldAngle): """Compute a WCS that includes a model of optical distortion.