Skip to content

Commit

Permalink
Fix for two pass automasking extended sources
Browse files Browse the repository at this point in the history
There was a typo! It now does what it was supposed to.
  • Loading branch information
mattyowl committed Oct 1, 2020
1 parent 5face5c commit fd92446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nemo/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ def preprocessMapDict(mapDict, tileName = 'PRIMARY', diagnosticsDir = None):
ASizeArcmin=row['ellipse_A']/xPixSizeArcmin
if ASizeArcmin > maskRadiusArcmin:
extendedSource=True
masksRadiusArcmin=ASizeArcmin
maskRadiusArcmin=ASizeArcmin
rArcminMap, xBounds, yBounds=nemoCython.makeDegreesDistanceMap(rArcminMap, wcs,
row['RADeg'], row['decDeg'],
maskRadiusArcmin/60)
row['RADeg'], row['decDeg'],
maskRadiusArcmin/60)
rArcminMap=rArcminMap*60
surveyMask[rArcminMap < maskRadiusArcmin]=0
if extendedSource == True:
Expand Down

0 comments on commit fd92446

Please sign in to comment.