Skip to content

Instantly share code, notes, and snippets.

View Guang91's full-sized avatar

Guang Guang91

View GitHub Profile
"""
Match two sets of on-sky coordinates to each other.
I.e., find nearest neighbor of one that's in the other.
Similar in purpose to IDL's spherematch, but totally different implementation.
Requires numpy and scipy.
"""
from __future__ import division
import numpy as np