Skip to content

Commit

Permalink
mod docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
julienguy committed Aug 22, 2024
1 parent bc5a472 commit dd018da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions py/desispec/large_trace_shifts.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,21 @@ def detect_spots_in_image(image) :


def match_same_system(x1,y1,x2,y2,remove_duplicates=True) :
"""
'''
match two catalogs, assuming the coordinates are in the same coordinate system (no transfo)
Args:
x1 : float numpy array of coordinates along first axis of cartesian coordinate system
y1 : float numpy array of coordinates along second axis in same system
x2 : float numpy array of coordinates along first axis in same system
y2 : float numpy array of coordinates along second axis in same system
returns:
indices_2 : integer numpy array. if ii is a index array for entries in the first catalog,
indices_2[ii] is the index array of best matching entries in the second catalog.
(one should compare x1[ii] with x2[indices_2[ii]])
negative indices_2 indicate unmatched entries
distances : distances between pairs. It can be used to discard bad matches
'''

"""
xy1=np.array([x1,y1]).T
xy2=np.array([x2,y2]).T
tree2 = KDTree(xy2)
Expand Down

0 comments on commit dd018da

Please sign in to comment.