diff options
| author | dencheva <dencheva@stsci.edu> | 2011-02-04 09:09:53 -0500 |
|---|---|---|
| committer | dencheva <dencheva@stsci.edu> | 2011-02-04 09:09:53 -0500 |
| commit | d6db300e8b08a606d821eaaf16bb7d589e9c16d5 (patch) | |
| tree | 4141f2ca079aed3954c40cb439e168ad841997b1 /wcsutil | |
| parent | 2ce75009a28bdcc4722adf0a25ec166de2400d7f (diff) | |
| download | stwcs_hcf-d6db300e8b08a606d821eaaf16bb7d589e9c16d5.tar.gz | |
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
Diffstat (limited to 'wcsutil')
| -rw-r--r-- | wcsutil/hstwcs.py | 7 |
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. |
