Skip to content

Instantly share code, notes, and snippets.

View ivastar's full-sized avatar

Ivelina Momcheva ivastar

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