From 43c040942028eed43aecc130b7e8c73039c5b401 Mon Sep 17 00:00:00 2001 From: Matt Hilton Date: Fri, 22 Dec 2023 06:22:27 +0200 Subject: [PATCH] Fix for nemoModel SZ painting Bigger stamps (again) --- nemo/signals.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nemo/signals.py b/nemo/signals.py index 87d726c..9a20e87 100644 --- a/nemo/signals.py +++ b/nemo/signals.py @@ -664,10 +664,10 @@ def _paintSignalMap(shape, wcs, tckP, beam = None, RADeg = None, decDeg = None, amps=np.array([amp], dtype = dtype) if omap is not None: - ra1=RADeg-(maxSizeDeg/2)/np.cos(np.radians(decDeg)) - ra0=RADeg+(maxSizeDeg/2)/np.cos(np.radians(decDeg)) - dec1=decDeg-maxSizeDeg/2 - dec0=decDeg+maxSizeDeg/2 + ra1=RADeg-(maxSizeDeg/1.0)/np.cos(np.radians(decDeg)) + ra0=RADeg+(maxSizeDeg/1.0)/np.cos(np.radians(decDeg)) + dec1=decDeg-maxSizeDeg/1.0 + dec0=decDeg+maxSizeDeg/1.0 clip=astImages.clipUsingRADecCoords(omap, wcs, ra1, ra0, dec0, dec1) modelClip=pointsrcs.sim_objects(clip['data'].shape, clip['wcs'].AWCS, poss, amps, (r, abs(rprof)), vmin = vmin, rmax = np.radians(maxSizeDeg), #prof_equi = False,