diff options
-rwxr-xr-x | astro/fits/fitsimage.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/astro/fits/fitsimage.py b/astro/fits/fitsimage.py index c83f02f..6238f60 100755 --- a/astro/fits/fitsimage.py +++ b/astro/fits/fitsimage.py @@ -103,8 +103,11 @@ class FITSImage: self._pixelsize = value # Update header self.header["PixSize"] = value # [arcsec] - self.header["CDELT1"] *= value / oldvalue - self.header["CDELT2"] *= value / oldvalue + try: + self.header["CDELT1"] *= value / oldvalue + self.header["CDELT2"] *= value / oldvalue + except KeyError: + pass @property def fov(self): |