From d7256629cc01af99cb5e3be70a64000f6d2fb0dc Mon Sep 17 00:00:00 2001 From: dencheva Date: Thu, 24 Apr 2014 19:28:34 +0000 Subject: port changes from astropy.wcs - naxis1/2 are private now. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31128 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/hstwcs.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/stwcs/wcsutil/hstwcs.py') diff --git a/lib/stwcs/wcsutil/hstwcs.py b/lib/stwcs/wcsutil/hstwcs.py index f48741d..36e1de4 100644 --- a/lib/stwcs/wcsutil/hstwcs.py +++ b/lib/stwcs/wcsutil/hstwcs.py @@ -162,6 +162,22 @@ class HSTWCS(WCS): self.setPscale() self.setOrient() + @property + def naxis1(self): + return self._naxis1 + + @naxis1.setter + def naxis1(self, value): + self._naxis1 = value + + @property + def naxis2(self): + return self._naxis2 + + @naxis2.setter + def naxis2(self, value): + self._naxis2 = value + def readIDCCoeffs(self, header): """ Reads in first order IDCTAB coefficients if present in the header -- cgit