Finds the nearest 3-dimensional matches of a coordinate or coordinates in a set of catalog coordinates.
This finds the 3-dimensional closest neighbor, which is only different from the on-sky distance 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.