Skip to content

Commit

Permalink
Merge pull request #70 from simonsobs/dev
Browse files Browse the repository at this point in the history
Fix for nemoModel SZ painting
  • Loading branch information
mattyowl authored Dec 22, 2023
2 parents 9776a21 + 43c0409 commit fd02999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nemo/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd02999

Please sign in to comment.