Skip to content

Commit

Permalink
Merge 293e564 into ebfef1e
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgalvin committed Sep 14, 2021
2 parents ebfef1e + 293e564 commit a7c3f8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AegeanTools/source_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,7 @@ def priorized_fit_islands(
# compute eps if it's not defined
if regroup_eps is None:
# s.a is in arcsec but we assume regroup_eps is in arcmin
regroup_eps = 4*np.mean([s.a*60 for s in sources])
regroup_eps = 4*np.mean([s.a/60 for s in sources])
# convert regroup_eps into a value appropriate for a cartesian measure
regroup_eps = np.sin(np.radians(regroup_eps/60))
input_sources = sources
Expand Down
5 changes: 4 additions & 1 deletion scripts/aegean
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ if __name__ == "__main__":
group5.add_argument('--catpsf', dest='catpsf', type=str, default=None,
help='A psf map corresponding to the input catalog. This will allow for the correct resizing of' +
' sources when the catalog and image psfs differ.')
group5.add_argument('--regroup-eps', dest='regroup_eps', default=None, type=float,
help='The size in arcminutes that is used to regroup nearby components into a ' +
'a single set of components that will be solved for simultaneously')


# Debug and extras
Expand Down Expand Up @@ -366,7 +369,7 @@ if __name__ == "__main__":
stage=options.priorized, ratio=options.ratio, outerclip=options.outerclip,
cores=options.cores, doregroup=options.regroup, docov=options.docov,
cube_index=options.slice,
progress=options.progress)
progress=options.progress, regroup_eps=options.regroup_eps)


sources = sf.sources
Expand Down

0 comments on commit a7c3f8a

Please sign in to comment.