summaryrefslogtreecommitdiff
path: root/wcsutil/hstwcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'wcsutil/hstwcs.py')
-rw-r--r--wcsutil/hstwcs.py7
1 files changed, 7 insertions, 0 deletions
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.