aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/sky.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/sky.py')
-rw-r--r--fg21sim/sky.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fg21sim/sky.py b/fg21sim/sky.py
index ab7f42b..ede9c1d 100644
--- a/fg21sim/sky.py
+++ b/fg21sim/sky.py
@@ -504,7 +504,8 @@ class SkyPatch(SkyBase):
if (self.xsize_in != self.xsize) or (self.ysize_in != self.ysize):
logger.warning("Scale input sky patch to size %dx%d" %
(self.xsize, self.ysize))
- zoom = (self.ysize/self.ysize_in, self.xsize/self.xsize_in)
+ zoom = ((self.ysize+0.1)/self.ysize_in,
+ (self.xsize+0.1)/self.xsize_in)
self.data = ndimage.zoom(self.data, zoom=zoom, order=1)
def write(self, outfile, clobber=None):