Match two sky catalogs within angular radius
coord_match.RdLow-level spherical catalog matching for two `sky_coord` vectors.
Usage
coord_match(x, y, max_sep, unit = "arcsec", method = "kdtree", sort = TRUE)
coord_nearest(x, y, unit = "arcsec", method = "kdtree")Arguments
- x, y
`<sky_coord>` vectors.
- max_sep
Maximum separation threshold. Used in [coord_match()]. [coord_nearest()] always uses `Inf`.
- unit
Separation unit: `"arcsec"`, `"arcmin"`, `"deg"`, or `"rad"`.
- method
Matching backend: `"kdtree"` or `"bruteforce"`.
- sort
If `TRUE` (default), sort matches by `x_id`, then `sep`, then `y_id`. Set to `FALSE` to skip sorting for better performance.