Finds the nearest on-sky matches of a coordinate or coordinates in a set of catalog coordinates.
This finds the on-sky closest neighbor, which is only different from the 3-dimensional match if distance is set in either matchcoord or catalogcoord.
Parameters: | matchcoord : BaseCoordinateFrame or SkyCoord
catalogcoord : BaseCoordinateFrame or SkyCoord
nthneighbor : int, optional
storekdtree : bool or str, optional
|
---|---|
Returns: | idx : integer array
sep2d : Angle
dist3d : Quantity
|
Notes
This function requires SciPy to be installed or it will fail.