From d6db300e8b08a606d821eaaf16bb7d589e9c16d5 Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 4 Feb 2011 14:09:53 +0000 Subject: Added a method to update the scale git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11869 fe389314-cf27-0410-b35b-8c050e845b92 --- wcsutil/hstwcs.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wcsutil/hstwcs.py') diff --git a/wcsutil/hstwcs.py b/wcsutil/hstwcs.py index 62b8e48..f3731b5 100644 --- a/wcsutil/hstwcs.py +++ b/wcsutil/hstwcs.py @@ -177,6 +177,13 @@ class HSTWCS(WCS): cd22 = self.wcs.cd[1][1] self.orientat = RADTODEG(np.arctan2(cd12,cd22)) + def updatePscale(self, scale): + """ + Updates the CD matrix with a new plate scale + """ + self.wcs.cd = self.wcs.cd/self.pscale*scale + self.setPscale() + def readModel(self, update=False, header=None): """ Reads distortion model from IDCTAB. -- cgit